|
Hi
I've tried to use the overflow flag to measure distances greater than 2.7m with
the polaroid sonar. I've added the following line to the sonar_init():
bit_clear(0x1024,0x80); /* clear TOI, no Timer Overflow Interrupt */
I think the overflow flag is set in to short periods. So I want to use the
original code again. But my sonar makes only one click and the the HB has hang
up. If I reset the Board, the message message "Interactive C ...." is displayed
not completly and the board has hang up again. If I wait for longer, this has
gone and I managed to get one click again.
I've tried bit_set(0x1024,0x80), but with no success.
How can I completly reset all register to the original state again? I've
reloaded the pcode, but with no success.
Thanks
Martin
|
|
1 Message in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|