1969 views|4 replies

182

Posts

1

Resources
The OP
 

RISC-V RVB2601 First Experience--Section 4--Sensor Module Interface [Copy link]

 

IO simulated serial port connection sensor module communication test.

Under the premise of tight IO, using IO module to simulate serial port is a very good choice. In the past, IO was always used to simulate IIC SPI.

I optimized the code today and the results are as follows.

timer.c gpio.c These library files can be found in the drivers folder here. Some commonly used libraries can be found.

For serial communication waveform analysis, please refer to here (quoting other people's articles) https://www.cnblogs.com/dongxiaodong/p/14163409.html

Based on the level and cycle time of each bit, I simulate the communication under a certain baud rate. I designed it for 9600bit/s, which is compatible with the sensor module I have.

Latest reply

If the serial port is not enough, you can do this   Details Published on 2022-4-2 16:45
 
 

6547

Posts

0

Resources
2
 

When working on a 51 single-chip microcomputer, the IO module simulates the serial port in many ways, such as counting and interruption. Which one is the original poster's?

Comments

The method of adding interrupts to timers is very simple, but the new IDE has been working on it for a long time.  Details Published on 2022-3-16 09:51
 
 
 

182

Posts

1

Resources
3
 
Jacktang posted on 2022-3-16 07:47 When working on a 51 single-chip microcomputer, the IO module simulates the serial port in a variety of ways, such as counting and interruption. Which one is the original poster's?

The method of adding interrupts to timers is very simple, but the new IDE has been working on it for a long time.

 
 
 

6818

Posts

11

Resources
4
 
Can I learn from your results? I need two serial ports and I’m at a loss.
 
 
 

538

Posts

3

Resources
5
 

If the serial port is not enough, you can do this

 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list