I'm using a PIC 18F45K80, running @64MHz (16MHz resonator, 4xPLL), CAN bus is set to 500kbs in Flowcode7.
When I try to use the internal CAN it is not working correctly - it seems the transmit speed is about 10% too fast.
Although PICOscope is able to decode it, our CANalyser does not accept the traffic which results in a permanent re-transmit:
Using the same configuration in FC5 works fine (CANalyser accepts, no re-transmit):
As can be seen, the FC7 transmit period (delta between cursor positions) is 201uS and in FC5 it is about 218uS.
One solution here would be to use FC5, but that gives me issues with other parts of the project and it would just make sense to be using the later version.
ETA: The same project also uses the UART @250kbs and that appears to be fine, so it's not a general speed issue, it seems to be CAN specific.
PIC 18F45K80 CAN bus speed issue
An area to discuss 8-bit PIC specific problems and examples
Moderator: Benj
Jump to
- Announcements
- ↳ Announcements
- The Knowledge Exchange
- ↳ Programming Tips & Tricks
- ↳ Freelance Embedded Engineers
- ↳ Article Discussion
- Microcontroller Programming
- ↳ General Programming
- ↳ Flowcode V9
- ↳ Flowcode V8
- ↳ Feature Requests
- ↳ Bug Reports
- ↳ User Components
- ↳ Flowcode V7
- ↳ User Components
- ↳ Feature requests
- ↳ Bug reports
- ↳ Fixed bugs
- ↳ 8-Bit PIC
- ↳ 16-Bit PIC
- ↳ 32-Bit PIC
- ↳ AVR & Arduino
- ↳ 32-Bit ARM
- ↳ Poll Discussion
- ↳ Flowcode V6
- ↳ Flowcode v6 Beta
- ↳ Bug reports
- ↳ Getting Started
- ↳ User Components
- ↳ Feature requests
- ↳ Bug reports
- ↳ Flowcode V5
- ↳ Flowcode V5 Issues
- ↳ Flowcode V5 Suggestions
- ↳ Flowcode V5 Free Edition
- ↳ Flowcode V4
- ↳ Flowcode 4 Bugs
- ↳ Flowcode 4 Suggestions
- ↳ Flowcode V2 & V3
- ↳ General / Misc
- ↳ Components (Comms)
- ↳ Components (Other)
- ↳ Bugs / Application Errors
- ↳ Suggestions
- ↳ BTEC Unit 6
- ↳ C and ASM Programming
- ↳ E-blocks
- ↳ Formula AllCode
- ↳ Formula Flowcode
- ↳ MIAC
- Language Support Forums
- ↳ Deutsch Support-Forum
- ↳ Forums d'aide en français
- ↳ Foro de soporte español
- Other Matrix products
- ↳ Electronics products
- ↳ Matrix Online Courses
- ↳ Other products
- ↳ CoCo
- Hidden