UART complete before continuing | Cypress Semiconductor
UART complete before continuing
Is there a command that can send data but not continue until all data has been sent out UART?
In my code below, the UART data is sent After the EN goes low again. I want to have 10ms of EN high, then send the data byte and then have EN low. However, the EN goes high and low and then data appears on port pin. I also tried WriteTXData function. Attached is copy of the component layout on workspace. The required output is 125 kHz carrier for 10ms followed by ASK modulated carrier. The enable pin controls external hardware and should enable the chip when carrier and data sent and then go low. Thanks
EN_Write(1); //Start Carrrier
UART_PutChar(0x55); //Send Modulated data