PDA

View Full Version : SSPWM interferes with debug out lcd data



retepsnikrep
- 31st January 2011, 07:41
I love the sspwm program but after several fruitless hours trying to get something on my bog standard 16x2 serial lcd using debug which worked on all my previous programs I plugged in my logic analyser. The data on the debug output pin is being corrupted. I assume by the timer interrupts generated by SSPWM. The sspwm output is on a different pin. I could try suspending the sspwm output while I update my lcd, in fact I'll try that just to confirm that is the cause.

Any ideas to resolve the conflict?

EDIT

Suspending SSPWM results in normal lcd operation via debug.

Acetronics2
- 31st January 2011, 08:27
Hi,

The question could be rewritten as is :

WHY does an interrupt interrupts the normal progam flow ??? :rolleyes:

did I answer right ? ;)

Alain

Darrel Taylor
- 31st January 2011, 15:20
If your PIC has a USART, use that with HSEROUT.

Hardware serial data is not affected by interrupts.

retepsnikrep
- 31st January 2011, 15:36
Good idea Darrel

Thanks