Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIC24HJ16GP304 loader issue [solved]
#8
Thanks for that but it did not work to take a guess. Had to follow you advice and look in the datasheet :-)
I enclose the correct PPS code here in order not to lead anyone else on the wrong track.
Code:
                ; Receive, map pin (14 = 1110) to uart ;(***Customized for RP22***)
                bclr    RPINR18, #U1RXR0        ;xxx
                bset    RPINR18, #U1RXR1        ;xxx
                bset    RPINR18, #U1RXR2        ;xxx
                bclr    RPINR18, #U1RXR3        ;xxx
                bset    RPINR18, #U1RXR4        ;xxx
                        
                ; Transmit, map uart to pin ;(***Customized for RP7***)
                bset    RPOR3, #RP7R0            ;xxx
                bset    RPOR3, #RP7R1            ;xxx
                bclr    RPOR3, #RP7R2            ;xxx
                bclr    RPOR3, #RP7R3            ;xxx
                bclr    RPOR3, #RP7R4            ;xxx
At this point i can see the loader responding with device name and loader version.
However when actually using "write" it stops after a few characters. I tried 9600, 19200 and extending the TX enable delay.
Enclosed is the output from the GUI.

When I probe(screendump enclosed) the output pins for TX(yellow) and TXEN(blue) i get some funny results. It looks like TXEN goes low long before the transmit is finished. When examining your code i cannot see how that could happen.

Do you recognize the behavior above?

Thanks for your patience.


Attached Files Thumbnail(s)
       
Reply


Messages In This Thread
PIC24HJ16GP304 loader issue [solved] - by Rigor69 - 2012-09-06, 14:59:01
RE: PIC24HJ16GP304 loader issue - by Rigor69 - 2012-09-09, 16:04:40
RE: PIC24HJ16GP304 loader issue - by Rigor69 - 2012-09-10, 17:15:28
RE: PIC24HJ16GP304 loader issue - by Rigor69 - 2012-09-11, 13:34:43
RE: PIC24HJ16GP304 loader issue - by Rigor69 - 2012-09-12, 08:48:29
RE: PIC24HJ16GP304 loader issue - by Rigor69 - 2012-09-12, 13:31:24
RE: PIC24HJ16GP304 loader issue [solved] - by dinotronics - 2014-05-07, 11:20:54

Forum Jump:


Users browsing this thread: 1 Guest(s)