I used the code from Jim Lynch’s tutorial and replaced the SPI code with my own. I guess the only interesting part is the lcd requires 9 bits of data on every clock edge, but the lpc can only do 8. So I made a simple software SPI module to solve that problem. Thought this might be interesting for people trying to get the lcd working on micros without hardware SPI modules.
I’m actually kind of surprised that the LPC2119 can only do 8-bit transfers in SPI. My LPC2148 can do any bit length from 8 to 16 bits. Maybe that’s one of the concessions of the lower model. :?
It appears that the user manual is incomplete. It doesn’t describe the full S0SPCR, which is where you would enable > 8 bits/xfer. However, the datasheet says that SPI can do 8 to 16 bits/xfer and SSP can do 4 to 16 bits/xfer. This is identical to the LPC2148. Good catch, Leon.
nabs, you may want to use the LPC2148 user manual for SPI/SSP to see if you can get HW SPI working if you need the additional speed. It appears that NXP is still using a preliminary user manual for the LPC2119, and it is in severe need of an update.