DSPIC33EP32MC502 CANBUS Problem

An area to discuss 16-bit PIC specific problems and examples

Moderator: Benj

User avatar
celebriums
Posts: 106
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 61 times
Been thanked: 28 times
Contact:

DSPIC33EP32MC502 CANBUS Problem

Postby celebriums » Fri Feb 23, 2018 2:04 pm

Hello to everyone
Could you help me with the following error, please?



I set the following values ​​in the DSPIC33 processor for CANBUS communication.

Extended ID: 419304000
Buffer:0
Channel: Internal1
BUS_RATE:250
SAMPLE: %50
SJW:4
EXID: STANDART & EXTENDED
Data0 = 0b00001000
Data1 = 0b00001000
Data2 = 0b00001000
Data3 = 0b00001000
Data4 = 0b00001000
Data5 = 0b00001000
Data6 = 0b00001000
Data7 = 0b00001000

With MICROCHIP CANBUS ANALYZER, the values ​​I see on the circuit output are different. :?

Extended ID: 419315520x
Buffer:0

Data0 = 0x08
Data1 = 0x00
Data2 = 0xFD
Data3 = 0x18
Data4 = 0x08
Data5 = 0x18
Data6 = 0x08
Data7 = 0x00

Flowcode 7.3.0.5
Attachments
EMD_CANBUS.fcfx
(128.1 KiB) Downloaded 26 times
Last edited by celebriums on Thu Mar 01, 2018 3:07 pm, edited 1 time in total.

User avatar
celebriums
Posts: 106
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 61 times
Been thanked: 28 times
Contact:

Re: DSPIC33EP32MC504 CANBUS Problem

Postby celebriums » Sun Feb 25, 2018 9:47 am

Hello

I set the following values ​​in the DSPIC33 processor for CANBUS communication.
When Data5 = 0, Data6 = 0 Data7 = 0, the ID number is correct (ID: 12FE1240 DLC = 8 ).
Data5 = 0xFE, Data6 = 0x11 When Data7 = 0x01, the ID number is incorrect (ID: 12FE1346 DLC = 29).

What can be the problem?


Extended ID: 0x12FE1240
Buffer:0
Channel: Internal1
BUS_RATE:250
SAMPLE: %50
SJW:4
EXID: STANDART & EXTENDED
Data0 = 0x32
Data1 = 0x30
Data2 = 0x99
Data3 = 0xA0
Data4 = 0xAF
Data5 = 0
Data6 = 0
Data7 = 0
Attachments
EMD_CANBUS_bug.fcfx
(129.4 KiB) Downloaded 32 times