I'm currently trying to figure out how to setup CAN in C using MPLAB and the student C18 compiler. I would greatly appreciate some help..well..lots of help I guess.
After reading about the protocol I'm still baffled about what to do with filters and masks for receiving data. I'm trying to learn about the protocol by cracking how to write a software code which uses it. I'm not bothered with specifics about what's sent or received or even specific bus speeds but I do need to use the loop-back mode. I'm using the PIC18f2680 with the MCP2551 chip.
I've found a program called Maestro which can generate code for you once you give it the requirements but I would prefer to use a library that didn't generate code for me but instead explained what each function did so I could correctly incorporate them between the rest of my software.
I've been using a book to learn about CAN but it uses the mikroC CAN functions. Is there something similar yet doesn't use Maestro? I thought the AN930 was the solution but once again it requires Maestro.
Is Maestro the best option for me?
What could I set the frames and masks to be in configuration?
How would I use frames/masks for receiving data?
Thank you for your time,
Wilko
After reading about the protocol I'm still baffled about what to do with filters and masks for receiving data. I'm trying to learn about the protocol by cracking how to write a software code which uses it. I'm not bothered with specifics about what's sent or received or even specific bus speeds but I do need to use the loop-back mode. I'm using the PIC18f2680 with the MCP2551 chip.
I've found a program called Maestro which can generate code for you once you give it the requirements but I would prefer to use a library that didn't generate code for me but instead explained what each function did so I could correctly incorporate them between the rest of my software.
I've been using a book to learn about CAN but it uses the mikroC CAN functions. Is there something similar yet doesn't use Maestro? I thought the AN930 was the solution but once again it requires Maestro.
Is Maestro the best option for me?
What could I set the frames and masks to be in configuration?
How would I use frames/masks for receiving data?
Thank you for your time,
Wilko