Converting from PIC18F452 to PIC18F4550


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2006
    Location
    Toronto
    Posts
    109

    Default Converting from PIC18F452 to PIC18F4550

    I am trying to convert an exsisting project from the PIC18F452 to the new PIC18F4550 but cannot get anything to work. It will compile fine but when I load the new firmware onto the new PIC i get nothing at all. I tried simply just sending fixed characters to the LCD and even that dosn't work.

    I am using the Microchip USB Bootloader, I don't know if this may be part of the problem or not.

    Has anyone experienced simular problem converting to the new USB PICs?

    I am including a scematic of the circuit I am using, I am hoping its just that the ports are not configured correctly for the new PIC.

    Thanks for any help.
    Attached Images Attached Images  

  2. #2
    Join Date
    Jan 2006
    Location
    Toronto
    Posts
    109

    Default Partially Workin Now

    Ok i got the LCD working now, I didn't know that the new PIC required CMCON = 7, the PIC18F452 didn't need this.

    The next part is the HID or CDC interface, both of which still don't work.

    When I compille the PBP code with either of the correct descriptor files the device is recognized by windows correctly ( as either a HID or Virtual COM Port ) but I cannot send anything to the PC from the PIC or the PIC to PC.

    Also if i enable the Harware Interrupts, nothing works again.
    Last edited by PJALM; - 1st January 2006 at 05:56.

  3. #3
    Join Date
    Jan 2006
    Location
    Toronto
    Posts
    109

    Default Everything works now except USB

    I managed to get all the exsisting code working now on the new pick but i had to remove the USB Descriptor files from the folder and remove all USB related code.

    Is there a reason why this pic should behave differently when you enable the USB portion?

  4. #4
    Join Date
    Jan 2006
    Location
    Ottawa, Canada
    Posts
    11

    Default RE: Converting from PIC18F452 to PIC18F4550

    Quote Originally Posted by PJALM
    I managed to get all the exsisting code working now on the new pick but i had to remove the USB Descriptor files from the folder and remove all USB related code.

    Is there a reason why this pic should behave differently when you enable the USB portion?
    Interesting...

    I'm attempting to convert to the 18F4550 as well. Obtained a PICDEM FS USB Demo Board which seems to work very well in demonstrating it's USB capabilities. With respect to using the Microchip USB Bootloader, did you have to make any changes to your PBP code to accomodate? Is DEFINE LOADER_USED 1 all that is still required? Previously, I used the TINY bootloader via serial port & everything worked perfectly with the 18F452. Looking to move up to the USB port now for programming my applications directly into the 18F4550; forget the serial port!

    Any other advice you may want to share to ease this transition would be greatly appreciated.

    Thks,

  5. #5
    Join Date
    Jan 2006
    Location
    Toronto
    Posts
    109

    Default

    Yes it took me a while to figure it out but this is what is needed to use the USB bootloader with PBP.

    DEFINE LOADER_USED 1
    DEFINE RESET_ORG 800h ' For Microchip USB Bootloader
    DEFINE INTERRUPT_ORG 808h ' For Microchip USB Bootloader

  6. #6
    Join Date
    Mar 2006
    Location
    Gothenburgh, Sweden
    Posts
    18

    Default

    Quote Originally Posted by PJALM
    Yes it took me a while to figure it out but this is what is needed to use the USB bootloader with PBP.

    DEFINE LOADER_USED 1
    DEFINE RESET_ORG 800h ' For Microchip USB Bootloader
    DEFINE INTERRUPT_ORG 808h ' For Microchip USB Bootloader
    Thank you very much for this information!!!

    Stefan.

Similar Threads

  1. Replies: 18
    Last Post: - 4th July 2017, 14:26
  2. pic18f4550 & pic16f84a serially ?
    By amenoera in forum Serial
    Replies: 0
    Last Post: - 1st March 2008, 10:51
  3. Serial communication with pic18f452
    By tamersoss in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th December 2007, 21:27
  4. communicating pic18f452 with pic16f877a
    By tamersoss in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th July 2007, 19:54
  5. pic18f4550 & VB6 ... help meee!!
    By lentz in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 8th March 2006, 17:27

Members who have read this thread : 1

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