go_away

Author Topic: axon adc  (Read 1512 times)

0 Members and 1 Guest are viewing this topic.

Offline vidamTopic starter

  • Supreme Robot
  • *****
  • Posts: 423
  • Helpful? 1
  • Robotronics.org
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,585
  • Helpful? 169
    • 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

 

Related Topics

  Subject / Started by Replies Last post
7 Replies
5831 Views
Last post August 10, 2009, 12:48:02 AM
by SmAsH
0 Replies
1819 Views
Last post January 09, 2010, 11:52:06 PM
by Admin
5 Replies
1872 Views
Last post August 24, 2010, 01:42:27 PM
by Admin
2 Replies
396 Views
Last post October 17, 2012, 08:58:41 PM
by Admin


Get Your Ad Here

data_list