PIC18f45k22 - Printable Version +- ds30 Loader free edition forums (https://picbootloader.com/forum) +-- Forum: Support (https://picbootloader.com/forum/forumdisplay.php?fid=3) +--- Forum: 8-bit firmwares (https://picbootloader.com/forum/forumdisplay.php?fid=7) +--- Thread: PIC18f45k22 (/showthread.php?tid=2345) |
PIC18f45k22 - richcj10 - 2015-03-05 Hello, I am having a issue with uP reconition. (ds30 GUI loader) Code: Device reset completed I have allready looked here: [broken link] I am using UART1. 1 Mhz internal clock. With the discarded It is telling me that it is a config issue. (but close) Code is attached. Any help you can provide would be extreamly helpfull. I am not a ASM guy. So, this is new teritory.... RE: PIC18f45k22 - Mikael Gustavsson - 2015-03-06 Hi, You say 1MHz but the code comment says 16MHz. Which is it? RE: PIC18f45k22 - richcj10 - 2015-03-11 (2015-03-06, 14:43:07)Mikael Gustavsson Wrote: Hi, I had the 16 Mhz stuff comented out. I did how ever change it to 16 Mhz Code: ; Set internal oscillator to 16MHz Code: ;------------------------------------------------------------------------------ I also set the GPIO to a known good setting. Code: movlw 0x00 RE: PIC18f45k22 - richcj10 - 2015-03-13 I am still having issues with the baud rate / UART. Any ideas? Info above ^ RE: PIC18f45k22 - Mikael Gustavsson - 2015-03-15 What is the problem now? Did you measure the actual baud rate on PIC tx? RE: PIC18f45k22 - richcj10 - 2015-03-15 (2015-03-15, 19:29:36)Mikael Gustavsson Wrote: What is the problem now? Did you measure the actual baud rate on PIC tx? it is still giving me the same issue as i had before: Code: Device reset completed How would I mesure the baud rate? It sems nothing is coming out of the pic now. Thnks for your help! RE: PIC18f45k22 - Mikael Gustavsson - 2015-04-05 Post the current code. RE: PIC18f45k22 - richcj10 - 2015-04-18 (2015-04-05, 21:04:06)Mikael Gustavsson Wrote: Post the current code. RE: PIC18f45k22 - eur - 2017-10-28 I managed to get the PIC18F46K22 working. The baudrate division needs to be adapted and the output directon of the SEND pin needs to be set. Some code snippets: user_code.inc: bsf TRISC, 7 ; make RX input (default) bcf TRISC, 6 ; make TX output ds30loader.asm: #define UBRG (((OSCF / BAUDRATE) / 64) - 1) If you don't use BRG16, that is. RE: PIC18f45k22 - Mikael Gustavsson - 2017-10-31 The brg calculation is correct. If you need to change it you have either disabled BRGH or set the OSCF define incorrectly. |