Hi,
Im having problems getting CAN to work with FC7. Ive reduced things down to a very basic circuit using a PIC16F1937 on a EB006 (with Ghost) and an EB CAN board connected to port C. Im using an EB led board connected to port A . See attached programme.
The circuit simulates fine. But the hardware doesn't, the LED flashes as it should (indicating that the main loop / processor is running) but the CAN board does not transmit and the CAN LEDs don't flash, Im using a CAN analyser to check the output but it reports no traffic. The CAN LEDs do sometimes flash or stay on for random periods that have no apparent relation to the code. Am I doing / not doing something stupid? I strongly suspect the CAN timing (frequency) is at fault but have no real idea of the problem at the moment.
Thanks in advance for any help!
Regards,
Chris
Problems with CAN FC7
Moderator: Benj
-
- Posts: 186
- Joined: Wed Jan 23, 2013 3:43 pm
- Has thanked: 2 times
- Been thanked: 21 times
- Contact:
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Problems with CAN FC7
Hi Chris,
I just tried your program with jumper settings A and 1 and the LED was flashing a bit randomly for me too. I think changed the CS pin property to pin C6 and it all started working as expected. The INT signal is on C0 with Jumper settings A and 1 so maybe just a simple mistake.
I just tried your program with jumper settings A and 1 and the LED was flashing a bit randomly for me too. I think changed the CS pin property to pin C6 and it all started working as expected. The INT signal is on C0 with Jumper settings A and 1 so maybe just a simple mistake.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel