Pages: [1]   Go Down
Author Topic: Use TXLED, RXLED and HWB pins as GPIO  (Read 4279 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have a prototype board based on Leonardo and have burnt the bootloader onto the ATmega32U4 IC. I need to use TXLED, RXLED and HWB as general purpose I/O.

What is the best way to do so without replacing the bootloader with something customised?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What do I need to modify in the bootloader to make TXLED, RXLED and HWB pins function as GPIO?
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 545
Posts: 27352
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Likely need to change pins_arduino.h for that board.
"HWB allows to execute the bootloader section after reset when tied to ground during external
reset pulse. The HWB mode of this pin is active only when the HWBE fuse is enable. During normal
operation (excluded Reset), this pin acts as a general purpose I/O."
So a fuse setting change might be needed in boards.txt as well.
The 32U4 is a little different in that is has USB functionality built in as well, so you'll want to investigate further before changing that fuse.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: