SlideShare a Scribd company logo
LED & Switch
Interface
using
TMS320C6745
https://www.pantechsolutions.net/products/dsp-
dsc-boards/tms320c6745-tyro
Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd.
Features of GPIO
The GPIO peripheral consists of the following
features
• Separate input/output registers
• All GPIO signals can be used as interrupt sources
• All GPIO signals can be used to generate events
to the EDMA.
Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd.
Led Connection to C6745
Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd.
GPIO Registers
Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd.
GPIO Address
Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd.
GPIO Direction Registers (DIRn)
By default, all the GPIO pins are configured as inputs
(bit value = 1)
1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0
F 0 0 0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
F F F F
0xF000FFFF
Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd.
GPIO Output Data Registers
(OUT_DATAn)
0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1
0 F F F
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0
0x0FFF0000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0
0x00000000
Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd.
STEPS FOR LED BLINKING
Declare two pointer variables for GPIO Direction register
and GPIO Data Register
Set Byte Address for GPIO Direction register and GPIO Data
Register
Configure GPIO as output in GPIO Direction Register
Configure Required Blinking data in GPIO Data Register
Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd.
Set Base Address
• gpio_dir01 = (Uint32 *)0x01E26010;
• gpio_out_data01 = (Uint32 *)0x01E26014;
Configure Direction register as Output
*gpio_dir01 = 0xF000FFFF;
Configure Data register as Output
*gpio_out_data01 = 0x0FFF0000;
Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd.
DIP SWITCH INTERFACE
Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd.
GPIO Input Data Registers (IN_DATAn)
Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd.
Program
#define Uint32 unsigned int
Uint32 Value,i;
void DelayMs(Uint32 Ms);
void main()
{
Uint32 *gpio_in_data01,*gpio_out_data01,*gpio_dir01;
gpio_in_data01 = (Uint32 *)0x01E26020;
gpio_dir01 = (Uint32 *)0x01E26010;
gpio_out_data01 = (Uint32 *)0x01E26014;
*gpio_dir01 = 0xF000FFFF;
while(1)
{
Value = *gpio_in_data01;
*gpio_out_data01 = Value<<16;
DelayMs(100);
}
}
void DelayMs(Uint32 Ms)
{
Uint32 i;
while(Ms>0)
{
for(i=0;i<30000;i++);
Ms--;
}
}
Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd.
?
Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd.
For more details
– www.pantechsolutions.net
– http://www.slideshare.net/pantechsolutions
– http://www.scribd.com/pantechsolutions
– http://www.youtube.com/pantechsolutions

More Related Content

What's hot (20)

PDF
Qualifying a high performance memory subsysten for Functional Safety
Pankaj Singh
 
PPTX
Embedded System Programming on ARM Cortex M3 and M4 Course
FastBit Embedded Brain Academy
 
PPTX
物聯網技術分享 使用ESP8266
Power Wu
 
PDF
Code GPU with CUDA - SIMT
Marina Kolpakova
 
PPTX
Arduino
Paras Bhanot
 
PDF
Soc - Intro, Design Aspects, HLS, TLM
Subhash Iyer
 
PDF
Routing basics/CEF
Dmitry Figol
 
PDF
SPI Protocol
Anurag Tomar
 
PDF
I2C-SPI-UART Basics || Embedded System || Hariharan K
Hariharan Krishnan
 
PPTX
Module 2 ARM CORTEX M3 Instruction Set and Programming
Amogha Bandrikalli
 
PDF
2 introduction to arm architecture
satish1jisatishji
 
PDF
Arduino uno
Muhammad Khan
 
PDF
I2C Bus (Inter-Integrated Circuit)
Varun Mahajan
 
PPT
Overview of LPC214x MCUs
Premier Farnell
 
PPTX
Interrupt in real time system
ali jawad
 
PPTX
An AI accelerator ASIC architecture
Khanh Le
 
PPTX
Introduction to Arduino Hardware and Programming
Emmanuel Obot
 
PDF
Webinar: Microcontroladores Infineon ARM: PSoC e Traveo II para aplicações au...
Embarcados
 
PPTX
Introduction to arm processor
RAMPRAKASHT1
 
Qualifying a high performance memory subsysten for Functional Safety
Pankaj Singh
 
Embedded System Programming on ARM Cortex M3 and M4 Course
FastBit Embedded Brain Academy
 
物聯網技術分享 使用ESP8266
Power Wu
 
Code GPU with CUDA - SIMT
Marina Kolpakova
 
Arduino
Paras Bhanot
 
Soc - Intro, Design Aspects, HLS, TLM
Subhash Iyer
 
Routing basics/CEF
Dmitry Figol
 
