Posted Thu, 21/02/2008 - 01:00 by peteh
I use SPI on my micromouse both to talk to the Nokia graphical LCD and to talk to the LS7366 quadrature encoders. A large number of devices can be connected to the SPI data lines, MOSI and MISO. Each device needs its own select line. This all appear very simple and friendly. There is, however a potential problem due to the flexibility of the SPI configuration.
Posted Mon, 18/02/2008 - 03:14 by peteh
Having installed the LCD, it was time to get the code working for it. First I realised that it may not have been so clever to put the LCD on the same SPI port as the encoders. This will mean that I have to take care that the encoders are not being read when the LCD is active. Since the encoders are sampled every interrupt, it means turning them off while writing to the screen. That, in turn, means not writing to the screen while moving, or holding position. I may end up having to patch the board to put the LCD on the other SPI port. In fact, I wish I had done that in the first place as it would just share lines with the UART and I could easily switch between the UART and the SPI for writing debugging messages. Ah well, live and learn.
Posted Sun, 10/02/2008 - 04:26 by peteh
Probably the last part to be added to Decimus will be the Nokia 3410 LCD screen.
Recent comments
1 week 6 days ago
1 week 6 days ago
2 weeks 4 hours ago
2 weeks 8 hours ago
2 weeks 10 hours ago
2 weeks 13 hours ago
2 weeks 3 days ago
2 weeks 3 days ago
3 weeks 5 days ago
4 weeks 3 days ago