Terminate unused multiplexed I/O's in STM8S001J3

Thread Starter

Vindhyachal Takniki

Joined Nov 3, 2014
594
1. How to terminate unused multiplexed I/O's terminations in STM8S001J3.
E.g Pin 8 of it is multiplexed to 4 I/o's : PD5,PD3,PD1,PC6 . I am using PC6 only. How to terminate rest of 3 I/O's in this?

2. If I keep rest of three as output 0, then interfere with high low operation of PC6, it wont let PC6 to turn high on.

3. is it necessary to terminate these unused multiplexed? If yes how?
I suspect in high current consumption than datasheet.
 

MrChips

Joined Oct 2, 2009
30,821
Any unused GPIO pin can be configured as an input by setting the port Px_DDR to 0. Enable the input pullup by setting the port control register Px_CR1 to 1.
 

Thread Starter

Vindhyachal Takniki

Joined Nov 3, 2014
594
But they are multiplexed to same pin. Same hardware pin has 4 internal pins, one of them can be used at a time.
If I enable pull up on these unused pins and make pin used as output, then this pull up will be present in output pin also.

Didnt find in datasheet how to do that or anything mentioning on how to terminate.

My doubt is that this may resulting in increased power consumption, as according to datashet in halt mode current should be 4.5uA around but i am getting 70-80uA approx.


rest all periphreals/pins i have properly turned off/terminated.
 
Top