Timer ISR

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

cross mob
Anonymous
Not applicable

Hi

I was trying to create a TIMER based ISR to do the following.

Check every 200ms, if nothing is recieved on UART Rx, transmit something on UART Tx. This continues till we recieve something on Rx.

And if valid data in UART Rx, dont send anything on UART Tx.

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
NoriTan
Employee
Employee
25 sign-ins 5 questions asked 10 sign-ins

I understand that you want an example project.

Attached project is my solution using the CY8CKIT-059.

Every 200ms do followings

  if a character is received on UART RX

    Send a received character and CRLF to UART TX

  otherwise

     Send a prompt character '>' to UART TX

GS003249.png

Regards,

Noriaki

View solution in original post

0 Likes
3 Replies

Easiest way to help you is always posting 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

0 Likes
lock attach
Attachments are accessible only for community members.
NoriTan
Employee
Employee
25 sign-ins 5 questions asked 10 sign-ins

I understand that you want an example project.

Attached project is my solution using the CY8CKIT-059.

Every 200ms do followings

  if a character is received on UART RX

    Send a received character and CRLF to UART TX

  otherwise

     Send a prompt character '>' to UART TX

GS003249.png

Regards,

Noriaki

0 Likes