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?
Bookmarks