2016-02-02 02:22 PM
I am using the STM8S103K3. The data specifies power consumption only with all inputs at the rail voltage. Also the data sheet says to ''turn off schmitt input'' on adc input to save power. These things imply that excess power is consumed by digital inputs when not at the supply rails.
My PWM outputs are tied to Vcc/2. When I turn them off how much power will be consumed by the input being at Vcc/2. If I drive the output to one of the rails this will also consume power. So I have to choose one or the other ... or add circuitry.2016-08-13 02:13 PM
I think that I found a solution:
a. set the pin as output (this turns off the schmitt input circuitry)b. set the output to pseudo open drainc. set the output state to ''high''In theory this should allow the pin to float to intermediate voltages without consumingexcess supply current (delta Icc) - BUT I have not tested it.2016-08-13 05:29 PM
This is embarrassing. I misinterpreted the diagram.
Setting the pin to output mode does NOT disable the input circuits.So I guess there is no way to avoid the ΔIcc current - the magnitude of whichis not specified in the datasheet.