SPI and 18F4550


Results 1 to 11 of 11

Thread: SPI and 18F4550

Threaded View

  1. #10
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425


    Did you find this post helpful? Yes | No

    Default Re: SPI and 18F4550

    I'm getting closer. I couldn't figure out what was going on so I pulled out my scope and it seems pretty clear......at least for this step. This is a picture of the scope with a known good program (I'm using the same board for the working program and my program so I know the hardware is good). Yellow is the data and blue is the CS line.

    Name:  Known working CAN data.jpg
Views: 1589
Size:  528.6 KB

    Now look at the scope with my program:

    Name:  My code transmitting CAN data.jpg
Views: 1566
Size:  505.4 KB

    So my signal looks like it's inverted. They speak about this in the BAUDCON, TXSTA and RXSTA settings but I tried adjusting them and it didn't help. Any ideas?

    EDIT - It was under the SSPSTAT.6. The signal is correct now but still no CAN data. At least I'm getting closer......
    Last edited by Christopher4187; - 10th July 2012 at 17:43.

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