Mapping an LCD to PORTA on a 18F2520 using #byte command...?
Posted: Thu May 17, 2007 6:46 am
Is there any reason why an LCD should not be overlayed to PORT A on a 18F2520?
In the driver file LCD.C, the LCD is always mapped to either PORT B or PORT D using the #byte lcd = 0xF81 or #byte lcd = 0xF83 command which I understand. I have succesfully mapped the LCD to PORT B on a 16F648 device, but now I want to map the LCD to PORT A on a 18F2520 device using #byte lcd = 0xF80; however I cannot get it to work....Any ideas - am I missing something?
Thanks,
Spero Colyvas
Ttelmah Guest
Posted: Thu May 17, 2007 9:02 am
Beware that the A4 line on many PIC's, does not have any drive 'upwards'. If used as an output, it needs a pull-up resistor added.
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