We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,
My name is Leo, I work with a uController LPC2368 and I'm in a CAN bus project.
I recently bought on the Internet a CAN J1939 Simulator(Dafulai Electronics), but I can't send a message to the simulator successfully. I configured the uC to generate an interrupt every time that it sends or receives a message, but this interrupt is NEVER generated.
By the way, I'm able to make a communication in self test mode.
Reading about the CAN bus, I realize that it uses CSMA/CD technique. My doubt is, does the uController do by it self the verification on the bus before the transmission, or should I do this by software?
Waiting for a help! Thank you!
Thank you for your answer.
Do you have any idea why the interrupt is not generated when I send a message? When I use self test mode everything works fine, I transmit, receive and the interruption works ok..
And I cant even receive a message, I've programmed to just listen the bus, and I get various different errors in ERRBIT. Each time I got a different one.
But the bits 0 to 15 of CAN1ICR are every time = 0 !! I never got an transmit or receive interrupt!