Presentation is loading. Please wait.

Presentation is loading. Please wait.

TI ARM I/O Programming Chapter 2

Similar presentations


Presentation on theme: "TI ARM I/O Programming Chapter 2"— Presentation transcript:

1 TI ARM I/O Programming Chapter 2
Microcontroller Course

2 Topics Texas Instruments Tiva TM4C123GH6PM Microcontroller GPIO
I/O Pins in TI Tiva LaunchPad Direction and Data Registers Data Register (GPIODATA) in TI ARM Seven-segment LED interfacing and programming Produced by Sh. Yaghni

3 Texas Instruments Tiva TM4C123GH6PM Microcontroller (TI Tiva TM4C123GH6PM Microcontroller High-Level Block Diagram) Produced by Sh. Yaghni

4 Texas Instruments Tiva TM4C123GH6PM Microcontroller (TI Tiva LaunchPad Trainer board)
Produced by Sh. Yaghni

5 Texas Instruments Tiva TM4C123GH6PM Microcontroller (Memory Map in TM4C123GH6PM)
Produced by Sh. Yaghni

6 Texas Instruments Tiva TM4C123GH6PM Microcontroller (Memory Map )
Produced by Sh. Yaghni

7 GPIO (GPIO Memory Map) Produced by Sh. Yaghni

8 I/O Pins in TI Tiva LaunchPad (TM4C134GH6PM Pin-out)
Produced by Sh. Yaghni

9 Direction and Data Register (The Data and Direction Registers and a Simplified View of an I/O pin)
Produced by Sh. Yaghni

10 Data Register (GPIODATA) in TI ARM (GPIOData Register)
Produced by Sh. Yaghni

11 Data Register (GPIODATA) in TI ARM (Bit banding case study )
Produced by Sh. Yaghni

12 Data Register (GPIODATA) in TI ARM (Bit banding case study )
Example: writing to address 0x Produced by Sh. Yaghni

13 Direction Register in TI ARM (GPIODIR Register)
Produced by Sh. Yaghni

14 Direction Register in TI ARM (Some GPIO Registers)
Offset Name Description Type Reset Value 0x0000 GPIODATA Data register R/W 0x0400 GPIODIR Direction register 0x0510 GPIOPUR Pull-up Register 0* 0x051C GPIODEN Digital Enable Note: On reset, all pins are in input tri-state mode; except PA[1:0], PA[5:2], PB[3:2], PC[3:0] Produced by Sh. Yaghni

15 The GPIO Digital Enable Register (GPIODEN Register)
Produced by Sh. Yaghni

16   The GPIO Clock enable for all the I/O ports (RCGCGPIO (Run mode Clock Gating Control) Register )
Produced by Sh. Yaghni

17 LED connection in TI Tiva LaunchPad (LED connection to PORTF in TI Tiva LaunchPad)
Produced by Sh. Yaghni

18 Reading a switch in TI Tiva LaunchPad ( Push-button Switches Connected to the Microcontroller in the Tiva LaunchPad Board) Produced by Sh. Yaghni

19 Seven-segment LED interfacing and programming (Seven Segment)
Produced by Sh. Yaghni

20 Seven-segment LED interfacing and programming (Assignments of port pins to each segments of a 7-seg LED) D7 D6 D5 D4 D3 D2 D1 D0 . g F e D c B a Produced by Sh. Yaghni

21 Seven-segment LED interfacing and programming (Segment patterns for the 10 decimal digits for a common cathode 7-seg LED) Num D7 D6 D5 D4 D3 D2 D1 D0 Hex value . g f e d c b a 1 0x3F 0x06 2 0x5B 3 0x4F 4 0x66 5 0x6D 6 0x7D 7 0x07 8 0x7F 9 0x6F Produced by Sh. Yaghni

22 Seven-segment LED interfacing and programming (Microcontroller Connection to 7-segment LED)
Produced by Sh. Yaghni

23 Seven-segment LED interfacing and programming (Microcontroller Connection to 7-segment LED with Buffer Driver) Produced by Sh. Yaghni


Download ppt "TI ARM I/O Programming Chapter 2"

Similar presentations


Ads by Google