hi,Carlos_Musich
thank you for your answer,it's help me a lot
But I still have some questions to ask you about a serial port interrupt
1 In the demo you write ,I saw you installed interrupt by " OSA_InstallIntHandler(45, &UART0_RX_TX_IRQHandler);"
but I don't anderstand why it's "45" for the first parameter,for uart0 interrupt ,it should be UART0_RX_TX_IRQn as 31
isn't it?
and when I commented out,I'm surprised that the The program was still run into the The interrupt function "UART0_RX_TX_IRQHandler",did you know why ?
in MK64F12.h
UART0_RX_TX_IRQn = 31, /**< UART0 Receive/Transmit interrupt */
UART0_ERR_IRQn = 32, /**< UART0 Error interrupt */
UART1_RX_TX_IRQn = 33, /**< UART1 Receive/Transmit interrupt */
UART1_ERR_IRQn = 34, /**< UART1 Error interrupt */
UART2_RX_TX_IRQn = 35, /**< UART2 Receive/Transmit interrupt */
UART2_ERR_IRQn = 36, /**< UART2 Error interrupt */
UART3_RX_TX_IRQn = 37, /**< UART3 Receive/Transmit interrupt */
UART3_ERR_IRQn = 38, /**< UART3 Error interrupt */
ADC0_IRQn = 39, /**< ADC0 interrupt */
CMP0_IRQn = 40, /**< CMP0 interrupt */
CMP1_IRQn = 41, /**< CMP1 interrupt */
FTM0_IRQn = 42, /**< FTM0 fault, overflow and channels interrupt */
FTM1_IRQn = 43, /**< FTM1 fault, overflow and channels interrupt */
FTM2_IRQn = 44, /**< FTM2 fault, overflow and channels interrupt */
CMT_IRQn = 45, /**< CMT interrupt */
RTC_IRQn = 46, /**< RTC interrupt */
2 I found that The program run into The interrupt function "UART0_RX_TX_IRQHandler" when the serial port was writed or read,
I want to know How to set up it only when a serial port receives data into the interrupt program
3 I found it write every 8 bytes will trigger an interrupt and receives every 1 bytes will trigger an interrupt
how can I set it Only trigger by receives data not trigger by send data??
and can I set it Accept the whole data to raise the interrupt?
so that I can receive the full packet and then deal with