I want to use the ultrasonic device.
At first I set a RTI timer which will interrupt every 100ms, in which I will output high level in GIOA[6] to trigger the ultrasonic device.
And I set a rising edge interrupt in the GIOA[7] to capture the high level echo time of the device.
However, the program will stop at a certain part and be stuck there. It is
dataEntry
b dataEntry
in "HL_sys_intvece.asm"
It really confuses me.
The code attachs.
The configuration in the HALCOGEN is mainly as the picture attached. And the RTIcompare0, GIO high, GIO low interrupt are enabled to be IRQ8666.temp12.c
