2600 views|6 replies

82

Posts

0

Resources
The OP
 

[Infineon PSOC 62S4 PIONEER KIT Review]——UART [Copy link]

This post was last edited by bitter on 2023-4-7 09:28

[ Infineon PSOC 62S4 PIONEER KIT Review]——UART

  • Basic Introduction

By reading the data sheet, it is found that the PSOC 62S4 PIONEER KIT has six Serial Communication Blocks (SCBs), five of which can be configured in UART mode. It is a full-featured UART with an operating rate of up to 8Mbps; it supports automotive single-wire interface (LIN), infrared interface (IrDA) and smart card (ISO7816) protocols, which are small variations of the basic UART protocol; in addition, it also supports 9-bit multiprocessor mode, allowing addressing of peripherals connected through common RX and TX lines; it supports common UART functions such as parity error, interrupt detection, frame error, etc.; the 256-byte FIFO allows greater CPU service delay.

  • Main API Introduction
  1. UART initialization cycyhal_uart_init()

in:

(1) cts is the input signal of the transmitter. When activated, it indicates that the slave is ready for the master to transmit data. rts is the output signal of the receiver. When activated, it indicates that the receiver is ready to receive data. If you need to use these two features, you need to call cyhal_uart_enable_flow_control() function to enable them.

(2) The cyhal_uart_cfg_t structure is

  1. Debug print UART initialization cy_retarget_io_init()

Among them, the parameters of cy_retarget_io_init_fc() are as follows

  1. UART event enable cyhal_uart_enable_event()

Among them, the cyhal_uart_event_t enumeration is

3. UART Simple Program

Function description: After power on, it prints Hello World!!! and the LED starts flashing. Press the Enter key and the LED stops flashing. Press it again and the LED continues flashing.

Code description:

  1. Initialize the printing UART, set the transmit pin to P3_1 (CYBSP_DEBUG_UART_TX), the receive pin to P3_0 (CYBSP_DEBUG_UART_RX), and set the baud rate to 115200 (CY_RETARGET_IO_BAUDRATE)

  1. When UART receives '\r', it stops or starts LED flashing according to the current LED flashing status and prints relevant information

VID_20230406_203521

main.c

4.09 KB, downloads: 4

源代码

This post is from RF/Wirelessly

Latest reply

Thank you. Wow, I saw that so many people applied and you got first place. That’s amazing!   Details Published on 2023-4-7 22:40
 

2

Posts

0

Resources
2
 

Awesome, comprehensive


This post is from RF/Wirelessly
 
 

6822

Posts

11

Resources
3
 
Can MDK be used as a development tool? Or do I need other tools?
This post is from RF/Wirelessly

Comments

According to the official documentation, you can use [attachimg]688882[/attachimg] but it requires different configurations. You can check the official documentation. I use the official modustoolbox-eclipse  Details Published on 2023-4-7 11:25
 
 
 

82

Posts

0

Resources
4
 
This post was last edited by bitter on 2023-4-7 11:27
lugl4313820 posted on 2023-4-7 09:46 Can MDK be used as a development tool? Or do I need other tools?

According to the official documentation, you can use

But it needs different configuration, you can see the official document below

I use the official modustoolbox-eclipse

mtb_user_guide.pdf

3.83 MB, downloads: 4

This post is from RF/Wirelessly

Comments

Thank you very much. I haven't come into contact with it yet. Is it easy to get started?   Details Published on 2023-4-7 14:59
 
 
 

6822

Posts

11

Resources
5
 
bitter posted on 2023-4-7 11:25 According to the official documentation, it can be used, but different configurations are required. You can check out the official documentation below. I use the official...

Thank you very much. I haven't come into contact with it yet. Is it easy to get started?

This post is from RF/Wirelessly

Comments

I just came into contact with this product. I have only come into contact with 51 MCU and STM32, N32, GD32 before. It is easy to learn. It is basically packaged. You just need to call the HAL library. But there is not much information, and it is basically in English.  Details Published on 2023-4-7 16:22
 
 
 

82

Posts

0

Resources
6
 
lugl4313820 posted on 2023-4-7 14:59 Thank you very much. I haven't come into contact with it yet. Is it easy to get started?

I have just come into contact with this product. I have only come into contact with 51 microcontrollers and STM32, N32, GD32 before.

It's easy to learn. It's basically packaged. You just need to call the HAL library. But there's not much information. It's mostly in English.

This post is from RF/Wirelessly

Comments

Thank you. Wow, I saw that so many people applied and you got first place. That’s amazing!  Details Published on 2023-4-7 22:40
 
 
 

6822

Posts

11

Resources
7
 
bitter posted on 2023-4-7 16:22 I just came into contact with this model. I have only come into contact with 51 microcontrollers and STM32, N32, and GD32 before. It is easy to learn. It is basically packaged and calls the HAL library...

Thank you. Wow, I saw that so many people applied and you got first place. That’s amazing!

This post is from RF/Wirelessly
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
Share a cost-effective headset

This post was last edited by ccmj4708 on 2020-4-22 22:14 Recently I found a pair of cost-effective headphones on Mobao ...

The difference between various chips in TI's CC series: CC2430 CC1100

When using CC series chips, it is often difficult to choose among various models. Here are the parameters and difference ...

Award Ceremony: [Summer Benefits to Celebrate Dragon Boat Festival] A large amount of technical information is waiting for you to claim, and there are also gifts to help

Event details: https://en.eeworld.com/bbs/thread-1168570-1-1.html Congratulations to the following netizens for winning ...

[Flower carving DIY] Interesting and fun music visualization series of small projects (05) --- WS2812 column jump light

I suddenly had the urge to do a series of topics on sound visualization. This topic is a bit difficult and covers a wide ...

【Development and application based on NUCLEO-F746ZG motor】14. Parameter configuration - motor parameter configuration

This post was last edited by annysky2012 on 2021-10-20 21:59 I haven't updated for a few days. The weather has turned c ...

Embedded Qt-Control Hardware: Slide bar controls RGB lights

The previous articles introduced Qt routines, which are all hardware-independent and can run on both Windows and embed ...

39 "Wanli" Raspberry Pi car - ROS learning (ROS project file system structure introduction and import external software packages...

This post was last edited by lb8820265 on 2022-11-1 16:03 The fastest way to learn software is to start with routine ...

How to use common mode inductors?

How to use common mode inductors? I don't have any application, but I've always been curious about this component. Let’ ...

[Digi-Key Follow me Issue 1] Tasks 2 and 3: Peripheral driver and network time synchronization

After getting the development environment in place, the next step is to get each peripheral device one by one. YOU ARE O ...

What is the difference between the FLASH storage area and the data storage area in the HC16L series microcontrollers?

I would like to ask what is the difference between the FLASH storage area and the data storage area in the HC16L series ...

快速回复 返回顶部 Return list