go away spammer

Author Topic: analog port  (Read 3140 times)

0 Members and 1 Guest are viewing this topic.

Offline RadikenTopic starter

  • Jr. Member
  • **
  • Posts: 39
  • Helpful? 0
analog port
« on: March 18, 2007, 10:08:46 PM »
It there a way to test if an I/O port is analog?
The best way to get to the top is to get off your bottom.

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: analog port
« Reply #1 on: March 27, 2007, 02:07:22 PM »
the microcontroller datasheet should say which ports are analog (ADC).

the other way is to set the port as analog through software and attach an analog sensor to it. then do an if/then statement such as: if analog(port 1) is 125, then do something with another port.

 


Get Your Ad Here