+ Reply to Thread
Page 4 of 4 FirstFirst ... 234
Results 31 to 37 of 37

Thread: Any success stories with CAN bus on PDS?

  1. #31
    Licensed User pic-ignorant's Avatar
    Join Date
    Oct 2007
    Location
    Sunny Kent
    Posts
    2,122


    Default Re: Any success stories with CAN bus on PDS?

    I just looked in the datasheet, I think youre right Bob. I've only been doing this for 2 days, so lots to learn still

    Hi, its great to see you visiting our forum. Why not try Proton Compiler for FREE?

    Download the FREE version of Proton Compiler, Its called Amicus18 and its available from HERE

    Already using proton Compiler??? Get rid of these pesky messages... get LICENSED USER STATUS




  2. If you're a Licensed user of PROTON DEVELOPMENT SUITE, apply for Licensed User Status to remove these pesky messages
     and get access to additional forum areas, Beta test downloads and more!

  3. #32


    Default Re: Any success stories with CAN bus on PDS?

    Withthe internaloscillator.Or is ita badstability.ForIam poorin English.sorry

  4. #33
    Moderator RGV250's Avatar
    Join Date
    Aug 2005
    Location
    Kent.
    Posts
    1,711


    Default Re: Any success stories with CAN bus on PDS?

    Hi,
    Withthe internaloscillator.Or is ita badstability.ForIam poorin English.sorry
    You could try, I never have as I do not think it will be stable, I use 40Mhz osc modules.

    Regards,
    Bob

  5. #34
    Licensed User pic-ignorant's Avatar
    Join Date
    Oct 2007
    Location
    Sunny Kent
    Posts
    2,122


    Default Re: Any success stories with CAN bus on PDS?

    Hi Bob,
    I've used your code above with a 18F4580, and it works like a dream. I tried to port it over to 18F46K80, with no joy. I get an led toggling in the main code, but not in the interrupt. If I understand it correctly, I should get an interrupt from the timer overflow, even if the CAN isn't working?

    If PIR1.0 = 0 Then GoTo CAN_MODULE_INTERRUPT 'TIMER1 INTERRUPT FLAG
    Clear T1CON.0 'Stop timer
    TIMED_TRANSMIT_ROUTINE: 'If it wasn't the CAN module it must have been the timer Interrupt
    Toggle LATC.6 'Flash RED LED just to let me know it is doing something

  6. #35
    Licensed User pic-ignorant's Avatar
    Join Date
    Oct 2007
    Location
    Sunny Kent
    Posts
    2,122


    Default Re: Any success stories with CAN bus on PDS?

    I've found some of my problem. Most of the 18F46/66K80 CAN interrupt flags are in PIR5. On the 18F458/4580 they're in PIR3 (as Bob's example above)

  7. #36
    Licensed User pic-ignorant's Avatar
    Join Date
    Oct 2007
    Location
    Sunny Kent
    Posts
    2,122


    Default Re: Any success stories with CAN bus on PDS?

    Also the ERRIE and RXB0IE are in PIE5 on the 18F46/66K80.

  8. #37
    Moderator RGV250's Avatar
    Join Date
    Aug 2005
    Location
    Kent.
    Posts
    1,711


    Default Re: Any success stories with CAN bus on PDS?

    Hi John,
    Glad you have it sorted, I cannot help much at the moment as I am in a foreign country (Scarborough), at least I think I am as I cannot understand the locals.
    Can't be that bad though, can only get WIFI in the bar.

    Bob

+ Reply to Thread
Page 4 of 4 FirstFirst ... 234

Similar Threads

  1. success rate
    By rverm in forum The Lounge
    Replies: 18
    Last Post: 18th February 2009, 11:53

Members who have read this thread since 18th April 2012, 21:13 : 6

Actions :  (Set Date)  (Clear Date)

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