If you're using PBP ON INTERRUPT then nothing happens because it always waits for the current command to "complete" before servicing the interrupt.
If you're using "real" interrupts (in ASM or using DT-INTS for example) then it's different:
If an interrupt occurs in the middle of a...
...PULSOUT command the width of the generated pulse will be extended by the amount of time that the interrupt takes.
...PULSIN command the measured width will be off by (up to) the amount of time that the interrupt takes.
...PWM command the PWM "signal" will just stop being generated for the duration of the interrupt. (Not applicable for HPWM of course).
...ADCIN command generally nothing happens. There's usually no harm in sampling the signal longer than needed and once sampled the actual conversion is done without software.
Generally speaking whatever the PIC is doing is put on hold for the duration of the interrupt + context save/restore. This means that ALL commands using software timing will be affected.
/Henrik.




Bookmarks