TI ARM I/O Programming Chapter 2

Slides:



Advertisements
Similar presentations
1 ECE 372 – Microcontroller Design Parallel IO Ports - Outputs Parallel IO Ports E.g. Port T, Port AD Used to interface with many devices Switches LEDs.
Advertisements

The Intel 8255 Programmable Peripheral Interface chip is used to give the microprocessor (8088) access to programmable input/ output devices. It has three.
3-1 Peripherals & I/O lines All the on-chip peripherals are configured and controlled through Special Function Registers (SFR) Many of the SFR’s are bit.
Georgia Tech Digital Back-end µHRG interface Curtis Mayberry School of Electrical and Computer Engineering Georgia Institute of Technology January 13 th,
PROGRAMMABLE PERIPHERAL INTERFACE -8255
7-Segment Displays Lecture L6.1 Section 6.3. Turning on an LED.
OUTPUT INTERFACE – Microprocessor Asst. Prof. Dr. Choopan Rattanapoka and Asst. Prof. Dr. Suphot Chunwiphat.
Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.
TK2633 Introduction to Parallel Data Interfacing DR MASRI AYOB.
Input/Output (I/O) Ports and Interfacing
Refer to Chapter 6, 9 in the reference book
Counter Circuits and VHDL State Machines
Robotics Research Laboratory Louisiana State University.
PIC microcontrollers. PIC microcontrollers come in a wide range of packages from small chips with only 8 pins and 512 words of memory all the way up to.
ECE/CS-352: Embedded Microcontroller Systems Embedded Microcontroller Systems.
COE4OI5 Engineering Design Chapter 2: UP2/UP3 board.
1 4-Integrating Peripherals in Embedded Systems (cont.)
Multiplexed External Bus Interface-MEBIV3 By: Prof. Mahendra B. Salunke Asst. Prof., Department of Computer Engg., SITS, Pune-41
MCS-51 Hardware Interfacing
Basic I/O Interface A Course in Microprocessor
The miniDragon+ Board and CodeWarrior Lecture L2.1.
1 ARM University Program Copyright © ARM Ltd 2013 General Purpose I/O.
ECS642U Embedded Systems Digital I/O William Marsh.
AVR Programming: Digital I/O September 10, What is Digital I/O? Digital – A 1 or 0 Input – Data (a voltage) that the microcontroller is reading.
Programmable Peripheral Interface Parallel port Interface 8255
ENEE 440 Chapter PPI 8255 Register Select -CS A1 A0 REGISTER R/W PORT A R/W PORT B R/W PORT C R/W CR W 1 X X8255 NOT.
EE365 - Microprocessors period 26 10/23/00 D. R. Schertz # Parallel Ports.
UNIT 7 - INTRODUCTION TO I/O INTERFACING. TWO MAJOR TYPES OF I/O INTERFACING ISOLATED I/O - DEDICATED I/O INSTRUCTIONS ARE USED TO ACCESS I/O DEVICES.
8255:Programmable Peripheral Interface
Steve Andre Eric Glover Shaun Greene Russell Willmot.
LED AND KEYBOARD INTERFACING PREPARED BY :- PREPARED BY :- RAVAL AKASH ( ) RAVAL AKASH ( ) PATEL HARDIK ( ) PATEL HARDIK.
MICROPROCESSOR INTEL 8086/8088 BY: SERA SYARMILA SAMEON.
7 SEGMENT INTERFACE WITH AVR MICROCONTROLLER A. D. Patel Institute Of Technology EC :- Sem VPresent By :- Pratik Makadia ( ) 23 June
DEPARTMENT OF ELECTRONICS ENGINEERING V-SEMESTER MICROPROCESSOR & MICROCONTROLLER 1 CHAPTER NO microcontroller & programming.
8255 Programmable Peripheral Interface
Embedded Microcontroller Systems
UART Serial Port Programming
Fundamentals of Computer Engineering
I/O Systems.
Input/Output Ports and Interfacing
TOPIC: INTERFACING OF 7-SEGMENT USING SPI PROTOCOL
Embedded Microcontroller Systems
Refer to Chapter 5 in the reference book
GPIO General Purpose Input/output Tiva C TM4C123GH6PM
Refer to Chapter 10 in the reference book
General Purpose I/O.
COMP2121: Microprocessors and Interfacing
ADC Interfacing Source: In under
Atmel ARM I/O Programming
Freescale ARM I/O Programming
ADC, DAC, and Sensor Interfacing
ADC, DAC, and Sensor Interfacing
SPI Protocol and DAC Interfacing
SPI Protocol and DAC Interfacing
STM Arm I/O Programming
Architectural Features
SPI Protocol and DAC Interfacing
8255.
Atmel ARM Timer Programming
SPI Protocol and DAC Interfacing
MSP432 ARM Timer Programming
Programmable Peripheral Interface
Arduino Board.
Programmable Peripheral Interface
I2C Protocol and RTC Interfacing
8051 Micro Controller.
SPI Protocol and Programming
I/O Programming with Arduino
XC9500 Architectural Features
TI LaunchPad I/O Programming with Energia
Presentation transcript:

TI ARM I/O Programming Chapter 2 Microcontroller Course www.MicroDigitalEd.com

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

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

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

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

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

GPIO (GPIO Memory Map) Produced by Sh. Yaghni

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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