Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIC24FJ64GA104 Issue
#1
Sad 
Hi all,
I'm using ds30 with different PIC 18F and it works very good!!
Now I'm trying to use it with PIC24FJ64GA104 but I'm not able to communicate...it seems there is no response from pic so GUI goes in timeout.
I'm using UART1 configured as:

RB14 (RP14) -> U1_TX
RB15 (RP15) -> U1_RX

External 8MHz crystal connected to pin 30-31.

I already configured UART1 mapping anche disabled the ADC converter in user_code.inc

;make UART1 pin Digital
bset AD1PCFG, #PCFG9
bset AD1PCFG, #PCFG10

; map pin (15 = 1111) to uart1rx
bset RPINR18, #U1RXR0 ;xxx
bset RPINR18, #U1RXR1 ;xxx
bset RPINR18, #U1RXR2 ;xxx
bset RPINR18, #U1RXR3 ;xxx
bclr RPINR18, #U1RXR4 ;xxx

; map uart1tx (3) to pin 14
bset RPOR7, #RP14R0 ;xxx
bset RPOR7, #RP14R1 ;xxx
bclr RPOR7, #RP14R2 ;xxx
bclr RPOR7, #RP14R3 ;xxx
bclr RPOR7, #RP14R4 ;xxx


I already changed the following line in setting.inc file:

; Device
.equ __24FJ64GA104, 1

; User preferences
.equiv FCY, 8000000

; UART settings
.equiv USE_UART1, 1


....I really don't understand why it doesn't work!!

In attached you can find the bootloader Mplab 8 project.
Thanks in advance to everybody!!

Regards,
Nicola


Attached Files
.zip   Bootloader 24FJ64GA104.zip (Size: 64.66 KB / Downloads: 20)
Reply


Messages In This Thread
PIC24FJ64GA104 Issue - by cinpezzo - 2015-12-13, 23:07:06
RE: PIC24FJ64GA104 Issue - by Mikael Gustavsson - 2015-12-18, 20:51:06
RE: PIC24FJ64GA104 Issue - by cinpezzo - 2015-12-19, 14:16:19
RE: PIC24FJ64GA104 Issue - by Mikael Gustavsson - 2015-12-21, 22:46:24
RE: PIC24FJ64GA104 Issue - by cinpezzo - 2015-12-22, 11:07:01
RE: PIC24FJ64GA104 Issue - by cinpezzo - 2015-12-22, 16:55:35
RE: PIC24FJ64GA104 Issue - by Mikael Gustavsson - 2015-12-23, 17:16:33

Forum Jump:


Users browsing this thread: 1 Guest(s)