Society of Robots - Robot Forum
Software => Software => Topic started by: vidam 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?
-
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