Raul Cabrera Khaldon Batnij Isaac Zavala

Slides:



Advertisements
Similar presentations
8086 [2] Ahad. Internal! External? 8086 vs _bit Data Bus 20_bit Address 8_bit Data Bus 20_bit Address Only external bus of 8088 is.
Advertisements

PROGRAMMABLE PERIPHERAL INTERFACE -8255
82C55 82C55 Programmable Peripheral Interface Interfacing Part III.
I/O Unit.
1/1/ / faculty of Electrical Engineering eindhoven university of technology Introduction Part 3: Input/output and co-processors dr.ir. A.C. Verschueren.
Refer to Chapter 6, 9 in the reference book
Implementing interrupt driven IO. Why use interrupt driven IO? Positive points –Allows asynchronous operation of IO events –Good use of resources –Leads.
6-1 I/O Methods I/O – Transfer of data between memory of the system and the I/O device Most devices operate asynchronously from the CPU Most methods involve.
HT46 A/D Type MCU Series Data Memory (Byte) Program Memory HT46R22 (OTP) HT46C22 (Mask) 2Kx Kx16 4Kx HT46R23 (OTP) HT46C23 (Mask) HT46R24.
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
Decoding Barcodes Various approaches. Decoding barcodes There are a number of ways of decoding the barcodes –The data can be polled –The data can be read.
MSP432™ MCUs Training Part 9: Porting between MSP430 and MSP432
3-1 System peripherals & Bus Structure Memory map of the LPC2300 device is one contiguous 32-bit address range. However, the device itself is made up of.
Serial Peripheral Interface Module MTT M SERIAL PERIPHERAL INTERFACE (SPI)
Network and Systems Laboratory nslab.ee.ntu.edu.tw.
ARM Timers.
MICROPROCESSOR INPUT/OUTPUT
1 ARM University Program Copyright © ARM Ltd 2013 General Purpose I/O.
Digital to Analogue Converter
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.
7/23 Interrupt Controller and Edge Port in Coldfire Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang Lee.
Lecture 11 Low Power Modes & Watchdog Timers
ECS642U Embedded Systems Digital I/O William Marsh.
I/O Interfacing A lot of handshaking is required between the CPU and most I/O devices. All I/O devices operate asynchronously with respect to the CPU.
MODES OF Details of Pins Pin 1GND –Connected Ground Pins 2-16 AD14-AD0–acts as both input/output. Outputs address at the first part of the cycle.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This training course provides an overview of the CPU architecture.
1 General Purpose and Alternate Function I/O (GPIO and AFIO)
Chapter 7 Larger Systems and the PIC 16F873A The aims of this chapter are to introduce: The architecture of the 16F873A microcontroller; The 16F873A memory.
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.
Interrupt driven I/O. MIPS RISC Exception Mechanism The processor operates in The processor operates in user mode user mode kernel mode kernel mode Access.
80386DX functional Block Diagram PIN Description Register set Flags Physical address space Data types.
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
This material exempt per Department of Commerce license exception TSU Architecture Wizard and PACE Lab 2 Introduction.
Chapter 5 - Interrupts.
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.
KyungHee Univ. 1-0 Parallel Input/Output Controller (PIO)
Interrupt driven I/O Computer Organization and Assembly Language: Module 12.
Lecture 4 General-Purpose Input/Output NCHUEE 720A Lab Prof. Jichiang Tsai.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions.
#1 of 10 Tutorial Introduction PURPOSE -To explain how to configure and use the Timer Interface Module in common applications OBJECTIVES: -Identify the.
Lesson 2 Component Overview Core Hardware Fundamentals.
Interrupt-Driven I/O There are different types of interrupts –Hardware Generated by the 8259 PIC – signals the CPU to suspend execution of the current.
8255:Programmable Peripheral Interface
Tiva C TM4C123GH6PM UART Embedded Systems ECE 4437 Fall 2015 Team 2:
STM32F107VC Datablad Reference manual Schematics.pdf.
Team 7 Chaofan Chen Dhruvmin Gandhi Larry Gerhardt Pulse-width Modulation with the TIVA C.
1 The LPC1768 Architecture (with focus on Cortex-M3)
Application Case Study Christmas Lights Controller
EET 2261 Unit 13 Enhanced Capture Timer
TI ARM I/O Programming Chapter 2
CS501 Advanced Computer Architecture
Code review: GPIO, timer, and ISR
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.
Refer to Chapter 5 in the reference book
Chapter 6 General Purpose Input/Output
GPIO General Purpose Input/output Tiva C TM4C123GH6PM
Refer to Chapter 10 in the reference book
Introduction to the processor and its pin configuration
NS Training Hardware.
The 8255 Programmable Peripheral Interface
Blinking an LED Using MSP430ware to Control GPIO
CSCI1600: Embedded and Real Time Software
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
CSCI1600: Embedded and Real Time Software
Speaker: Yu-Ju Cho 卓余儒 Advisor: Prof. An-Yeu Wu 吳安宇教授
Presentation transcript:

Raul Cabrera Khaldon Batnij Isaac Zavala GPIO Tiva C® Series Raul Cabrera Khaldon Batnij Isaac Zavala

Introduction to GPIO General-purpose input/output (GPIO) peripherals provide pins that can be configured for either input or output. Output: able to write to an internal register to control the state driven on the output pin. Input: can detect the state of the input by reading the state of an internal register

General Information 6 GPIO ports 48 GPIO pins PC0-PC3 are protected against accidental programming for JTAG/SWD PD7&PF0 Non Maskable Interrupts NMI GPIO Blocks are labeled as Port A-F All pins are only 5v tolerant except PD4, PD5, PB0, PB1 which are limited to 3.6v

TM4C123GH6PM I/O pins

GPIO Driver The GPIO module allows you to manage General Purpose I/O pins and ports via simple and portable APIs. The application needs to supply a GPIO_Config structure to the module.

EK_TM4C123GXL.c EK_TM4C123GXL_initGPIO() function needed to initialize the board specified GPIO peripheral settings. Declares the GPIO_config structure for pin input/output configuration Configurations should be set before calling GPIO_init()

APIs • GPIO_init() sets up the configured GPIO ports and pins. The following are the GPIO APIs: #include <ti/drivers/GPIO.h> • GPIO_init() sets up the configured GPIO ports and pins. • GPIO_read() gets the current state of the specified GPIO pin. • GPIO_write() sets the state of the specified GPIO pin to on or off. • GPIO_toggle() toggles the state of the specified GPIO pin. • GPIO_setupCallbacks() sets up the hardware interrupt and callback table for a GPIO port. • GPIO_clearInt() clears the interrupt flag for the specified GPIO pin. • GPIO_disableInt() disables interrupts on the specified GPIO pin. • GPIO_enableInt() enables interrupts on the specified GPIO pin for the specified pin event.

PinMux Provides a simple graphical way to initialize port pins with collision and error control Gives users the ability to select from a list of supported peripherals and automatically generate code for the required peripheral functions Provides protection for JTAG pins Generates fully-commented code that implements Driver Library API calls to enable the required peripheral clocks and to configure the pins for the chosen function Allows manual selection of port functions and automatic selection of peripherals with the ability to lock/unlock specific port functions

Example

Example

Questions?

References and further reading TM4C123GH6PM Data sheet - http://www.keil.com/dd/docs/datashts/ti/tm4c123/tm4c123gh6pm.pdf TI-RTOS User guide- http://www0.egr.uh.edu/Courses/ECE/ECE4437/labsupport/TI-RTOS/spruhd4f_TIRTOS_UG_2.0.pdf