How to use serial port interrupt with psoc4

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

cross mob
xime_4617841
Level 1
Level 1

Now I need to use modbus in psoc4, so I need to know how to use the serial port interrupt.It seems that I need to use the function CY_ISR(isr_1_Interrupt), but I'm not sure how to use other functions such as read Tx/Rx status/data and send data in this function.Another problem is the configuration about the UART unit. So could anyone talk about it? Or maybe a code example、helpful blog and other things about it. Thanks a lot

0 Likes
1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

Following is my sample

tty_utils a utility sample for CLI type program

I wonder if this can be a sample to begin with

moto

View solution in original post

0 Likes
2 Replies
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

Following is my sample

tty_utils a utility sample for CLI type program

I wonder if this can be a sample to begin with

moto

0 Likes
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi xime_4617841​,

In addition to MoTa_728816​-san's example program, you can use the following reference links to get started with PSoC 4 SCB interrupts:

1. PSoC 4 Interrupts - https://www.cypress.com/documentation/application-notes/an90799-psoc-4-interrupts

2. PSoC 4 SCB Component Datasheet - https://www.cypress.com/documentation/component-datasheets/psoc-4-serial-communication-block-scb

3. Code examples - CE224406 - PSoC 4 UART - https://www.cypress.com/documentation/code-examples/ce224406-psoc-4-uart

4. PSoC 4 Architecture TRM

5. PSoC 4 Register TRM

Regards,

Bragadeesh

Regards,
Bragadeesh