Skip to content

Release 3.3.0: ADC support & bug fixes

Compare
Choose a tag to compare
@andysworkshop andysworkshop released this 14 Jun 13:01
· 512 commits to master since this release

ADC Support

Release 3.3.0 of stm32plus adds support for the ADC peripheral on all MCUs. Seven new example programs show you how to use the various features of this very flexible STM32 peripheral.

  • adc_single. A good demo for getting your feet wet in the world of the ADC. Shows how to convert data on a single channel whilst polling for the results.
  • adc_single_interrupts. Polling for data is an inefficient use of your CPU cycles. The ADC can raise interrupts to tell you when a conversion has finished. This example does just that.
  • adc_single_dma_multichan. A step up from the adc_single example, here we add more channels to the mix and use DMA to transfer the data in the background. We also use the built-in temperature sensor channel to read the chip's temperature.
  • adc_analog_watchdog. Use the ADC to guard an input from going outside an acceptable range. Raises an interrupt when the range is violated.
  • adc_multi_dma_multichan. The F1 and F4 both support multiple ADC peripherals. This example shows how to run two of them simultaneously in master/slave mode using DMA to move data from the peripheral to memory.
  • adc_single_injected. The F1 and F4 support the concept of injected channels that can be automatically converted in conjunction with the regular channels. This example shows how.
  • adc_single_timer_interrupts . Using software to start a conversion is just one of the myriad ways to trigger the ADC on the STM32. This example illustrates one of the alternative methods by using a timer to trigger the ADC at periodic intervals.

Other features and fixes

The full list of issues fixed in 3.3.0 is available here.