Please help me reverse engineer these buttons...
Hi,
I am trying to figure out how a set of buttons interfaces with the microprocessor - an STM8S 003K3T6C ([url=https://www.st.com/resource/en/datasheet/stm8s003f3.pdf]datasheet[/url])
I am familiar with simple button config - you pull GPIOs high or low with the button and detect the change.
I don't understand what is going on with this circuit at all... I want to know so I can bypass the push buttons and control it programmatically using an external MP.
There are 6 buttons that control e.g. power on/off, fan direction, raise / lower a hatch etc.
I have traced them back to these pins on the microprocessor:
[img]https://i.ibb.co/zPvJR5X/pin-out.png[/img]
Fan Direction:
Button 1 connects 10 -> 32
Button 2 connects 8 -> 32
Hatch up/down
Button 3 connects 10 -> 2
Button 4 connects 8 -> 2
Button 5 connects 10 -> 28 (Sensor on/off)
Button 6 connects 8 -> 28 (Power on/off)
So there is a pattern, either 10 or 8 is connected to 32 or 2 or 28
Supply to the processor is 3V.
If I measure each pin to ground, I get:
10 & 8 are 0.514V
32 & 2 & 28 are 1.04V
What i was hoping was that 10 and 8 were high & low!
Can anyone explain to me how this circuit might work? And how can I bypass the push buttons?
Thank you
