• AVR Freaks

Hot!SOLVED extended CAN frames PIC18f26K83

Author
FR3D
New Member
  • Total Posts : 17
  • Reward points : 0
  • Joined: 2018/08/29 04:19:00
  • Location: 0
  • Status: offline
2019/06/24 01:27:57 (permalink)
0

SOLVED extended CAN frames PIC18f26K83

Hallo,
 
I'm using CAN - Mode 2 - FIFO ....
 
I'm able to send and receive standard CAN frames.
I'm able to send extended frames, but I cannot receive extended frames.
 
Is there a CAN Sample using extendet CAN frames ? ( FIFO Interrrupt - Mode2 ? )
 
I think I'm missing some adjustments within the Code Configurator ?
 
best regards FR3D
post edited by FR3D - 2019/06/25 00:24:24
#1

3 Replies Related Threads

    pcbbc
    Super Member
    • Total Posts : 1388
    • Reward points : 0
    • Joined: 2014/03/27 07:04:41
    • Location: 0
    • Status: offline
    Re: extended CAN frames PIC18f26K83 2019/06/24 05:42:07 (permalink)
    +1 (1)
    FR3DI think I'm missing some adjustments within the Code Configurator ?

    Yep, you're missing something.  I can see it right there in the sample code you posted... /s
    #2
    FR3D
    New Member
    • Total Posts : 17
    • Reward points : 0
    • Joined: 2018/08/29 04:19:00
    • Location: 0
    • Status: offline
    Re: extended CAN frames PIC18f26K83 2019/06/24 05:57:17 (permalink)
    0
    Hallo pcbbc
     
    yes you are right ... because I was asking for sample code only ...
     
    I need the code for pic18f26k83 - extended CAN ( Mode 2 would be great )
     
    "Is there a CAN Sample using extendet CAN frames ? ( FIFO Interrrupt - Mode2 ? )"
     
    best regards
    #3
    FR3D
    New Member
    • Total Posts : 17
    • Reward points : 0
    • Joined: 2018/08/29 04:19:00
    • Location: 0
    • Status: offline
    Re: extended CAN frames PIC18f26K83 2019/06/25 00:22:50 (permalink)
    0
    SOLVED !
     
    I had to adjust these on my own ...
     
    eg ID 0x250 with Standard CAN and Extended CAN
     
        RXF0EIDH = 0x00;  //0x250 STDCAN
        RXF0EIDL = 0x00;
        RXF0SIDH = 0x4A;
        RXF0SIDL = 0x00;
     
        RXF0EIDH = 0x02; // 0x250 EXTCAN
        RXF0EIDL = 0x50;
        RXF0SIDH = 0x00;
        RXF0SIDL = 0x08;
     
    regards
    #4
    Jump to:
    © 2019 APG vNext Commercial Version 4.5