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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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