as long as the pattern is consistent over the entire range then it should work
pic18 arrays are not bank limited so as long as you use array indexing methods the banking should no be an issue
as long as the pattern is consistent over the entire range then it should work
pic18 arrays are not bank limited so as long as you use array indexing methods the banking should no be an issue
Warning I'm not a teacher
Thanks Richard, that was what I was hoping to hear! I'll get back to work on the CAN program now!
Paul
Be interested to see what you were working on.
I've done quite a bit on CAN with PBP.
I have been working on a CAN interface file where you pass a few initial set up parameters, speed etc. and it selects and sets the appropriate registers. When you want to send a frame, you load a buffer and pass it off to the routine which finds the first available transmit buffer and sends it. I have the DT interrupts so I can enable the ones for the CAN if needed, although in my application, I don't. I only handle mode 1 and mode 2 of the CAN bus. What have you been doing with CAN?
-Paul
Paul. Can we see that?
I have used pics with the internal CAN module and a can line driver and ones without but with an external microchip mini CAN board and line driver.
I built a Honda CR-Z/Insight Hybrid car MITM control device.
It intercepts and modifies motor control signals allowing the driver to manually control the IMA motor.
It sits in the IMACAN line relaying thousands of OEM messages back and forth and also listens on a separate FCAN line to more messages and control commands.
It uses a 18F26K80 at 64mhz and 3 el-cheapo aliexpress $5 SPI CAN boards.
My code is attached.
IMAC&C is the IMA control MITM device. This uses the cheap CAN boards.
OBDIIC&C is an FCAN device to talk to the car like an OBDII diagnostic tool. This uses the internal pic CAN module.
Last edited by retepsnikrep; - 4th May 2025 at 05:33.
Interface board with SPI controlled MCP 2515 and line driver to use with non CAN enabled PIC's
https://www.aliexpress.com/item/1005006850683509.html
Line driver to use with CAN enabled PIC's.
https://www.aliexpress.com/item/1005006209071522.html
You get the idea.. Cheap as chips..
My YT channel has a lot of PIC CAN tinkering stuff. @retepsnikrep
On Insightcentral.net and the CRZforum.com is tons of stuff from over the years.
Last edited by retepsnikrep; - 5th May 2025 at 08:36.
Earlier CAN MITM prototypes.
One using 16F1825 at 32mhz and one using 18F26K80 at 64mhz.
It was possible to drive one of those serial data to RCA video gadgets as well.
This made a nice little very cheap dash mounted text display for info and debugging.
![]()
Bookmarks