Content originally posted in LPCWare by ybacem on Fri Feb 06 07:36:43 MST 2015
Hi All,
I have a little problem with my configuration of UART3.
I have 2 functions UART0 and UART1 works with no problems.
But in my UART3 initialisation i can't write in register . At the moment of the program write in register of UART3 , the LPC1788 don't works.
someone there already you had this problem?
thanks
my code of uart3_init :
//P0.00 = TX
Init_fonction_pin(0,0,2,0); //page 120
//P0.01 = RX
Init_fonction_pin(0,1,2,0); //page 120
//P4.31 = IO = sense 485
Init_fonction_pin(4,31,0,2); //page 123
LPC_UART3->LCR = 0x0083 ; //DLAB = 1,sans parité,1 stop,1 start,8 bits data
LPC_UART3->DLM = 0;
LPC_UART3->DLL = 52;
LPC_UART3->FDR = 0x10;
//fifo
LPC_UART3->FCR = 0xC7 ; //page 484 ,raz fifos , RX fifo = 14
LPC_UART3->LCR = 0x03 ; //DLAB = 0,sans parité,1 stop,1 start,8 bits data
//pas d'interruptions
LPC_UART3->IER = 0x00; //page 480