Mark I Interface Usage Notes Glenn Jones July 13, 2006.

Slides:



Advertisements
Similar presentations
Debugging ACL Scripts.
Advertisements

Device Drivers. Linux Device Drivers Linux supports three types of hardware device: character, block and network –character devices: R/W without buffering.
Hardware and Python Steve Granda. Why would I want to do this? You want to make something interactive. You want to recreate sputnik. You want to measure.
JED Microprocessors Pty Ltd Presenting the JED T430 low-cost Projector Controllers Nov 22nd, 2009.
LOGO Lab Supervisor – Dr. WH Lau EE3271 Design Laboratory.
Internet of Things with Intel Edison Getting started with your board Pierre Collet Intel.
Lab7: Introduction to Arduino
By: Russ Butler ECE4220 Spring 2012 Dr. DeSouza May 2, 2012.
An End-User Perspective On Using NatQuery Building a Dynamic Variable T
MIDI. Musical Instrument Digital Interface Specification for physically connecting different devices, and for communicating between them. Designed for.
Virtual Machines What Why How Powerpoint?. What is a Virtual Machine? A Piece of software that emulates hardware.  Might emulate the I/O devices  Might.
Spring EE 316 Computer Engineering Junior Lab Serial Ports.
7-1 Digital Serial Input/Output Two basic approaches  Synchronous shared common clock signal all devices synchronised with the shared clock signal data.
CCNA Guide to Cisco Networking Fundamentals Fourth Edition
Aztec PC Oscilloscope Michael Mason Jed Brown Josh Price Andrew Youngs.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 2: Operating-System Structures Modified from the text book.
Wireless Data Acquisition for SAE Car Project by: J.P. Haberkorn & Jon Trainor Advised by: Mr. Steven Gutschlag.
David Nelson STAVE Test Electronics July 1, ATLAS STAVE Test Electronics Preliminary V3 Presented by David Nelson.
1 CSE 390 Lecture 10 Do anything from anywhere – tools to free your choice of OS slides created by Marty Stepp, modified by Jessica Miller and Ruth Anderson.
Network and Systems Laboratory nslab.ee.ntu.edu.tw.
EEE305 Microcontroller Systems Lecture 7: Embedded C using PIC microcontrollers Serial i/o with the XC8 Teaching resources are at
Embedded Systems Design
Arduino Part 1 Topics: Microcontrollers Programming Basics: structure and variables Digital Output Analog to Digital Conversion.
Technology Training that Works Hands of Data Communications, Networking & TCP/IP Troubleshooting.
CCENT Study Guide Chapter 11 VLANs and Inter-VLAN Routing.
Shell and Flashing Images Commands and upgrades. RS-232 Driver chip – ST3232C Driver chip is ST3232C Provides electrical interface between UART port and.
Computers in Surveying SVY2301 / E4006 Automated Surveying.
Oppenheimer Technologies Rick King Jonathan Creekmore.
Serial Communication Lab 12 Module M21.1. Asynchronous Serial I/O ASCII code 54H = (“T”) sent with odd parity.
Serial Expansion Hardware
Lesson 3 — How a Computer Processes Data
Serial Port I/O Serial port sends and receives data one bit at a time. Serial communication devices are divided into: Data Communications Equipment (DCE),
SDR Test bench Architecture WINLAB – Rutgers University Date : October Authors : Prasanthi Maddala,
UART and UART Driver B. Ramamurthy.
PC Maintenance: Preparing for A+ Certification Chapter 24: Modems.
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
Introduction to the Arduino
IBM - CVUT Student Research Projects Remote Control of a Furby Toy with BlueTooth Tomáš Kunc
Page 1 D&C EBV Seminar June 2003 Motor Demo C868 Chevillot/Jansen June 2003 N e v e r s t o p t h i n k i n g. Infineon C868 Hands On Training CAPCOM6.
2007 TAX YEARERO TRAINING - MODULE 81  In this lesson we will cover:  Learn how to make changes to your site information  Running Tech Setup and what.
Checking Zigbee network What to do if the system is not working…
Cornell Theory Center Aug Porting CCTK to NT at the Cornell Velocity NT Cluster Werner Benger Max-PIanck-Institut für Gravitationsphysik (Albert-Einstein-Institute.
Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis
Done By: Amnon Balanov & Yosef Solomon Supervisor: Boaz Mizrachi Project ID: d02310.
Zero - G CONNECTING THE INTERNET OF THINGS. Introduction to Zero -G.
1 October 26, 2006ME 6405 MechatronicsSerial Communication Interface Brian Guerriero Jon Rogers Robert Thiets.
FED RAL: Greg Iles5 March The 96 Channel FED Tester What needs to be tested ? Requirements for 96 channel tester ? Baseline design Functionality.
Nevis FVTX Update Dave Winter FVTX Silicon Meeting 13 July 2006.
7. IRQ and PIC ENGI 3655 Lab Sessions. Richard Khoury2 Textbook Readings  Interrupts ◦ Section
Linux Operations and Administration
ChibiOS/RT Demo A free embedded RTOS
January 9, 2001 Router Plugins (Crossbow) 1 Washington WASHINGTON UNIVERSITY IN ST LOUIS Exercises.
ECE 456 Computer Architecture Lecture #9 – Input/Output Instructor: Dr. Honggang Wang Fall 2013.
Microcontroller basics Embedded systems for mortals.
LonWorks Introduction Hwayoung Chae.
IC 3 BASICS, Internet and Computing Core Certification Computing Fundamentals Lesson 2 How Does a Computer Process Data?
Modem. Introduction: A modem [Modulator -Demodulator] is a device. Data communication means transmitting digital information form one computer to other.
Timothy Kritzler and Joseph Mintun Sponsor: Martin Engineering, Illinois Advisors: Dr. Malinowski and Dr. Ahn Bradley University Electrical and Computer.
Voice Controlled Robot by Cell Phone with Android App
Arduino Part 1 Topics: Microcontrollers
The HCS12 SCI Subsystem A HCS12 device may have one or two serial communication interface. These two SCI interfaces are referred to as SCI0 and SCI1. The.
IRQ, DMA and I/O Ports - Introduction -
Reference Sources Profibus Documentation Contacts
Serial Data Hub (Proj Dec13-13).
USB Project (22nd July) Ian Coulter.
Serial Communication Interface
HD44780 LCD programming From the Hardware Side
Lecture 8: Modems (Converts analog signals to digital and vice-versa) 1nd semester By: Adal ALashban.
Lab #1: Getting Started.
Presentation transcript:

Mark I Interface Usage Notes Glenn Jones July 13, 2006

I have included the Windows USB drivers and some Matlab routines that I used to test so you can try those out. I don’t have an interface spec for the raw commands yet, but the commands and data format can be easily figured out from the PIC code and the Matlab routines. I modified the PIC code slightly so now it doesn’t miss the falling blanking signal even if it is in the middle of transmitting data.

Linux stuff Here are some application notes giving programming advice. The particular chip I used is the FT232R. There are two types of USB drivers, Virtual Com Port (VCP) and direct (D2XX). I have been using the VCP driver exclusively without trouble, though you may want to look into the D2XX if you think it may help. I have not tried any interface stuff under linux. The drivers are located here: The Windows VCP driver I included is NOT the same as the one on the website. I modified it so that when you set the virtual com port to 600 baud, it actually sets the chip up to do 250kbaud. This is explained in this appnote: 05_BaudRates.pdf I think probably a similar thing can be done under linux. 05_BaudRates.pdf The PIC UART is configured for 250kbaud

Starting up Matlab When you get the USB driver installed correctly using the drivers I included, check to see which COM port it is assigned to. Edit init.m to reflect this COM port. init.m sets up the COM port object ‘I2Cser’, which must be the first argument to all of the other routines. (you can name it something else if you like) To test communications, try sending: set_atten(I2Cser,2,’FF’) You should see something like this: >> set_atten(I2Cser,2,'FF') cmd = `S02FFA1~ ans = `S0~ If not, try sending a couple more times.. I find it takes sending a few commands at startup to get the UARTs synched up. At the end of the Matlab session, run closedown.m to free the COM port. If you accidentally clear I2Cser, the instrfind command is very useful.

Matlab commands I added comments describing usage of all the useful Matlab routines, thus look there to see how to use them. The main commands you probably want to use for testing are: SetPICint – Set the PIC to generate a blanking signal SetExtBlank – use an external blanking signal on the BNC connector ReadFor – take data for x seconds

A typical matlab session might look like this: >> init % setup the serial port >> set_atten(I2Cser,2,'FF')% Select the 1000 MHz filter and set the attenuator to 0dB cmd = `S02FFA1~ ans = `S0~ >> set_atten(I2Cser,2,'01')% Select the 500 MHz filter and set the attenuator to 16 dB cmd = `S020075~ ans = `S0~ >> SetPICint(I2Cser,0.01,0.1); % set the pic blanking to 10 ms high, 100ms integration cmd = `PFFB3FCF4B4~ % FYI this is what the command to the pic looks like status = `P~ % successful reception >> [tp st] = ReadFor(I2Cser,1); % Tell the pic to give you 1 second worth of data cmd = `IFF35~% Random inner workings cmd = `I0009~ status = Vlid ¤Ù ¦\ `I~ cmd = `I0009~ status = `I~ ans = Dataset size: 547 Found 8 headers % This means that it received 547 bytes which it parsed into 8 sets of 8 % channels worth of total power >> plot(tp(3,:))% look at the results for a channel. >>[tp st] = ReadTPn(I2Cser,10) % Tell the pic to give you the data from the next 10 blanking signals it sees cmd = `I0A1A~ ans = Dataset size: 683 Found 10 headers % found all 10 >> SetExtBlank(I2Cser)% change to external blanking mode cmd = `XB8~ status = `X0~% indication that the command was understood >> closedown% All done, so clean up the COM port