Advanced Microcontrollers Grzegorz Budzyń Extras: STM32F4Discovery
Plan STM32F4Discovery module STM32F407 description
STM32F4Discovery
STM32F4Discovery Easily availble(farnell), cheap(~15 EUR) and powerful evaluation board
STM32F4Discovery STM32F407VGT6 microcontroller: 32-bit ARM Cortex-M4F core, 1 MB Flash, 192KB RAM On board connector for programming and debugging Boardpowersupply: throughusb busorfroman external 5 V supply voltage USB OTG FS with micro-ab connector
STM32F4Discovery LIS302DL, ST MEMS motionsensor, 3-axis digital output accelerometer MP45DT02, ST MEMS audio sensor, omnidirectional digital microphone CS43L22, audio DAC withintegratedclassd speaker driver Twopushbuttons(userandreset) EightLEDs
STM32F4Discovery
STM32F407
STM32F407 Core: ARM 32-bit Cortex -M4 CPU withfpu, Adaptivereal-timeaccelerator(ART. Accelerator ) allowing 0-wait state execution from Flash memory Frequencyupto 168 MHz, memoryprotectionunit, 210 DMIPS DSP instructions
STM32F407 1 Mbyteofon-chip Flashmemory, 192 KbytesofSRAM, reset circuit, internal RCs(16MHz, 32kHz), PLLs 3.6 V down to 1.7 V VDD Voltage regulator with power scaling capability for easy power consumption reduction
STM32F407 3 12-bit, 2.4 MSPS A/D converters: upto 24 channels and 7.2 MSPS in triple interleaved mode 2 12-bit D/A converters General-purpose DMA: 16-stream DMA controller with FIFOs and burst support Upto 17 timers: upto twelve16-bit andtwo32-bit timersupto 168 MHz, eachwithupto 4 IC/OC/PWM orpulsecounterandquadrature(incremental) encoder input
STM32F407 Upto 140 I/O portswithinterruptcapability Upto 136 fasti/os upto 84 MHz Upto 1385 V-tolerantI/Os True random number generator CRC calculation unit 96-bit uniqueid RTC: subsecond accuracy, hardware calendar
STM32F407 Up to 15 communication interfaces Upto 3 I2C interfaces Upto 4 USARTs/2 UARTs(10.5 Mbit/s, ISO 7816 interface, LIN, IrDA, modem control) Upto 3 SPIs(37.5 Mbits/s), 2 withmuxed full-duplex I2S to achieve audio class accuracy via internal audio PLL or external clock 2 CAN interfaces(2.0b Active) SDIO interface
STM32F407 Advanced connectivity USB 2.0 full-speeddevice/host/otg controller with on-chip PHY USB 2.0 high-speed/full-speed device/host/otg controller with dedicated DMA, on-chip full-speed PHY 10/100 Ethernet MAC withdedicateddma: MII/RMII
STM32F407
STM32F407
STM32F407 Interrupts controller NVIC: Upto 82 maskableinterruptchannelsplus the16 interrupt lines of the Cortex -M4F Low-latency interrupt processing Processor state automatically saved Interruptentryrestoredon interruptexitwithno instruction overhead
STM32F407 Bootmodes-bootpinsareusedto selectone out of three boot options: BootfromuserFlash Boot from system memory Boot from embedded SRAM
DMA controller: STM32F407 The devices feature two general-purpose dualport DMAswith8 streamseach Theyareableto managememory-to-memory, peripheral-to-memory and memory-to-peripheral transfers DMA canbe usedwithallmainperipherals(spi, I 2 C, USART, DAC, ADC, Camera interface(dcmi))
Timers
ADC: STM32F407 Three 12-bit analog-to-digital converters are embedded EachADC sharesupto 16 externalchannels Conversions are performed in the single-shot or scan mode In scan mode, automatic conversion is performed on a selectedgroupofanalog inputs
DAC: STM32F407 Two DAC converters: one for each output channel 8-bit or 12-bit monotonic output triangular-wave generation Dual DAC channel independent or simultaneous conversions DMA capability for each channel External triggers for conversion
STM32F407
STM32F407
Clocks: STM32F407 On resetthe16 MHzinternalRC oscillatoris selected as the default CPU clock The application can then select as system clock eithertherc oscillatororanexternal4-26 MHz clock source Thisclocksourceisinputto a PLL thusallowingto increasethefrequencyupto 168 MHz
Clocks: STM32F407 Several prescalers allow the configuration of the three AHB buses, the high-speed APB (APB2) and the low-speed APB (APB1) domains ThemaximumfrequencyofthethreeAHB buses is168 MHzwhilethemaximumfrequencyofthe high-speed APB domains is 84 MHz The maximum allowed frequency of the lowspeedapb domainis42 MHz
Thank you for your attention
References [1] STM32F407Discovery, User Manual, UM1427, www.st.com [2] STM32F407xx, Datasheet, www.st.com