SPI & CAN interface
Posted: Fri Sep 02, 2011 4:37 pm
Hi,
Am having trouble with Flowcode V4, using CAN via SPI to MCP2515/MCP2551. I have confirmed the hardware is connected properly by using a known working PIC. This old chip was programmed with Flowcode v2 and I have not got the exact fcf file for it. I have written a new fcf program in V4 using very similar code structure.
I have looked at past postings and can confirm the PIC is sticking at the CAN INIT routine because the CS pin is not being driven. I tried to drive a different pin on another port low before and after each CAN routine however this has not worked either.
I understand in CAN properties you can change the CS & INT pin however this does not seem to have any effect.
I am using PIC16F88 IC’s, I am programming from HEX to MATLAB v8.50 to a PICSTART PLUS.
So my conclusion is that the CAN macros have changed between and early flowcodeV2 compared to FlowcodeV4.
Any and all help would be much appreciated
Regards
Rob
Am having trouble with Flowcode V4, using CAN via SPI to MCP2515/MCP2551. I have confirmed the hardware is connected properly by using a known working PIC. This old chip was programmed with Flowcode v2 and I have not got the exact fcf file for it. I have written a new fcf program in V4 using very similar code structure.
I have looked at past postings and can confirm the PIC is sticking at the CAN INIT routine because the CS pin is not being driven. I tried to drive a different pin on another port low before and after each CAN routine however this has not worked either.
I understand in CAN properties you can change the CS & INT pin however this does not seem to have any effect.
I am using PIC16F88 IC’s, I am programming from HEX to MATLAB v8.50 to a PICSTART PLUS.
So my conclusion is that the CAN macros have changed between and early flowcodeV2 compared to FlowcodeV4.
Any and all help would be much appreciated
Regards
Rob