SSPWM interferes with debug out lcd data


Closed Thread
Results 1 to 4 of 4
  1. #1

    Default SSPWM interferes with debug out lcd data

    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.
    Last edited by retepsnikrep; - 31st January 2011 at 09:08.

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,611


    Did you find this post helpful? Yes | No

    Default

    Hi,

    The question could be rewritten as is :

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

    did I answer right ?

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    If your PIC has a USART, use that with HSEROUT.

    Hardware serial data is not affected by interrupts.
    DT

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Good idea Darrel

    Thanks

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts