CAN-BUS at wit's end and job on the line. PLEASE HELP!


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    969

    Default

    I'd like to help, but, I have absolutely no experience with CANbus.

    I've looked over your code, and it seems you are doing the initializations over and over again in the MainLoop. Maybe you need to? I don't know. I feel the mainloop tag should ideally be at this line
    ; SAVE PORTD DATA: READ INPUTS ON PORT D AND STORE VALUES INTO MYDATABYTE0
    Perhaps that could be the issue.

    Another point is to calculate the baud rate by hand for your particular setup to be sure you got everything right. Once the hand calculation checks out with the Microchip tool, you could use the tool blindly; but, for now, you need to be sure. No point in guessing if it is right or wrong.

    Hope this helps

  2. #2

    Default Maybe timings?

    Thanks for your suggestion. I believe I have tried without looping to the config part of the code and it didn't seem to help. I beleive my issue may be one of timing. I've looked at the formulas but I get lost so quickly. It's not that I have no math skills, I just havent worked with any of these values before.

    I'm going to hook up the scope and put both waveforms over one another from the working dev kit and then what my unit is outputting. If the rise and fall times do not change state on the same vertical lines, does that mean my timing is off in one system?

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