Asking the RX Not Empty Interrupt.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
GlJe_1688511
Level 4
Level 4
Distributor
100 sign-ins 10 likes given 50 questions asked

Hello.

I attached the Rx Not Empty Interrupt.

When there isn't 'Int_value = __get_BASEPRI();'

GlJe_1688511_0-1645581394274.png

When there isn 'Int_value = __get_BASEPRI();'

GlJe_1688511_1-1645581438939.png

'Int_value = __get_BASEPRI();' seems meaningless, why does it make a difference?

is there any Errata on this issue?

 

Thanks and Best regards.

Glenn.

0 Likes
4 Replies
Alakananda_BG
Moderator
Moderator
Moderator
50 likes received 250 sign-ins 250 replies posted

Hi @GlJe_1688511 ,

We could recreate the same issue at our end when we used 'Int_value = __get_BASEPRI(); in the code.

Can you let us know what is the reason for using 'Int_value = __get_BASEPRI(); in the code is there any specific reason to do so?

Regards,

Alakananda
0 Likes
GlJe_1688511
Level 4
Level 4
Distributor
100 sign-ins 10 likes given 50 questions asked

 

Hello Alakananda.
I don't need to use 'Int_value = __get_BASEPRI();'

in code without 'Int_value = __get_BASEPRI(); ',I tested it because looped data was wrong.

When it added code in Interrupt Handler, looped data was wrong.

Thanks and Best regards.

Glenn.

0 Likes
Alakananda_BG
Moderator
Moderator
Moderator
50 likes received 250 sign-ins 250 replies posted

Hi @GlJe_1688511 ,

The standard method which we use is, inside the UART ISR call the Cy_SCB_UART_Interrupt(UART_HW,&UART_context); interrupt.

Regards,

Alakananda
0 Likes
GlJe_1688511
Level 4
Level 4
Distributor
100 sign-ins 10 likes given 50 questions asked

Hello Alakananda.

This firmware is infineon's example(CE219656, UART_Low_Level_User_ISR).

I only added the 'Cy_SCB_UART_Put(UART_HW,read_data);'

Are there some problems in the example?

Thanks and Best regards.

Glenn.

0 Likes