Nokia 6100 working with LPC2119

Here is the video: http://www.youtube.com/watch?v=iQ-JcEJHoyM

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’ll post the code if anyone wants it.

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. :?

I think he’s wrong. I’ve not looked at the LPC2119, but the low-end LPC2103 can do 8-16 bits. It seems to be the same SPI module as the LPC2148.

Leon

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.

Thanks for the feedback. I’ll try it out and post my findings.