This week, we take a look at the firmware involved in using the SPI bus. From the function calls to control the select pin then send out some data via the SPI bus, the form and specifics of the command structure for an accelerometer, and then we get some data flowing.
Busted data sheets, 16-bit values, and right handed chips - how can you pass this up?Read More
This time, Andrei blends together schematics and oscilloscope traces, pours over data sheets and diagrams, and sifts through the jargon of SPI.
The result is a richer understanding of SPI with a side of CubeMX parameters.Read More
Inigo Montoya: You are wonderful.
Man in Black: Thank you; I've worked hard to become so.
Inigo Montoya: I admit it, you are better than I am.
Man in Black: Then why are you smiling?
Inigo Montoya: Because I know something you don't know.
Man in Black: And what is that?
Inigo Montoya: I am not left-handed.
Man in Black: You are amazing.
Inigo Montoya: I ought to be, after 20 years.
Man in Black: Oh, there's something I ought to tell you.
Inigo Montoya: Tell me.
Man in Black: I'm not left-handed either.
Once we get into the nitty-gritty of SPI, there is going to be a lot of schematics and oscilloscope pictures that we have to figure out. Now is the time to get up to speed on schematic notation and oscilloscopes.Read More
In this post, Andrei explains an unexpected exception caused by following a pointer.
It's an exploration of the translation of C code into assembly and what happens when the compiler tries to figure out what you are doing wrong.Read More
Need to move big amounts of dirt? You could use a tea spoon or something designed for the job, like a dump truck, or a really big dump truck.
In our programs, occasionally, we have to move large blocks of data. We can move it item by item, or bring out the data moving dump truck of computing, DMA.
This week, Andrei presents two examples of using DMA (with code included).Read More
Do you need to shoot out a block of data to your SD card and polling is getting you down? Is your system getting crushed by UART interrupts? Direct Memory Access (DMA) is the answer.
DMA is really useful, but it's treated like computer voodoo by many. This week Andrei introduces us to the concepts behind DMA and gives a few examples.Read More