-
1. Re: A question about the PSOC5866 UART Rx interrupt
JoMe_264151 Sep 30, 2017 3:28 AM (in response to tazhc_2592986)Can you please post your complete project so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Bob
-
2. Re: A question about the PSOC5866 UART Rx interrupt
NoriakiT_91 Sep 30, 2017 5:10 AM (in response to tazhc_2592986)I created a project to reproduce your issue, but I cannot reproduce the issue with my CY8CKIT-059. Please refer attached example project.
uint8 rxData = 0; CY_ISR(int_Rx_isr) { rxData = UART_RXDATA_REG; UART_TXDATA_REG = rxData; }
In the ISR, the value of RXDATA register is copied into the TXDATA register like your code.
int main(void) { CyGlobalIntEnable; /* Enable global interrupts. */ /* Place your initialization/startup code here (e.g. MyInst_Start()) */ UART_Start(); int_Rx_StartEx(int_Rx_isr); UART_PutString("HELLO WORLD\r\n"); for (;;) { /* Place your application code here. */ } }
In the main() function, UART and Interrupt components are started and show a greeting message.
When this project is written to the Prototyping kit, the greeting message was displayed and loop-back the entered characters. ISR is called once a character.
In my project, both FIFO size are set to four. This means the UART component uses the hardware FIFO only. Please check the FIFO size you specified.
Regards,
Noriaki
-
UartRxIsr.cyprj.Archive01.zip 494.5 K
-
-
3. Re: A question about the PSOC5866 UART Rx interrupt
tazhc_2592986 Oct 8, 2017 5:41 PM (in response to JoMe_264151)Thanks a lot, Bob!
I am sorry for replying so late.
I post the project here, please help me to check if there is any uncorrect settings.
Thank you again!
-
4. Re: A question about the PSOC5866 UART Rx interrupt
tazhc_2592986 Oct 8, 2017 5:51 PM (in response to NoriakiT_91)Dear Noriaki,
Thank you very much for your help.
I post the project here, Please help me to check if there is any uncorrect setting if you have time!
-
5. Re: A question about the PSOC5866 UART Rx interrupt
NoriakiT_91 Oct 8, 2017 7:45 PM (in response to tazhc_2592986)I have converted your project into my CY8CKIT-059 but the issue is not reproduced.
I assigned pins as follows. Other pins are automatically assigned.
Pin Name Pin UART_Rx P12[6] UART_Tx P12[7] CMOD P15[4] LED1 P2[1] When I typed '1' and '3' alternately, the LED1 on the CY8CKIT-059 turns ON and OFF.
The behavior is same when the CY8CKIT-059 is disconnect and reconnect.
Regards,
Noriaki
-
CapSense_CSD_NTAN01.cywrk.Archive01.zip 1,023.6 K
-
-
6. Re: A question about the PSOC5866 UART Rx interrupt
tazhc_2592986 Oct 8, 2017 8:37 PM (in response to NoriakiT_91)Thank you dear Noriaki!
The phenomenon is weird.
Could it be a specific problem of the cypress chip on my PCB?
Or could it be a problem of the PCB designed by myself?
I will try the hardware and report it again.
Thanks again!