Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
test with dspic33FJ128MC802 [solved]
#1
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
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
Reply


Messages In This Thread
test with dspic33FJ128MC802 [solved] - by Mgros - 2011-11-08, 20:29:53
RE: test with dspic33FJ128MC802 - by Mgros - 2011-11-08, 23:46:15
RE: test with dspic33FJ128MC802 - by Mgros - 2011-11-15, 23:56:54
RE: test with dspic33FJ128MC802 - by Mgros - 2012-04-26, 21:02:56
RE: test with dspic33FJ128MC802 - by Mgros - 2012-04-28, 17:25:34
RE: test with dspic33FJ128MC802 - by Mgros - 2012-04-29, 21:50:54
RE: test with dspic33FJ128MC802 - by Mgros - 2012-05-07, 23:06:46
RE: test with dspic33FJ128MC802 - by Mgros - 2012-05-09, 23:37:12

Forum Jump:


Users browsing this thread: 2 Guest(s)