Does anyone know why LCD420.C works beautifully on PIC16F devices and not at all on PIC18F devices? _________________ Eric
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Tue Mar 21, 2006 9:25 pm
Quote:
Does anyone know why LCD420.C works beautifully on PIC16F
devices and not at all on PIC18F devices?
Code:
#byte lcd = 6 // This puts the entire structure
// on to port B (at address 6)
The register addresses are different between the 16F and 18F devices.
Download the data sheet for your PIC. Look in the Table of Contents
on the left side in the Acrobat reader. Find the register map table.
Then look up the address for the Port B register, and substitute that
address for the value of 6, above. This assumes that you have wired
your LCD to Port B.
Code:
Data Memory Organization
--- SPECIAL FUNCTION REGISTERS
------ SPECIAL FUNCTION REGISTER MAP
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum