basic-adc-project
Default mainpagebasic-adc-project
Description Graph
basic-adc-project
 
Purpose
This project demonstrates the ADC (Analog-to-Digital Converter).

Requirements
The following evaluation kits are supported by this project:
Description
After launching the program, the device will display the voltage on four of his ADC pins. Somes boards have more than four accessible pins, so the software can be easily update for that.

Usage
  1. For AT91SAM7A3-EK board: The measured pins are J6 pins 1 and 2, and J9 pins B15 and B16

  1. For AT91SAM7L-EK board: The measured pins are J205 pins 1, 3, 5 and 7

  1. For AT91SAM7S-EK board: The measured pins are J7, J8, J9 and J10

  1. For AT91SAM7SE-EK board: The measured pins are J17 pins 29, 30, 31 and 32

  1. For AT91SAM7X-EK board: The measured pins are J16 pins C29 and C30, and J26 pins 1 and 2

  1. For AT91SAM7XC-EK board: The measured pins are J16 pins C29 and C30, and J26 pins 1 and 2

  1. For AT91SAM9260-EK board: The measured pins are J24 pins 1, 2, 3 and 4

  1. For AT91SAM9G20-EK board: The measured pins are J24 pins 1, 2, 3 and 4

  1. For AT91SAM9XE-EK board: The measured pins are J24 pins 1, 2, 3 and 4

  1. For AT91CAP9-DK board: The ADC jumpers are on position 1 (J3)

  1. For AT91CAP9-STK board: The ADC jumpers are on position 3 (J53-3, J54-3, J55-3, J56-3)

  1. Compile the application.
  2. Connect the DBGU port of the evaluation board to the computer and open it in a terminal.
    • Settings: 115200 bauds, 8 bits, 1 stop bit, no parity, no flow control.
  3. Download the program inside the evaluation board and run it. Please refer to the SAM-BA User Guide, the GNU-Based Software Development application note or to the IAR EWARM User Guide, depending on your chosen solution.
  4. Upon startup, the application will output the following line on the DBGU:
    -- Basic ADC Project xxx --
    -- AT91xxxxxx-xx
    -- Compiled: xxx xx xxxx xx:xx:xx --
    -I- Press any key to perform a measurement on the ADC ...
    
  5. And then, after press a key:
    Channel 4 : 2332 mV
    Channel 5 : 25 mV
    Channel 6 : 1454 mV
    Channel 7 : 1303 mV
    
 
Source
The documentation for this Directory was generated from the following files:
  • main.c