Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HELP WITH PIC18FK20
#1
I have an old copy of DS30 I used it a few years ago with a PIC24H and had no problems, but I am now trying to use it with a PIC18F45K20 but I have not been successful to make it work. I seem to compile correctly with MPLAB 8.92 I can compile, generate a hex file and program the device but when I use the gui loader all I get is time outs.  I did further hardware debugging and found that I am receiving the correct data from the loader on to the PIC RXD pin, however the TXD pin on the PIC is always low and never sends any data out. It appears that the UART is not being setup correctly. I have set the Settings.inc file so the UART1 is selected and the correct TRIS pins are set for TXD, but I cannot get this to work at all.

The PIC is setup as follows:

PIC18F45K20

crystal= 8.388608 MHz

The fuse bits are: 
Oscillator =  HS
NOPROTECT
WDT timer is ON
NOPUT
NOLVP
WDT prescaler = 128
MCLR pin is active
NODEBUG

using UART1 (only one available) at 9600 baud

I have attached my  2 build files that I modified. (settings.inc and ds30loader.asm)

PLEASE...Any help with the above would be greatly appreciated.!!


Attached Files
.txt   settings.txt (Size: 5.86 KB / Downloads: 6)
.txt   ds30loader_asm.txt (Size: 21.83 KB / Downloads: 6)
Reply


Messages In This Thread
HELP WITH PIC18FK20 - by cbarberis - 2015-06-02, 18:20:08
RE: HELP WITH PIC18FK20 - by Mikael Gustavsson - 2015-06-03, 07:39:30
RE: HELP WITH PIC18FK20 - by Mikael Gustavsson - 2015-06-03, 07:40:19
RE: HELP WITH PIC18FK20 - by cbarberis - 2015-06-03, 13:34:43
RE: HELP WITH PIC18FK20 - by cbarberis - 2015-06-03, 15:40:19
RE: HELP WITH PIC18FK20 - by cbarberis - 2015-06-11, 21:45:23
RE: HELP WITH PIC18FK20 - by Mikael Gustavsson - 2015-08-23, 11:31:20

Forum Jump:


Users browsing this thread: 1 Guest(s)