SPWM and DEBUG


Closed Thread
Results 1 to 3 of 3

Thread: SPWM and DEBUG

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default

    Hi,
    DEBUG uses software delays to bitbang the serial stream out. When using interrupts they will disturb the timing of the bitbanged serial stream. It's not specific to the SPWM routines you're using. Either use a PIC with an USART and use HSEROUT instead of DEBUG or you need to temporarily disable the interrupts while sending your data with DEBUG.

    /Henrik.

  2. #2
    Join Date
    Oct 2005
    Posts
    35


    Did you find this post helpful? Yes | No

    Smile Hserout

    Hello,

    I added these lines and the display is alive and well.

    Thanks




    Define HSER_TXSTA 20h ' OUTPUT B2 PIN 8 16f628a
    Define HSER_BAUD 9600


    HSEROUT[ $0D ] 'CR
    HSEROUT[ dec2 loopcount]
    Thanks,
    Homerclese

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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