Hi I am testing the UART1 on PIC24FJ128GA006 On the errata say's that 64 pin version don't have flow controll and I = am try to get this with an extra PIN (LATF6) I see that the data gets in but never gets sent out. void UART1Init() { // Set directions of UART IOs UART1_TX_TRIS =3D 0; // INGRESSO =3D 1 - USCITA =3D 0 UART1_RX_TRIS =3D 1; UART1_RTS_TRIS =3D 0; //UART1_CTS_TRIS =3D 1; = U1BRG =3D BAUDRATEREG1; // Baud Rate U1MODE =3D 0; U1STA =3D 0; U1MODEbits.PDSEL0 =3D 0; // 8-bit data c/ no parity U1MODEbits.PDSEL1 =3D 0; U1MODEbits.STSEL =3D 0; // 1 bit di STOP U1MODEbits.RTSMD =3D 0; // SIMPLEX MODE for RS485 U1MODEbits.UEN0 =3D 0; // ALL pins used U1MODEbits.UEN1 =3D 0; // even U1RTS and U1CTS U1MODEbits.BRGH =3D 0; // Baud rate generator (accertiamoci che = sia a zero) = #warning: DEBUG ME DA CONTROLLARE IN SEGUITO U1STAbits.UTXISEL0 =3D 0; U1STAbits.UTXISEL0 =3D 0; // when interrupt occurs U1STAbits.UTXISEL1 =3D 0; // when interrupt occurs // ******* DA CONTROLLARE IN SEGUITO = ++++++++++++++++++++++++++++++++++++++++++++++++++++ U1STAbits.URXISEL1 =3D 0; // E' arrivato qualcosa U1STAbits.URXISEL0 =3D 0; // Non importa se URXISEL1 =E8 a zero U1MODEbits.UARTEN =3D 1; U1STAbits.UTXEN =3D 1; U1STAbits.UTXBRK =3D1; U1TXREG =3D 0x0000; // reset RX flag IFS0bits.U1RXIF =3D 0; // IEC0bits.U1RXIE =3D 1; // recieve INTERRUPT service // IEC0bits.U1TXIE =3D 1; // trasmit INTERRUPT service } void UART1PutChar(char Ch){ // wait for empty buffer = _LATF6 =3D1; while(U1STAbits.UTXBF =3D=3D 1); U1TXREG =3D Ch; _LATF6 =3D0; } If I but 2 breakpoints. One on the while function, and one on the _LATF6 = =3D0; then data gets out. Using RF6 for 485 direction controll Same programm works properly with flow control on PIC24F64GA002 Thank you -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist