2011-11-08, 20:29:53
(This post was last modified: 2012-12-22, 14:10:59 by Mikael Gustavsson.)
Sorry for my poor English ^^...
By the way thank you to the developers as DS30 loader...
Before sending any we will start from the beginning …
I chose my pic
Quartz 10Mhz
PLL configuration PLLPRE -> 5Mhz;
VC0 -> 160Mhz ;
PLLPOST -> 80Mhz
Fcy=Fosc/2 = 80 000 000/2 = 40 000 000 = 40Mhz
My FCY is it false?
I want to use the UART1 ...
And I use on my dsPIC Peripheral Pin Select Registers ....
;RPINR18bits.U1RXR = 10; //U1RX RB10/RP10
;RPOR5bits.RP11R = 3; //U1TX RB11 (=3 veut dire fonction TX)
we must use USE_ALTIO?
Here if it does not work after I will post answer worth following @ + thank you
By the way thank you to the developers as DS30 loader...
Before sending any we will start from the beginning …
I chose my pic
Code:
;------------------------------------------------------------------------------
; Device
;------------------------------------------------------------------------------
.equ __33FJ128MC802, 1 ;
Quartz 10Mhz
PLL configuration PLLPRE -> 5Mhz;
VC0 -> 160Mhz ;
PLLPOST -> 80Mhz
Fcy=Fosc/2 = 80 000 000/2 = 40 000 000 = 40Mhz
My FCY is it false?
Code:
;------------------------------------------------------------------------------
; User preferences
;------------------------------------------------------------------------------
.equiv FCY, 40000000
.equiv BLINIT, 3000
.equiv HELLOTRIES, 2
.equiv BLTIME, 3000
I want to use the UART1 ...
And I use on my dsPIC Peripheral Pin Select Registers ....
;RPINR18bits.U1RXR = 10; //U1RX RB10/RP10
;RPOR5bits.RP11R = 3; //U1TX RB11 (=3 veut dire fonction TX)
we must use USE_ALTIO?
Code:
;------------------------------------------------------------------------------
; UART settings
;------------------------------------------------------------------------------
.equiv USE_UART1, 1
;.equiv USE_UART2, 1
;.equiv USE_UART3, 1
;.equiv USE_UART4, 1
;.equ USE_ALTIO, 1
.equiv BAUDRATE, 115200
;.equiv USE_ABAUD, 1
;.equiv USE_BRGH, 1
;.equiv USE_TXENABLE, 1
.ifdef USE_TXENABLE
.equiv TRISR_TXE, TRISA
.equiv LATR_TXE, LATA
.equiv TRISB_TXE, TRISA1
.equiv LATB_TXE, RA1
.endif
Here if it does not work after I will post answer worth following @ + thank you