Menu

Using on PIC 18F4550 with 20MHz Crystal

2014-10-29
2014-10-29
  • Leandro Israel Pinto

    Hi,

    I'm trying to use Tiny Bootloader with PIC18F4550, but doesn't know how to change the code 'TinyB18F2455-2550-4455-4550.asm' to works with a 20MHz Crystal.

    I'm using the hardware with FT232RL USB-Serial and a 20MHz Crystal on PIC.

    First I've created a project with MPLAB(MPASM), then build the original code. Build ok, but don't works, I think the problem is the 'xtal' at line 8 of the code.
    Then I tried xtal EQU 20000000, 48000000, 96000000 and 120000000 with no success.

    What is the right code change for my board?

    Regards,
    Leandro.

     
  • Leandro Israel Pinto

    I found a way that works:

    xtal EQU 48000000
    ;----- CONFIG1L Options -----
    CONFIG PLLDIV = 5, CPUDIV = OSC1_PLL2, USBDIV = 1

    Now is working on PIC18F4550 with 20MHz Crystal

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.