Electronics > Electronics

analog port


It there a way to test if an I/O port is analog?

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.


[0] Message Index

Go to full version