Unused pins of RS08KA2

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unused pins of RS08KA2

2,024 Views
shastri
Contributor I
Thanks Navidad for the header link. I am using only two I/O pins in my RS08KA2. What should I do with the unused pins?. Do I need to pull it down to ground or leave it open? Thanks in advance.
 
Thanks and regards,
 
NVS Shastri
Labels (1)
0 Kudos
4 Replies

492 Views
Ake
Contributor II
Hello,
Either you use the I/Os as input or output pins.
 
If you use them as inputs, you don't have to add any code, but you must either connect them with one resistor each either to Vdd or Vss.
If you don't use a resistor, just connect the pins directly to Vdd or Vss, there is a chance that the program might crash, and reprogram the I/O ports to be output instead. This will burn the I/Os of the MCU.
If you use one resistor for several I/Os, chanses are that one of them gets to be reprogrammmed as output with the value 1 in the data register, and the other with the value 0. This will burn the output stages in the I/O. So use one resistor for each I/O pin.
The resistor should be about 10 Kohm.
 
Or you can use the I/Os as outputs. Then you don't have to bother about the resistors. But there is a faint possibility to get ESD/EMI at powerup before the I/Os have been set up as outputs.
As there is no resistors involved, there is no extra current drawn.
 
Regards,
Ake
0 Kudos

492 Views
shastri
Contributor I
Thanks Ake.
 
Best Regards,
 
NVS Shastri
0 Kudos

492 Views
JimDon
Senior Contributor III
"To avoid extra current drain from floating input pins, the reset initialization
routine in the application program must enable on-chip pullup/pulldown
devices or change the direction of unused pins to outputs."

It's not to big a deal, but there is certainly no need to add extra parts.

0 Kudos

492 Views
shastri
Contributor I
Thanks JimDon.
 
Best Regards,
 
NVS Shastri
0 Kudos