Chapter 2 STM Arm IO Programming 1 STM Slides: 38 Download presentation Chapter 2 STM Arm I/O Programming 1 STM 32 Arm Cortex Portfolio 2 STM 32 F 446 RE Arm Microcontroller Block Diagram 3 STM 32 Arm Cortex Portfolio 4 STM 32 F 446 RE Nucleo Board 5 STM 32 F 446 RE Nucleo Block Diagram 6 STM 32 F 446 RE Nucleo board top layout 7 Memory Map of STMF 446 RE 8 Memory map for STM 32 F 446 RE 9 STM 32 Arm Naming 10 STM 32 Cortex-M Portfolio 11 STM 32 F 4 xx LQFP 64 pinout used in Nucleo. F 446 RE board 12 STM 32 F 4 xx LQFP 100 pinout 13 Partial listing of Peripheral address map for STM 32 F 446 14 Partial listing of Peripheral address map for STM 32 F 446 15 STM Arm Bus Matrix 16 Some of the GPIO Registers in STM 32 F 4 xx Arm 17 The Data and Direction Registers and a Simplified View of an I/O pin 18 GPIOx_ODR Output Data Register (x=A, B, C, . . ) 19 GPIOx_MODER (GPIO Mode) for Direction Register (x=A, B, C, …) 20 RCC_AHB 1 ENR register bits to enable clock to I/O ports 21 User LED connection for STM 32 F 446 RE Nucleo board 22 GPIOx_BSRR (GPIO Bit Set Reset) Register 23 GPIOx_IDR (Input Data) Register 24 Switch connection to STM 32 F 4 -NUCLEO board 25 Connecting external switches to the microcontroller 26 GPIOx_OTYPER Register 27 GPIOx_OSPEEDR Register 28 GPIOx_PUPDR Register 29 STM 32 Arm Pin Multiplexing of Alternate Functions 30 GPIOx_AFRL (GPIOx Alternate Function Low) register to select alternate pin functions 31 GPIOx_AFRH (GPIOx Alternate Function High) register to select alternate pin functions 32 STM 32 F 446 RE Alternative Functions (AF 0 -AF 15) Pin Selection (Partial listing, see Appendix B for full listing) 33 Seven-segment Display 34 Assignments of port pins to each segments of a 7 -seg LED 35 Segment patterns for the 10 decimal digits for a common cathode 7 -seg LED 36 Connections between microcontroller and a two-digit 7 segment LED 37 Connections between microcontroller and 7 -segment LED with drivers 38