SEROUT2 on PIC18F2620


Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Jan 2011
    Posts
    4

    Default SEROUT2 on PIC18F2620

    I have just spent 2 days trying to get a very simple program to run, to no avail.
    I have modified the sample program BLINK to include a SEROUT2 instruction.
    At first it runs ok.
    If I then put an ARRAYWRITE before it, the program crashes.
    I remove the ARRAYWRITE and the program runs, but there is no serial output. The LED pin toggles ok "around the SEROUT2 instruction", but the serout data pin does not change state.
    The SEROUT2 takes up about 1mS (measured with a 'scope on the LED pin).
    This is about right for 9600 baud. So it looks like the SEROUT2 code is running round its loops but not driving the data pin.

    I am using the internal osc, set to 32MHz.

    I have tried completely re-installing PBP and all files from the original installation disk, in case I had corrupted something. But still the problem persists.

    Any ideas, please?
    Thanks
    Attached Files Attached Files

Members who have read this thread : 0

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