Hi,
Thnaks for your answer, for the SCI1 configuration problem, you were right, don't know why but i disabled the SCI1 clock module.
I tried what you told me to do, but the TC and TDRE flags seems to not clear themselves even when following step by step the procedure : reading SCI1 module while they are set , then writing the data register.
SCI1C2_TE = 1 ;
while( (SCI1S1 & SCI1S1_TDRE_MASK & SCI1S1_TC_MASK)== 0 )
{}
SCI1D = 0xAA ;
do
{
LedBusy = 0 ;
LedError = 0 ;
}
while ((SCI1S1_TC & SCI1S1_TDRE) != 1 );
SCI1C2_TE = 0 ;
The TC and TDRE flag are initialized at 1, so they pass each while without any problem. But the should have been cleared when i wrote the data register. Maybe a problem of configuration? I just changed the baud rate divisor and the inversion data bits to transmit and receive.
By the way, my UART is to communicate on RS485, and when i looked to the signal, it seems that i have a transmission, but it's just a constant logic 1, my data was 0xAA , pretty simple to read.
Any ideas of what could be the problem?