hintsetup and the 20X2

com64

New Member
The 20X2 has two hardware interupts B0 and B1. If you select B1 with the hintsetup and the setintflags command then the 20X2 respond at B1 and B2. How is that possible?
(If you select B0 then everything is alright and interrupt is only trigger by B0)

By the way the sleep 0 command for the 20X2 puts the microcontroller not into permanent sleep in the simulator.

Code:
main:
flag2=0
hintsetup %01000100
setintflags %00000100, %00000100
sleep 10
goto main

interrupt:
high c.1
pause 2000
return
 

Technical

Technical Support
Staff member
You are correct, the 20X2 on-screen simulation accepts either pin B.1 or B.2 as hint2 when it should only be pin B.1 that can be used. We will correct this and 'sleep 0' in the next release. The real chips work fine.
 
Top