Tag Archives: SPI

Adding DMA to the SPI driver with the STM32F4

Sending data over SPI with the STM32 using polling is simple and reliable but your processor is blocked, unable to do anything else until the transfer is complete. Direct Memory Access (DMA) allows you to initiate a transfer of a … Continue reading

Posted in STM32 | Tagged , , | 22 Comments

Nokia 3410 LCD on the STM32

The Nokia LCD displays are among my favourite toys. Generally, I use a monochrome display intended for the Nokia 3410 ‘phone. This a display size of 96 x 48 pixels and can display bitmaps as well as text in 6 … Continue reading

Posted in STM32 | Tagged | 17 Comments

dsPIC serial ports

In general the dsPIC is well blessed with peripherals. The dsPIC30F6015 I am using at the moment has two serial ports in addition to a couple of SPI ports and an I2C port. These UARTs seem pretty easy to use … Continue reading

Posted in dsPic | Tagged , , , | Leave a comment

Decimus hardware fix

It was all getting too awkward. A bit of short sighted design on my part had the Nokia LCD sharing an SPI port with the motor encoders. This meant that I had to turn off the encoders to write to … Continue reading

Posted in Micromouse | Tagged , , , | 5 Comments

LS7366 quadrature counter

The LS7366 is a 32 bit counter with a direct interface for quadrature signals from incremental encoders. There is also an index channel for marker functions. The interface to the microcontroller is SPI mode 0 making it relatively easy to … Continue reading

Posted in Micromouse | Tagged , , , | 20 Comments

SPI data transfers

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 … Continue reading

Posted in Hardware | Tagged , , , , , , , | 2 Comments

Adding a timer and the graphical LCD

This is a fairly big jump. With the LEDs and buttons tested, it is time to add the main graphical display, made from a Nokia cellphone display. Also, there is the main system timer event. The simple user IO is … Continue reading

Posted in Primus | Tagged , , | Leave a comment