Programming HT46F47 TPS via Raspberry Pi / Python
Demo video
Simulator for Windows
I have written a simulator for Windows which you can download here.
Source code
ht46f47_assembly.txt
ht46f47_program1.py
ht46f47_factoryreset.py
ht46f47_reset.py
Circuit diagram