Hi there,
I have been trying to get this to work for ages but without any result ...
I'm trying to use the tiny bootloader, i've searched on the forum, found some information
but was'nt able to use it ..
The problem: TinyBld keeps telling
"Connected to \\.\COM1 at 19200
Searching for PIC ...Not found,
ERROR!"
It's a 18F2420, i used the hex file included tinybld18F2420_int8MHz_19200.HEX
but that does'nt work. I'm sure the max232 works because when i use the code below
i receive "test" in a terminal program.
Does somebody have a working compiled hex for a 18F2420 with internal 8mhz osc lying around ?
Anyone ?
Best Regards,Code:define OSC 8 OSCCON = %01111110 DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive DEFINE HSER_TXSTA 20h ' Enable transmit, BRGH = 0 DEFINE HSER_CLROERR 1 ' Clear overflow automatically DEFINE HSER_SPBRG 51 ' 9600 Baud @ 8MHz, 0,16% SPBRGH = 0 BAUDCON.3 = 1 ' Enable 16 bit baudrate generator ADCON0 = 0 ADCON1 = %00001111 TRISA = %00000000 TRISC = %11000000 START: hserout ["test"] pause 1000 goto start progend: goto progend
UB





Bookmarks