Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

Back
Top