cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

LUBA_1714456
New Contributor II

Hello every one!

About PSoc4 I know how to detect Uart Rx Errors at Uart Interrupt time, BUT I can't find how to clear those errors.... what function I have to call.

(may be I don't have to do it, but it's not clear!)

Thanks

Luigi

Italy

0 Likes
Reply
1 Solution
BragadeeshV
Moderator
Moderator

Hi LUBA_1714456​,

You can clear the RX interrupt by calling the SCB_ClearRxInterruptSource(uint32 interruptMask). Please refer SCB component datasheet for details.

Please note the following side effects on clearing the following RX interrupts.

pastedImage_0.png

Are you looking for handling of any specific RX interrupt?

Regards,

Bragadeesh

Regards,
Bragadeesh

View solution in original post

0 Likes
Reply
6 Replies
BragadeeshV
Moderator
Moderator

Hi LUBA_1714456​,

You can clear the RX interrupt by calling the SCB_ClearRxInterruptSource(uint32 interruptMask). Please refer SCB component datasheet for details.

Please note the following side effects on clearing the following RX interrupts.

pastedImage_0.png

Are you looking for handling of any specific RX interrupt?

Regards,

Bragadeesh

Regards,
Bragadeesh

View solution in original post

0 Likes
Reply
LUBA_1714456
New Contributor II

Hi Bragadeesh !

I was using “SCB_ClearRxInterruptSource(uint32 interruptMask).” Yet!

But what I need is to clear any Rx ERROR detected by Uart: does this function also clear them?

Have a nice day

B.R.

Luigi

<http://www.shd-elettronica.it/> <https://www.facebook.com/SHDCuneo/> <https://www.instagram.com/s.h.d._elettronica/>

Bassignana Luigi.

S.H.D. s.a.s.

<http://www.shd-elettronica.it/> Sito : www.shd-elettronica.it

Email <mailto:luigi.bassignana@shd-elettronica.it> luigi.bassignana@shd-elettronica.it

Tel - Fax : +39 0171 348019

0 Likes
Reply
BragadeeshV
Moderator
Moderator

Hi LUBA_1714456​,

Could you please clarify what Rx error you are referring to?

Regards.

Bragadeesh

Regards,
Bragadeesh
0 Likes
Reply
LUBA_1714456
New Contributor II

Sorry, but I really don’t know how you have been triggered on this argument!

I just wrote a mail to PY_21 about troubles on DEEP_SLEEP exiting by GPIO Irq!

Here it is again:

Hi my dear…

Please help me to get where I’m wrong in this design (still Broadcast+Observer):

I made some modifications in order to put CPU in DEEP SLEEP when possible, (that is most time):

The first trouble I’m turning around from many hours, and I can’t solve it is:

a. I Can’t get Irq function triggered when “Pin_1” moves to any level AND Cpu is in DEEP SLEEP!

(Pls notice I physically wired this pin to UART2 Rxd, so I need exiting DEEP SLEEP at first character, used as a BREAK…)

I have seen Module current rising during the period pin is moving, then returning in sleep, but no way to jump to Irq function (I checked using LED_RUN_CPL macro with a scope)

* Lastly (pls see attached prj) even current is not rising as if Pin_1 did not affect DEEP SLEEP!

Surely I made some mistake….

(I need to trigger this function in order to tell CPU not entering DEEP SLEEP for a certain period: here I load a timeout, then Timer1 decrements it, then when counter goes zero CPU can go DEEP SLEEP again…)

b. Last question: when CPU is not in DEEP SLEEP my application needs Timer1 Irq periodically running,

So: do I have to stop it before and restart it after DEEP SLEEP?

Many Thanks

BR

Luigi

<http://www.shd-elettronica.it/> <https://www.facebook.com/SHDCuneo/> <https://www.instagram.com/s.h.d._elettronica/>

Bassignana Luigi.

S.H.D. s.a.s.

<http://www.shd-elettronica.it/> Sito : www.shd-elettronica.it

Email <mailto:luigi.bassignana@shd-elettronica.it> luigi.bassignana@shd-elettronica.it

Tel - Fax : +39 0171 348019

0 Likes
Reply
BragadeeshV
Moderator
Moderator

Hi LUBA_1714456​,

I was following up with your previous reply in this post  Psoc4 Uart Rx Errors Clearing​.

Regards,

Bragadeesh

Regards,
Bragadeesh
0 Likes
Reply
LUBA_1714456
New Contributor II

Sorry… I was replying to a mail coming from CY_21 about Broadcast+Observer prj…..

But don’t worry

We are joined in the Community ticket!

Thanks again

Luigi

<http://www.shd-elettronica.it/> <https://www.facebook.com/SHDCuneo/> <https://www.instagram.com/s.h.d._elettronica/>

Bassignana Luigi.

S.H.D. s.a.s.

<http://www.shd-elettronica.it/> Sito : www.shd-elettronica.it

Email <mailto:luigi.bassignana@shd-elettronica.it> luigi.bassignana@shd-elettronica.it

Tel - Fax : +39 0171 348019

0 Likes
Reply