© Warren Gay 2018
Warren GayBeginning STM32https://doi.org/10.1007/978-1-4842-3624-6_13

13. OLED Using DMA

Warren Gay1 
(1)
St. Catharines, Ontario, Canada
 

In the previous chapter, software was developed to drive the OLED using master-mode SPI transactions. The STM32 platform does, however, support a DMA (direct memory access) controller, which can be exploited to perform the I/O operations and leave more cycles available for the CPU. This chapter will explore how to set up and use that DMA controller to drive the OLED device.

Challenges

This project will challenge us a little bit because our OLED device requires some special handling. The main challenges are as follows:
  • The OLED SSD1306 controller allows us to only update one of eight pages at a ...

Get Beginning STM32: Developing with FreeRTOS, libopencm3 and GCC now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.