Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Problem with Switch microcontroller PIC18F4520

Status
Not open for further replies.

Ploj442L

Newbie level 2
Newbie level 2
Joined
May 29, 2013
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,292
Hello!
I have a problem with my microcontroler PIC18F4520 with display 128x64
Card EasyPic 6 compiler micropro.
I have done a little example on my card with microcontroler PIC16F887 and it is ok.
I can see 2 boxes with same text on the display as expected.
But if I switch to PIC 18F4520 I get an error on ANSEL and ANSELH.
Can anybody please help me with this problem?
Thankful for an answer.

Best regards / LOJS
 

Hi,

The registers ANSEL and ANSELH are implemented in the PIC16F887, and not in the PIC18F4520. These registers configure if the IO pins work as analog or digital. PIC18F4520 uses another way to configure it - ADCON[something] registers. You need to see the device datasheet to configure the right registers.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top