SPI Protocol
Anurag Tomar
 
I2C-SPI-UART Basics || Embedded System || Hariharan K
Hariharan Krishnan
 
Module 2 ARM CORTEX M3 Instruction Set and Programming
Amogha Bandrikalli
 
2 introduction to arm architecture
satish1jisatishji
 
Arduino uno
Muhammad Khan
 
I2C Bus (Inter-Integrated Circuit)
Varun Mahajan
 
Overview of LPC214x MCUs
Premier Farnell
 
Interrupt in real time system
ali jawad
 
An AI accelerator ASIC architecture
Khanh Le
 
Introduction to Arduino Hardware and Programming
Emmanuel Obot
 
Webinar: Microcontroladores Infineon ARM: PSoC e Traveo II para aplicações au...
Embarcados
 
Introduction to arm processor
RAMPRAKASHT1
 

Viewers also liked (18)

PPT
Interfacing UART with tms320C6745
Pantech ProLabs India Pvt Ltd
 
PPTX
Brainsense -Brain computer Interface
Pantech ProLabs India Pvt Ltd
 
PDF
Basics of Connectors
Pantech ProLabs India Pvt Ltd
 
PPT
Introduction to Code Composer Studio 4
Pantech ProLabs India Pvt Ltd
 
PPT
Getting started with code composer studio v4 for tms320 f2812
Pantech ProLabs India Pvt Ltd
 
PPT
Getting started with code composer studio v3.3 for tms320 f2812
Pantech ProLabs India Pvt Ltd
 
PPT
Median filter Implementation using TMS320C6745
Pantech ProLabs India Pvt Ltd
 
PPTX
Internet of Things
Pantech ProLabs India Pvt Ltd
 
PPTX
Lcd module interface with xilinx software using verilog
sumedh23
 
PPT
Waveform Generation Using TMS320C6745 DSP
Pantech ProLabs India Pvt Ltd
 
PPT
Introduction to tms320c6745 dsp
Pantech ProLabs India Pvt Ltd
 
PDF
Types of motors and control techniques using TI motor control kit
Pantech ProLabs India Pvt Ltd
 
PPT
Lcd
deepak281292
 
PPT
Interfacing LCD with 8051 Microcontroller
Pantech ProLabs India Pvt Ltd
 
PPT
Medical Image Processing
Pantech ProLabs India Pvt Ltd
 
PPTX
Microcontroller 8051 and its interfacing
Ankur Mahajan
 
DOC
8051 Microcontroller Notes
Dr.YNM
 
DOCX
Lcd interfacing
AshuKaranam
 
Interfacing UART with tms320C6745
Pantech ProLabs India Pvt Ltd
 
Brainsense -Brain computer Interface
Pantech ProLabs India Pvt Ltd
 
Basics of Connectors
Pantech ProLabs India Pvt Ltd
 
Introduction to Code Composer Studio 4
Pantech ProLabs India Pvt Ltd
 
Getting started with code composer studio v4 for tms320 f2812
Pantech ProLabs India Pvt Ltd
 
Getting started with code composer studio v3.3 for tms320 f2812
Pantech ProLabs India Pvt Ltd
 
Median filter Implementation using TMS320C6745
Pantech ProLabs India Pvt Ltd
 
Internet of Things
Pantech ProLabs India Pvt Ltd
 
Lcd module interface with xilinx software using verilog
sumedh23
 
Waveform Generation Using TMS320C6745 DSP
Pantech ProLabs India Pvt Ltd
 
Introduction to tms320c6745 dsp
Pantech ProLabs India Pvt Ltd
 
Types of motors and control techniques using TI motor control kit
Pantech ProLabs India Pvt Ltd
 
Interfacing LCD with 8051 Microcontroller
Pantech ProLabs India Pvt Ltd
 
Medical Image Processing
Pantech ProLabs India Pvt Ltd
 
Microcontroller 8051 and its interfacing
Ankur Mahajan
 
8051 Microcontroller Notes
Dr.YNM
 
Lcd interfacing
AshuKaranam
 
Ad

Similar to Switch & LED using TMS320C6745 DSP (20)

PDF
I made some more expansion board for M5Stack
Masawo Yamazaki
 
PDF
IRJET- Design and Implementation of PID Controller using HDL on FPGA
IRJET Journal
 
PDF
Banana pi bpi-r1 user manual
wang lion
 
PPTX
Raspberry-Pi GPIO
Sajib Sen
 
PDF
M3L Inc Company Profile (August 19th, 2020 version)
M3L Inc.
 
PDF
Jorjin Technologies - AR Partnerships with Smart Glasses - 10012020
Curt Riley
 
