need help

Status
Not open for further replies.

peterzatko

New Member
Whats wrong in my code.I need set RA0 as analog input and other pins on PORTA as digital I/O .
Proteus make error PORTA.0 is not configured as analog input.How to set it?PIC 18F252

ADCON0 = %00000001 '' A/D Converter module is enabled
ADCON1 = %00001110 '' AN0 Analog, everything else digital
TRISA = %11111111 '' PORTA is input
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…