Byte_Butcher was working on Capacitive Touch on a 727 with DT_INTS here ...
http://www.picbasic.co.uk/forum/show...1611#post71611
I'm not sure what needs to be changed for the 1939, but it's probably a good start.
DT
Byte_Butcher was working on Capacitive Touch on a 727 with DT_INTS here ...
http://www.picbasic.co.uk/forum/show...1611#post71611
I'm not sure what needs to be changed for the 1939, but it's probably a good start.
DT
Darrel,
My program is working fine with the 16F727 and the 16F1939 as it is. But, I think it will run a lot smoother if I use the DT interrupts.
The amount of time that the chip takes between ISRs is very critical for the CSM (Capacitive Sensing Module) to work properly. So, please excuse my next dumb question. Can I say that I have a much better control of the interrupt intervals using DT interrupts than using ON INTERRUPT? And why?
Robert
"No one is completely worthless. They can always serve as a bad example."
Anonymous
ON INTERRUPT will take care of the interrupt when it has time. A flag is set when the interrupt happens and is executed between instructions. If you have a long PAUSE the interrupt will not be serviced until the PAUSE is finished.
ASM interrupts will take care of the interrupt immediately. Everything the chip is doing at the moment has to be saved then returned to. And the ISR is coded in ASM.
Read the interrupt section in the back of the manual.
DT's instant interrupts will make even a PBP type work like an ASM type.
Dave
Always wear safety glasses while programming.
Bookmarks