120 likes | 275 Views
Lab 6 – Data Acquisition Systems. Start date: Week #9 Due date: Week #10. Overview of the A/D system. On-board A/D is 8-channel, 8-bit successive approximation Modes 8 conversions or 4 conversions Continuous or single scan 1 channel vs. multiple channels (4 or 8). Registers. ATDCTL2
E N D
Lab 6 – Data Acquisition Systems Start date: Week #9 Due date: Week #10
Overview of the A/D system • On-board A/D is 8-channel, 8-bit successive approximation • Modes • 8 conversions or 4 conversions • Continuous or single scan • 1 channel vs. multiple channels (4 or 8)
Registers • ATDCTL2 • Power-up • Interrupt enable • ATDCTL5 • Mode – 8 or 4 channel, continuous or single scan, single or multiple channel • See table (p.95) to properly select channels
Registers • ATDSTAT • Flags • ADRxH • Result registers • (ATDCTL4) • If you want to set timings
Hints • Don’t forget to hook up the reference voltages for the A/D • Don’t mix up the +5/ground with the +/- 15V lines • Do not use the scope’s infinite mode
Academic Misconduct • Reports and demos are submitted as a group, but it is a SINGLE group effort • You may talk with other groups but sharing code or reports is NOT ALLOWED • Copying code/reports from previous years is also NOT ALLOWED • If we find copying we are REQUIRED to report it
D/A • D/A chip – DAC0800 • Requires reference voltages and power for the chip • +/- 15 is a good power for the chip because you have it on your power supplies • DON’T MIX UP THE LINES PLEASE • Output of the chip is CURRENT!! • You need to change this to voltage somehow to get it to work with the scope
D/A • In report • Include calculations • Describe the setup and why it was set up like that • Include a diagram
Scope • Use the X-Y mode on the scope to draw • If you don’t know how to use the scope, ask • You MAY NOT use the infinite mode on the scope – you must use a software buffer in your own code