GPIO General Purpose Input/output Tiva C TM4C123GH6PM

Slides:



Advertisements
Similar presentations
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.
Advertisements

PROGRAMMABLE PERIPHERAL INTERFACE -8255
External Interrupt Module MTT EXTERNAL INTERRUPT REQUEST MODULE (IRQ)
Avalon Switch Fabric. 2 Proprietary interconnect specification used with Nios II Principal design goals – Low resource utilization for bus logic – Simplicity.
Refer to Chapter 6, 9 in the reference book
Grading Lab reports: 10pts each. Demo required Homeworks: 3 points each (will be scaled by difficulty) Ratios –Lab: 25% –Homework 25% –Quizzes total 25%
HT46 A/D Type MCU Series Data Memory (Byte) Program Memory HT46R22 (OTP) HT46C22 (Mask) 2Kx Kx16 4Kx HT46R23 (OTP) HT46C23 (Mask) HT46R24.
Raul Cabrera Khaldon Batnij Isaac Zavala
Chapter 6 – MSP430 Micro-Architecture. BYU CS/ECEn 124Chapter 6 - MSP430 Micro-Architecture2 Concepts to Learn… Computer Architecture MSP430 Micro-Architecture.
1-1 NET+OS Software Group Serial EEPROM API Supported Serial EEPROM parts Serial EEPROM API introduction Detailed Serial EEPROM API Function presentation.
ENGR 355 Take Home Lecture 2 WRITING CODE Introductory Comments /* Disgruntled Avians Lab 6 ENGR355 by Tim Kyle Rev /1/2014 LM-3551 Tilt Sensor.
3-1 Digital I/O A group of I/O pins is called a PORT  A port is where data enters/leaves the system. Digital I/O pins are usually grouped into 8,16 or.
1 ARM University Program Copyright © ARM Ltd 2013 General Purpose I/O.
1-1 Embedded Network Interface (ENI) API Concepts Shared RAM vs. FIFO modes ENI API’s.
1 ARM University Program Copyright © ARM Ltd 2013 General Purpose I/O.
Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN.
ECS642U Embedded Systems Digital I/O William Marsh.
1 General Purpose and Alternate Function I/O (GPIO and AFIO)
2003 Dominic Swayne1 Microsoft Disk Operating System and PC DOS CS-550-1: Operating Systems Fall 2003 Dominic Swayne.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
L05 – Logic Synthesis Fall /19/02 Hmmm, by sharing the decoder part of the logic MUXs could be adapted to make lookup tables with any number.
IO Subsystem IV Ports and peripherals. IO Subsystem (1) All devices connected to the system buses, other than memory and CPU – Input and output ports.
Embedded Network Interface (ENI). What is ENI? Embedded Network Interface Originally called DPO (Digital Product Option) card Printer without network.
7/23 Coldfire 5211 Signals and IO Multiplexing Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang Lee
INTRODUCTION TO PIC MICROCONTROLLER. Overview and Features The term PIC stands for Peripheral Interface Controller. Microchip Technology, USA. Basically.
By James Cockrell and Justin Loveless
NS Training Hardware Traffic Flow Note: Traffic direction in the 1284 is classified as either forward or reverse. The forward direction is.
CSCI1600: Embedded and Real Time Software Lecture 9: Input Output Concepts Steven Reiss, Fall 2015.
CIT 673 Created by Suriyong1 Micro controller hardware architechture.
1-3 GPIO_Output(LuminaryLibrary) 1.Alter the output current to 4mA 2.Let LED0 turn on but LED 1 turn off. Modify your program in E:\yourname\arm.
EE365 - Microprocessors period 26 10/23/00 D. R. Schertz # Parallel Ports.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions.
NET+OS 6.1 Training. GPIO APIs NET+OS 6.1 Signal Multiplexing System tradeoffs affecting pin count at design-time. –NS9750 unit cost reduced by conserving.
Tiva C TM4C123GH6PM UART Embedded Systems ECE 4437 Fall 2015 Team 2:
STM32F107VC Datablad Reference manual Schematics.pdf.
Chapter 4. CONCEPT OF THE OPERATING SYSTEM MANAGING ESSENTIAL FILE OPERATIONS.
8255 Programmable Peripheral Interface
AT91SAM7X256 - PIO YoonMo Yeon
TI ARM I/O Programming Chapter 2
Microcontrollers & GPIO
Microprocessor Systems Design I
Fri. Sept 29 Announcements
Mon. Oct 2 Announcements Quiz Postponed to Wednesday – still only on 2.a + 2.b Video lecture for 2.a posted Lab 6 experiment extension You must come to.
Chapter 6 General Purpose Input/Output
UNIT – Microcontroller.
Lesson Outline Peripherals Memory-Mapped IO Ports GPIO Multiplexing
Refer to Chapter 10 in the reference book
NS Training Hardware.
Programming Microcontroller ADC – Analog Digital Converter
AVR Addressing Modes Subject: Microcontoller & Interfacing
Dr. Michael Nasief Lecture 2
Blinking an LED Using MSP430ware to Control GPIO
Programming Microcontroller GPIO – General Purpose Input/Output
The Arduino Microcontroller: Atmel AVR Atmega 328
Avalon Switch Fabric.
Introduction to Microprocessors and Microcontrollers
STM Arm I/O Programming
We will be studying the architecture of XC3000.
The Xilinx Virtex Series FPGA
8259 PROGRAMMABLE INTERRUPT CONTROLLER
I/O Ports.
82C55 Programmable Peripheral Interface
8259 Programmable Interrupt Controller
Baremetal C Programming for Embedded Systems
Programmable Peripheral Interface
8259 PROGRAMMABLE INTERRUPT CONTROLLER
8051 Micro Controller.
The Xilinx Virtex Series FPGA
Speaker: Yu-Ju Cho 卓余儒 Advisor: Prof. An-Yeu Wu 吳安宇教授
Speaker: Yu-Ju Cho 卓余儒 Advisor: Prof. An-Yeu Wu 吳安宇教授
Presentation transcript:

GPIO General Purpose Input/output Tiva C TM4C123GH6PM James Boswell Gary O’Day Michael Whatley

General Information 6 GPIO ports (A,B,C,D,E, and F) combine to offer up to 43 GPIOS (depending on configuration) Multiplexing allows pins to be used as GPIO or one of several alternate peripheral functions. Commit control protection is provided to the JTAG/SWD (pins PC[3:0]) and non maskable interrupt pins (PD7 and PF0). GPIO Pin states retained during hibernation mode Digital inputs are Schmitt- triggered Programmable control for GPIO pad configuration pull up or pull down resistor 2,4, or 8 mA drive Up to four pads can sink 18 mA for high current applications

Alternate Function Table Part 1

Alternate Function Table Part 2

GPIO Initialization General Process

Methods of Configuration Direct Register method peripherals are programmed by directly accessing memory addresses . Software driver method The software Driver model utilizes the TivaWare™ Peripheral Driver Library. Pinmux Utility Graphical user interface use to configure GPIO multiplexing

Direct Register Access Model The header file, “TM4C123GH6M.h” contains all of the definitions for assigning port variables to the physical memory locations. variable names begin with the module name and number (GPIO_PORTF) followed by register name as presented in data sheet. for example, the DIR (direction) register combined with the GPIO_PORTF would result in the variable GPIO_PORTF_DIR_R. Values that end in _R are used to access the value of a register Values that end in _M represent the mask for a multi-bit field in a register Values that end in _S represent the number of bits to shift a value in order to align it with a multi-bit field.

Direct Register Access Method Example Header Files Located Here

Software Driver Model The Library contains pre defined functions or APIs (Application Programming Interface)for configuring peripherals. Header Files Located Here

Partial List of GPIO APIs Complete List Found in TivaWare Peripheral Driver Library Manual (link provided in reference section).

PinMux Utility Graphical user interface use to configure GPIO multiplexing Built in protection for collision control Protection for JTAG pins Automatically generates c source and header files

PinMux Utility continued

Questions ?

References http://www.ti.com/lit/ug/spmu296/spmu296.pdf http://users.ece.utexas.edu/~valvano/Volume1/tm4c123gh6pm.pdf http://www.ti.com/lit/ug/spmu298a/spmu298a.pdf http://users.ece.utexas.edu/~valvano/Volume1/tm4c123gh6pm.h Fall 2014 presentation by Raul Cabrera, Khaldon Batnij, Isaac Zavala