On this board the LCD is connected to a SPI I\O expander (MCP23S17).
And the I\O expender has a SPI interface that connect it to the microcontroller (PIC18F8722)
So if I'm right this is a serial communication and the example of code just ahead can not be used for this case.
So my question is:
Does anybody have a example of source code for the command of a LCD display with a SPI interface??
I have searching the forum but without result :-(
Thank you
PS: sorry for my English I'm FR...
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Wed Feb 03, 2010 1:19 pm
Look at this thread on the Microchip forum:
http://www.microchip.com/forums/tm.aspx?m=368990&mpage=1
At the end of the thread, there is a post by jblackann_tt which has
a link "Attachment(4)" at the end. It has C18 source code for an
LCD driver for the PIC18 Explorer Board. It's written in a fairly
primitive manner. With CCS, we normally write code at a higher
level than that. But, it could be translated to CCS.
Or, you could switch to the Microchip C18 compiler.
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