PDF
PPT+.pdf
AlieEldeenAhmed1
 
PPTX
Part-1 : Mastering microcontroller with embedded driver development
FastBit Embedded Brain Academy
 
PDF
RASPBERRY PI WITH JAVA 8 + Pi4J (Devoxx 2014)
savageautomate
 
PPTX
Coding with CircuitPython@CPB
National University of Kaohsiung
 
PDF
Atomic pi Mini PC
Dwika Sudrajat
 
PDF
Atomic PI apug
Dwika Sudrajat
 
PPTX
F9 microkernel app development part 2 gpio meets led
Benux Wei
 
PDF
Company profile 2013.06
hmskorea1
 
PPTX
Raspberry pi led blink
vishal choudhary
 
PDF
Kernel Recipes 2018 - New GPIO interface for linux user space - Bartosz Golas...
Anne Nicolas
 
PDF
Zvika markfeld
Rika Shoham
 
PDF
Wince CE board layout with components diagram
PrestigeFix
 
DOCX
Top 4 multi brand diagnostic scan tools in diyobd2.fr
spobd2
 
I made some more expansion board for M5Stack
Masawo Yamazaki
 
IRJET- Design and Implementation of PID Controller using HDL on FPGA
IRJET Journal
 
Banana pi bpi-r1 user manual
wang lion
 
Raspberry-Pi GPIO
Sajib Sen
 
M3L Inc Company Profile (August 19th, 2020 version)
M3L Inc.
 
Jorjin Technologies - AR Partnerships with Smart Glasses - 10012020
Curt Riley
 
Part-1 : Mastering microcontroller with embedded driver development
FastBit Embedded Brain Academy
 
RASPBERRY PI WITH JAVA 8 + Pi4J (Devoxx 2014)
savageautomate
 
Coding with CircuitPython@CPB
National University of Kaohsiung
 
Atomic pi Mini PC
Dwika Sudrajat
 
Atomic PI apug
Dwika Sudrajat
 
F9 microkernel app development part 2 gpio meets led
Benux Wei
 
Company profile 2013.06
hmskorea1
 
Raspberry pi led blink
vishal choudhary
 
Kernel Recipes 2018 - New GPIO interface for linux user space - Bartosz Golas...
Anne Nicolas
 
Zvika markfeld
Rika Shoham
 
Wince CE board layout with components diagram
PrestigeFix
 
Top 4 multi brand diagnostic scan tools in diyobd2.fr
spobd2
 
Ad

More from Pantech ProLabs India Pvt Ltd (20)

PDF
Registration process
Pantech ProLabs India Pvt Ltd
 
PPTX
Choosing the right processor for embedded system design
Pantech ProLabs India Pvt Ltd
 
PPT
Brain Computer Interface
Pantech ProLabs India Pvt Ltd
 
PPTX
Electric Vehicle Design using Matlab
Pantech ProLabs India Pvt Ltd
 
PPTX
Image processing application
Pantech ProLabs India Pvt Ltd
 
PPTX
Internet of Things using Raspberry Pi
Pantech ProLabs India Pvt Ltd
 
PPTX
Internet of Things Using Arduino
Pantech ProLabs India Pvt Ltd
 
PPTX
Brain controlled robot
Pantech ProLabs India Pvt Ltd
 
PPTX
Brain Computer Interface-Webinar
Pantech ProLabs India Pvt Ltd
 
PPTX
Development of Deep Learning Architecture
Pantech ProLabs India Pvt Ltd
 
PPTX
Gate driver design and inductance fabrication
Pantech ProLabs India Pvt Ltd
 
PPT
Brainsense -Introduction to brain computer interface
Pantech ProLabs India Pvt Ltd
 
PPTX
Wearable Technology
Pantech ProLabs India Pvt Ltd
 
PPTX
MG3130 gesture recognition kit
Pantech ProLabs India Pvt Ltd
 
PPTX
Introduction to Brain Computer Interface
Pantech ProLabs India Pvt Ltd
 
PPTX
Building Robots Tutorial
Pantech ProLabs India Pvt Ltd
 
PPT
Introduction to robotics
Pantech ProLabs India Pvt Ltd
 
PPT
Brainwave starter Kit- Brain computer interface
Pantech ProLabs India Pvt Ltd
 
Registration process
Pantech ProLabs India Pvt Ltd
 
Choosing the right processor for embedded system design
Pantech ProLabs India Pvt Ltd
 
Brain Computer Interface
Pantech ProLabs India Pvt Ltd
 
Electric Vehicle Design using Matlab
Pantech ProLabs India Pvt Ltd
 
