摘要
深入分析并总结MCS-51系列单片机的中断优先级问题,引入操作系统多任务数据同步概念,分析在中断处理过程中,中断处理函数与被中断函数在访问共享数据时产生的数据同步问题,设计短小精悍的免锁环形缓冲区算法,实现对共享数据的保护。
In-depth analysis and summary of MCS-51 Series Single Chip Microcomputer(MCU) interrupt priority,this paper introduces multitask operating system data synchronization concept,analysis in the process of interrupt handling,interrupt synchronization processing function and interrupt function in data access to shared data,lock free ring buffer algorithm design dapper,to realize the protection of shared data.
出处
《工业控制计算机》
2016年第12期104-105,共2页
Industrial Control Computer
关键词
单片机
中断
同步
single chip microcomputer
interrupt
synchronization