Thanks! Wow, PBP is really powerful!
I assume that as long as the voltage coming out of the reed switch is < 5V, it should be OK to connect the reed switch directly with any pin on the PIC.
If I use the command
COUNT PORTB.1,1000,w1
I will be counting the number of pulses on pin1 in 1000 milliseconds.
During the period of 1000 milliseconds, does the program 'pause' or does it continue to execute in the background, in other words, will any ON INTERRUPT commands execute during the 1000 milliseconds?
The manual says "With a 20MHz oscillator it checks the pin state every 4us, thus I assume the program continues to execute during the 1000 milliseconds period of the COUNT command, or am I wrong?
Last edited by passion1; - 8th June 2007 at 22:56.
Bookmarks