Image processing application
Pantech ProLabs India Pvt Ltd
 
Internet of Things using Raspberry Pi
Pantech ProLabs India Pvt Ltd
 
Internet of Things Using Arduino
Pantech ProLabs India Pvt Ltd
 
Brain controlled robot
Pantech ProLabs India Pvt Ltd
 
Brain Computer Interface-Webinar
Pantech ProLabs India Pvt Ltd
 
Development of Deep Learning Architecture
Pantech ProLabs India Pvt Ltd
 
Gate driver design and inductance fabrication
Pantech ProLabs India Pvt Ltd
 
Brainsense -Introduction to brain computer interface
Pantech ProLabs India Pvt Ltd
 
Wearable Technology
Pantech ProLabs India Pvt Ltd
 
MG3130 gesture recognition kit
Pantech ProLabs India Pvt Ltd
 
Introduction to Brain Computer Interface
Pantech ProLabs India Pvt Ltd
 
Building Robots Tutorial
Pantech ProLabs India Pvt Ltd
 
Introduction to robotics
Pantech ProLabs India Pvt Ltd
 
Brainwave starter Kit- Brain computer interface
Pantech ProLabs India Pvt Ltd
 

Recently uploaded (20)

PPTX
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PPTX
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PDF
Governor Josh Stein letter to NC delegation of U.S. House
Mebane Rash
 
PDF
Is Assignment Help Legal in Australia_.pdf
thomas19williams83
 
PPTX
infertility, types,causes, impact, and management
Ritu480198
 
PPTX
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PDF
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
PDF
Week 2 - Irish Natural Heritage Powerpoint.pdf
swainealan
 
PDF
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
PPTX
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
PPTX
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PDF
epi editorial commitee meeting presentation
MIPLM
 
PDF
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
PPTX
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PPTX
Difference between write and update in odoo 18
Celine George
 
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
Governor Josh Stein letter to NC delegation of U.S. House
Mebane Rash
 
Is Assignment Help Legal in Australia_.pdf
thomas19williams83
 
infertility, types,causes, impact, and management
Ritu480198
 
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
Week 2 - Irish Natural Heritage Powerpoint.pdf
swainealan
 
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
epi editorial commitee meeting presentation
MIPLM
 
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
Difference between write and update in odoo 18
Celine George
 

Switch & LED using TMS320C6745 DSP

  • 2. Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd. Features of GPIO The GPIO peripheral consists of the following features • Separate input/output registers • All GPIO signals can be used as interrupt sources • All GPIO signals can be used to generate events to the EDMA.
  • 3. Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd. Led Connection to C6745
  • 4. Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd. GPIO Registers
  • 5. Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd. GPIO Address
  • 6. Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd. GPIO Direction Registers (DIRn) By default, all the GPIO pins are configured as inputs (bit value = 1) 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 F 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 F F F F 0xF000FFFF
  • 7. Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd. GPIO Output Data Registers (OUT_DATAn) 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 F F F 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0x0FFF0000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0x00000000
  • 8. Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd. STEPS FOR LED BLINKING Declare two pointer variables for GPIO Direction register and GPIO Data Register Set Byte Address for GPIO Direction register and GPIO Data Register Configure GPIO as output in GPIO Direction Register Configure Required Blinking data in GPIO Data Register
  • 9. Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd. Set Base Address • gpio_dir01 = (Uint32 *)0x01E26010; • gpio_out_data01 = (Uint32 *)0x01E26014; Configure Direction register as Output *gpio_dir01 = 0xF000FFFF; Configure Data register as Output *gpio_out_data01 = 0x0FFF0000;
  • 10. Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd. DIP SWITCH INTERFACE
  • 11. Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd. GPIO Input Data Registers (IN_DATAn)
  • 12. Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd. Program #define Uint32 unsigned int Uint32 Value,i; void DelayMs(Uint32 Ms); void main() { Uint32 *gpio_in_data01,*gpio_out_data01,*gpio_dir01; gpio_in_data01 = (Uint32 *)0x01E26020; gpio_dir01 = (Uint32 *)0x01E26010; gpio_out_data01 = (Uint32 *)0x01E26014; *gpio_dir01 = 0xF000FFFF; while(1) { Value = *gpio_in_data01; *gpio_out_data01 = Value<<16; DelayMs(100); } } void DelayMs(Uint32 Ms) { Uint32 i; while(Ms>0) { for(i=0;i<30000;i++); Ms--; } }
  • 13. Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd. ?
  • 14. Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd. For more details – www.pantechsolutions.net – http://www.slideshare.net/pantechsolutions – http://www.scribd.com/pantechsolutions – http://www.youtube.com/pantechsolutions