Professional Documents
Culture Documents
The 2 User Buttons On The Hercules LaunchPad Type II - Hackster - Io 2
The 2 User Buttons On The Hercules LaunchPad Type II - Hackster - Io 2
RELATED PROJECTS ×
Overview Hercules LaunchPad MkII:
Hackster
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free! ePWM Example
Things
Story
Search Projects Log in LaunchPad
Hercules Sign up
CAN
Button A
Bus Test Gig
Button B
Projects Channels News Contests Events Videos
Schematics
Hercules Safety Library
Credits
Self Test
Comments (0) Jan Cumps
Published May 23, 2018 © GPL3+
Story
This post describes how to use the two pushbuttons on the new Hercules
LaunchPad type II.
Button A
Button A connects to pin 55, and is multiplexed as:
MIBSPI3NCS_0
AD2EVT
GIOB_2
EQEP1I
The pin 55 is a special case. It also requires that you make the following
Special Pin Muxing setting:
In Code Composer Studio, add this call to sys_main.c to initialize the gio
driver.
You can check the state of the button in your code by executing:
gioGetBit(gioPORTB, 2);
Button B
Button B connects to pin 41, and multiplexes as
N2HET1_15
MIBSPI1NCS_4
ECAP1
We MUX Button B as NHET (NHET1 pin 15). This port/pin combination can be
used in the GIO API as a generic GIO pin.
You need to enable the NHET driver in HALCoGen so that the header files
with the HET registers are created. I also call the init of the HET driver.
gioInit();
hetInit(); // user button B is on the HET1 port, 15
You can check the state of the button in your code by executing:
gioGetBit(hetPORT1, 15);
Schematics
schematics
Credits
Jan Cumps
22 projects • 22 followers
Follow Contact
Comments
Please log in or sign up to comment.
Hitachi LCD Driver Example for Measure Eclipse 2015 with a Hercules TMS570LC43 RTOS Minimal lwIP Project for Hercules
the Hercules LaunchPad Hercules LaunchPad project - LED Blinky with Two LaunchPad
Tasks
Jan Cumps Jan Cumps Jan Cumps Jan Cumps
Hercules: Configure Memory Hercules TMS570LS04 I2C Driver Adapt Web Server and Ethernet IR LaunchPad to LaunchPad
Cache for DMA Library Example for Hercules LaunchPad Communication
Jan Cumps Jan Cumps Jan Cumps Chris Roberts
About Us Legal Thingies Find Us On Social Visit Our Avnet Family Hackster.io, an Avnet Community © 2023