文件名称:Exp301
介绍说明--下载内容均来自于网络,请自行研究使用
存储器0x40003100字节单元保存嵌入式系统各部件的运行状态数据,数据位信息定义如下:
位0=0 存储器无障碍;
=1 存储器故障;
位1=0 串行通信无障碍;
=1 串行通信故障;
依据内存0x40003100单元的内容,控制蜂鸣器报警。报警策略如下:存储器故障,每隔一定时间蜂鸣器发出“嘟嘟”报警声;串行通信故障,每隔一定时间蜂鸣器发出“嘟嘟嘟”报警声。
如果两种错误都发生,则按以上策略交替报警。编写程序,实现以上功能。
-Operational status data of each member of memory 0x40003100 byte units save embedded systems, data bit information is defined as follows: Bit 0 = 0 memory accessibility = 1 memory fault bit 1 = 0 Serial communication accessibility = 1 Serial Communications failure depending on the content of memory 0x40003100 unit control buzzer alarm. Alarm strategy is as follows: memory failure, at regular intervals buzzer " beep" alarm sound serial communication failure, at regular intervals buzzer " beep beep" alarm sound. If two errors occur, press the alarm over policies alternately. Write a program to achieve the above functions.
位0=0 存储器无障碍;
=1 存储器故障;
位1=0 串行通信无障碍;
=1 串行通信故障;
依据内存0x40003100单元的内容,控制蜂鸣器报警。报警策略如下:存储器故障,每隔一定时间蜂鸣器发出“嘟嘟”报警声;串行通信故障,每隔一定时间蜂鸣器发出“嘟嘟嘟”报警声。
如果两种错误都发生,则按以上策略交替报警。编写程序,实现以上功能。
-Operational status data of each member of memory 0x40003100 byte units save embedded systems, data bit information is defined as follows: Bit 0 = 0 memory accessibility = 1 memory fault bit 1 = 0 Serial communication accessibility = 1 Serial Communications failure depending on the content of memory 0x40003100 unit control buzzer alarm. Alarm strategy is as follows: memory failure, at regular intervals buzzer " beep" alarm sound serial communication failure, at regular intervals buzzer " beep beep" alarm sound. If two errors occur, press the alarm over policies alternately. Write a program to achieve the above functions.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Exp301
......\Exp301.mcp
......\Exp301_Data
......\...........\CWSettingsWindows.stg
......\...........\DebugInChipFlash
......\...........\................\TargetDataWindows.tdt
......\...........\DebugInExram
......\...........\............\Exp301.axf
......\...........\............\ObjectCode
......\...........\............\..........\IRQ.o
......\...........\............\..........\Startup.o
......\...........\............\..........\main.o
......\...........\............\..........\target.o
......\...........\............\TargetDataWindows.tdt
......\...........\RelInChip
......\...........\.........\TargetDataWindows.tdt
......\...........\RelOutChip
......\...........\..........\TargetDataWindows.tdt
......\src
......\...\IRQ.s
......\...\LPC2294.h
......\...\Startup.s
......\...\config.h
......\...\main.c
......\...\mem_a.scf
......\...\mem_b.scf
......\...\mem_c.scf
......\...\target.c
......\...\target.h