could you pl help me for getting example code for UART communication using UART interrupt.
I've written a simple code below that triggers a interrupt whenever a byte is sent via uart. you can implement a similar code in your design.
uint8 tx_intr =0;
CY_ISR( UART_INTERRUPT_ROUTINE )
tx_intr = 1;
uint8 sample_data = 0x55; //byte to send
if(tx_intr)//Interrupt when data transmitted.
tx_intr = 0;//clear interrupt
If you want to use interrupt on receive, you can use the same technique as that demonstrated by SRIM in the previous comment. Handling of the recieved byte can be done in the ISR or in the main code (when ISR is just used to set a flag).
hello everyone ,
i want to transfer the DATA from the VDAC to bluetooth module HC-05
can you help me gays to do it
what i have done
i have changed the instruction of the VDAC by the instruction of UART but i dont receive the exact value
so help me !!!
There are projects over here that would accomplish what you want
to do (done with PSOC 4) -