Research and Application of Serial Data Communication based on LiteOS System
With the support of LiteOS real-time operating system,the overall functionality of embedded system needs to be achieved through the collaborative operation of multiple tasks and interrupt service program ISR.The serial communication port,as a shared resource,will be accessed concurrently by two or more tasks or interrupt service programs(ISR).To ensure the reliability and integrity of serial data communication,a universal frame structure design for serial data communication was proposed.Through in-depth analysis of the problems in serial data communication under the LiteOS system,an efficient and stable method for serial data transmission and reception under the LiteOS system was proposed.