2014-06-07, 20:52:50
I cannot spot any problem with your code. I assume that the uart is working in your application. Try these changes:
1.
-change baud rate to 9600
2.
-enable brg16
3.
-change baud rate to 9600
-enable auto baud rate detectio in both fw and gui
4. Check oscillator frequency. Test code is available in ds30loader.s:
1.
-change baud rate to 9600
2.
-enable brg16
3.
-change baud rate to 9600
-enable auto baud rate detectio in both fw and gui
4. Check oscillator frequency. Test code is available in ds30loader.s:
Code:
; Toggle pin, frequency on pin = PIC frequency / 16
if 0
bcf TRISx, TRISxx
tsfloop bsf LATx, LATxx
bcf LATx, LATxx
bra tsfloop
endif