|
|
| Author |
Message |
pdubinsky
Joined: 25 Nov 2005
Posts: 66
Location: South Carolina
|
|
Posted: 08 March 2006, 21:40 PM Post subject: PulseIn effect on RTC |
|
|
Do I read the manual correctly? Unlike the BX-24, when using the Pulsein command the ZX-24 compensates (or corrects) the RTC for pulses lost during the Pulsein measurement. I'm just looking for comfirmation from the gurus before I clean up a bunch of real ugly BX code. (The Delete key will be busy tonight<gg>).
Thx,
Paul |
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR
|
|
Posted: 09 March 2006, 1:54 AM Post subject: |
|
|
Your interpretation is correct. The VM keeps track of the "missed ticks" and adds them to the RTC when the PulseIn() process is done. I believe that nearly all other System Library routines (that disable interrupts) do likewise.
Instead of deleting the code willy-nilly you could effectively remove it using #if 0/#endif. If all goes well you can remove it all later. |
|
| Back to top |
|
 |
|