Download BACHELOR THESIS
Transcript
List of Figures 2.1 Block diagram of Cortex-M3 processor . . . . . . . . . . . . . . . . . . . . . 4 2.2 Block diagram of Cortex-M3 core . . . . . . . . . . . . . . . . . . . . . . . . 5 2.3 Block diagram of STM32 MCU . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.4 Shape of 18 MHz output signal . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.5 Principle of port reading with DMA access . . . . . . . . . . . . . . . . . . . 11 2.6 Reading speed measurement result (with DMA), f = 100kHz . . . . . . . . . . 11 3.1 STM32 Primer 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.2 STM32 Primer 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.3 Flash Loader Demonstrator . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.1 Breadboard with STM32 development board, 3.3 Volt stabilizer and EEPROM connected via I2C bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.2 STM32 RCC unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 4.3 STM32 GPIO pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 4.4 Timer diagram, internal clock divided by 4, up counting . . . . . . . . . . . . . 25 4.5 USART data frame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 4.6 ADC calibration timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . 29 4.7 I2C data validity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 4.8 Terminal user interface of I2C demonstration program . . . . . . . . . . . . . . 31 4.9 I2C example HW realization . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 4.10 I2C demonstration flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 4.11 EEPROM - Random address read diagram . . . . . . . . . . . . . . . . . . . . 34 4.12 EEPROM - Page write diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 34 4.13 SPI bus interconnection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 4.14 SPI driven stopwatch HW realization . . . . . . . . . . . . . . . . . . . . . . . 35 4.15 Implementation of LED display driven by SPI bus . . . . . . . . . . . . . . . . 36 4.16 Stopwatch program flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 4.17 Full speed device with pull up resistor connected to D+ . . . . . . . . . . . . . 39 4.18 STEVAL - ILL015V1 board . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 vii