Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: Radiken on March 18, 2007, 10:08:46 PM

Title: analog port
Post by: Radiken on March 18, 2007, 10:08:46 PM
It there a way to test if an I/O port is analog?
Title: Re: analog port
Post by: Admin 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.