pic18f4585 and CAN


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Posts
    9

    Default pic18f4585 and CAN

    HELP,


    I can not compile my program with CAN registers for pic18f4585 chip and PBP PRO 2.47, BUT for pic18f4685,458,4580 all is OK.
    pic18f4585 is soldered to my pcb and i can not replace it.

    Is this pbp2.47 error?

    Can I compile my program for pic18f4685 chip and program hex file to pic18f4585 chip?

    Thanks.

  2. #2
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Question

    What is the error-message ?
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

  3. #3
    Join Date
    Feb 2006
    Posts
    9


    Did you find this post helpful? Yes | No

    Default

    Errors (bad expression)
    during compilation appear when I used registers from CAN module: RXB0D0,RXB0D1,
    RXB0D2,...,RXB0D7,RXB1D0-RXB1D7,RXB1CON,RXB1CON, - all registers from CAN module.

    When I compiled code for pic18f4580,4685 all is OK.

    I used pbp pro 2.47,mpasm v.5.11 from mplab 7.60.

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Open 18F4585.BAS file in your PBP directory.

    Add include "PIC18CAN.BAS" just below include "PIC18EXT.BAS".

    Should look like this;

    include "PIC18EXT.BAS"
    include "PIC18CAN.BAS"

    Save the file. You should be good to go.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  5. #5
    Join Date
    Feb 2006
    Posts
    9


    Did you find this post helpful? Yes | No

    Smile

    Thanks, Bruce

    all OK!!!!!!!!!!!

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts