Another exhaustive tutorial on Embedded Lab, by Shawon Shahryiar. These are a great entry point for people looking to transition from working with 8-bit to 32-bit microcontrollers, at least those opting for STM32.
Before you start reading it though, brew yourself a pot of coffee (or tea) as this is one long blog post (about 7000 words – some ebooks are shorter than that). However, by the time you get through to the other side, you'll have a solid grasp of STM32's ADC.
It would certainly take a lot longer if it weren't for the shortcuts provided by mikroC, if we do say so ourselves.
The tutorial starts from a simplified overview of STM32's ADC block and its key features. The author then proceeds to explain the different operating modes, conversion types, trigger signals and so on, moving from the general to the specific.
When talking about STM32's clock tree, the author recommends the mikroC clock configuration tool as a preferable option compared to coding them on your own.
Even though Shawon previously demonstrated how to integrate ST's SPL into mikroC, he prefers using his own version of SPL, along with mikroC libraries.
Shawon Shahryiar shares his mikroC for ARM related tutorials on our Facebook page once he publishes them on Embedded Lab. It's worth sharing here again, in case you missed it back when it was originally posted. But be on the lookout for more to come in the future.
Now, if that coffee (or tea) is ready, click on the link and start learning.
Yours sincerely,
MikroElektronika