Author Topic: axon adc  (Read 2446 times)

0 Members and 1 Guest are viewing this topic.

Offline vidamTopic starter

  • Supreme Robot
  • *****
  • Posts: 423
  • Helpful? 1
  • Robotronics.org
    • DC/MD/VA Robotics and Automation Team
axon adc
« on: August 31, 2008, 04:56:37 PM »
The ADC ports on the Axon was labeled F and K from pins 0 through 15 and then ends on 2 pins, A0 and A1. Looking at the schematic, F0-F7 are ADC. K0-K7 is also ADC 8-15

Pin F is ADC0 - ADC7
Pin K is ADC8-ADC15.

In the code do you reference port F (ADC 0-7).
and port K (ADC 8-15)

port_on(K, 8) // sets port K on pin 0 to output
port_on(F, 7); // sets port F on pin 7 to output

Is that the right syntax?

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: axon adc
« Reply #1 on: August 31, 2008, 07:58:11 PM »
Look in the file SoR_Utils for examples, sample code, and instructions on how to modify port configuration.


DDRC = _BV (PC0); //set PC0 as digital output

 


data_list