debugged demo for SIMHC12 port