1260 views|1 replies

3180

Posts

0

Resources
The OP
 

"Playing with the board" + Zhou Hangci's book Chapter 11, Example 1 [Copy link]

 




This content is originally created by EEWORLD forum user chenbingjy . If you want to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source.
Chapter 11: Serial Communication Task Design

Data sending:

Data transmission is an active behavior and there is no risk. When a frame of data needs to be sent in several times, due to the real-time operating system

The serial transmission task should not use the query method to complete the transmission process, so as not to waste precious CPU time.

ISR and serial transmission tasks are completed in coordination.

The following is a serial transmission experiment program, which has two tasks (key task and serial transmission task), an ISR (serial transmission task)

interrupt) and a global array of 40 bytes in length. The serial transmission task is created by the key task, and 8 bytes are sent each time.

5 times sent.

Partial schematic diagram:

Main code:

Effect picture:

Latest reply

Thanks to the host for writing it in detail. I will try it out according to the post someday.   Details Published on 2020-3-18 13:48
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 
 

661

Posts

18

Resources
2
 

Thanks to the host for writing it in detail. I will try it out according to the post someday.

 
 
 

Guess Your Favourite
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