This is all CCS Wizard code. The setup_spi() statement shown
above in bold will shut down the SSP module. That includes
shutting down the hardware i2c. Delete that line.
Philosopher
Joined: 28 Jan 2007 Posts: 6
Posted: Sun Jan 28, 2007 10:45 am
Ahh.. that's it!
Thank you PCM programmer!
domdom
Joined: 06 Sep 2006 Posts: 29
Posted: Fri Feb 16, 2007 6:51 am
what type of LCD you are using? i am currently using LCD 2x16 connecting to ds1307.
can this code be used in my application?
based on the software given by philosopher, pin DB0-DB7 of LCD connecting to which I/O ports of PIC?
Philosopher
Joined: 28 Jan 2007 Posts: 6
Posted: Fri Feb 16, 2007 12:13 pm
domdom wrote:
what type of LCD you are using? i am currently using LCD 2x16 connecting to ds1307.
can this code be used in my application?
based on the software given by philosopher, pin DB0-DB7 of LCD connecting to which I/O ports of PIC?
I'm using a 4x16 display with a KS0066 controller chip. I believe that chip is compatible with HD44780.
You could use this code but I would recomend you to use the CCS or some other complete driver for this display instead. This is just me messing around.
If you use this code you should connect DB0-DB7 to port D.
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