寄存器定义头文件内容简介_第1页
寄存器定义头文件内容简介_第2页
寄存器定义头文件内容简介_第3页
寄存器定义头文件内容简介_第4页
寄存器定义头文件内容简介_第5页
已阅读5页,还剩17页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、版权所有版权所有 http:/版权所有版权所有 http:/ / /* *-reg51.hreg51.hheader file for generic 80c51 and 80c31 microcontroller.header file for generic 80c51 and 80c31 microcontroller.copyright (c) 1988-2002 copyright (c) 1988-2002 keilkeil elektronikelektronik gmbh and gmbh and keilkeil software, inc. software, inc.al

2、l rights reserved.all rights reserved.-* */ /# #ifndefifndef _reg51_h_ _reg51_h_#define _reg51_h_#define _reg51_h_/ /* * byte register byte register * */ /sfrsfr p0 = 0 x80; p0 = 0 x80;sfrsfr p1 = 0 x90; p1 = 0 x90;sfrsfr p2 = 0 xa0; p2 = 0 xa0;sfrsfr p3 = 0 xb0; p3 = 0 xb0;sfrsfr psw = 0 xd0; psw =

3、 0 xd0;sfrsfr acc = 0 xe0; acc = 0 xe0;sfrsfr b = 0 xf0; b = 0 xf0;sfrsfr sp = 0 x81; sp = 0 x81;sfrsfr dpl = 0 x82; dpl = 0 x82;sfrsfr dph = 0 x83; dph = 0 x83;版权所有版权所有 http:/sfrsfr pcon = 0 x87; pcon = 0 x87;sfrsfr tcon = 0 x88; tcon = 0 x88;sfrsfr tmod = 0 x89; tmod = 0 x89;sfrsfr tl0 = 0 x8a; tl

4、0 = 0 x8a;sfrsfr tl1 = 0 x8b; tl1 = 0 x8b;sfrsfr th0 = 0 x8c; th0 = 0 x8c;sfrsfr th1 = 0 x8d; th1 = 0 x8d;sfrsfr ie = 0 xa8; ie = 0 xa8;sfrsfr ip = 0 xb8; ip = 0 xb8;sfrsfr scon = 0 x98; scon = 0 x98;sfrsfr sbuf = 0 x99; sbuf = 0 x99;/ /* * bit register bit register * */ / /* * psw psw * */ /sbitsbi

5、t cy = 0 xd7; cy = 0 xd7;sbitsbit ac = 0 xd6; ac = 0 xd6;sbitsbit f0 = 0 xd5; f0 = 0 xd5;sbitsbit rs1 = 0 xd4; rs1 = 0 xd4;sbitsbit rs0 = 0 xd3; rs0 = 0 xd3;sbitsbit ov = 0 xd2; ov = 0 xd2;sbitsbit p = 0 xd0; p = 0 xd0;/ /* * tcon tcon * */ /sbitsbit tf1 = 0 x8f; tf1 = 0 x8f;sbitsbit tr1 = 0 x8e; tr

6、1 = 0 x8e;sbitsbit tf0 = 0 x8d; tf0 = 0 x8d;版权所有版权所有 http:/sbitsbit tr0 = 0 x8c; tr0 = 0 x8c;sbitsbit ie1 = 0 x8b; ie1 = 0 x8b;sbitsbit it1 = 0 x8a; it1 = 0 x8a;sbitsbit ie0 = 0 x89; ie0 = 0 x89;sbitsbit it0 = 0 x88; it0 = 0 x88;/ /* * ie ie * */ /sbitsbit ea = 0 xaf; ea = 0 xaf;sbitsbit es = 0 xac;

7、 es = 0 xac;sbitsbit et1 = 0 xab; et1 = 0 xab;sbitsbit ex1 = 0 xaa; ex1 = 0 xaa;sbitsbit et0 = 0 xa9; et0 = 0 xa9;sbitsbit ex0 = 0 xa8; ex0 = 0 xa8;/ /* * ip ip * */ / sbitsbit ps = 0 xbc; ps = 0 xbc;sbitsbit pt1 = 0 xbb; pt1 = 0 xbb;sbitsbit px1 = 0 xba; px1 = 0 xba;sbitsbit pt0 = 0 xb9; pt0 = 0 xb

8、9;sbitsbit px0 = 0 xb8; px0 = 0 xb8;/ /* * p3 p3 * */ /sbitsbit rd = 0 xb7; rd = 0 xb7;sbitsbit wr = 0 xb6; wr = 0 xb6;sbitsbit t1 = 0 xb5; t1 = 0 xb5;sbitsbit t0 = 0 xb4; t0 = 0 xb4;sbitsbit int1 = 0 xb3; int1 = 0 xb3;版权所有版权所有 http:/sbitsbit int0 = 0 xb2; int0 = 0 xb2;sbitsbit txd = 0 xb1; txd = 0

9、xb1;sbitsbit rxd = 0 xb0; rxd = 0 xb0;/ /* * scon scon * */ /sbitsbit sm0 = 0 x9f; sm0 = 0 x9f;sbitsbit sm1 = 0 x9e; sm1 = 0 x9e;sbitsbit sm2 = 0 x9d; sm2 = 0 x9d;sbitsbit ren = 0 x9c; ren = 0 x9c;sbitsbit tb8 = 0 x9b; tb8 = 0 x9b;sbitsbit rb8 = 0 x9a; rb8 = 0 x9a;sbitsbit ti = 0 x99; ti = 0 x99;sbi

10、tsbit ri = 0 x98; ri = 0 x98;# #endifendif版权所有版权所有 http:/ / /* *-reg1211.hreg1211.hheader file for ti msc1211 microcontroller.header file for ti msc1211 microcontroller.copyright (c) 1988-2003 copyright (c) 1988-2003 keilkeil elektronikelektronik gmbh and gmbh and keilkeil software, inc. software, i

11、nc.all rights reserved.all rights reserved.-* */ /# #ifndefifndef _reg1211_h_ _reg1211_h_#define _reg1211_h_#define _reg1211_h_/ /* * 8 8位寄存器位寄存器 * */ /sfrsfr p0 = 0 x80; /p0 p0 = 0 x80; /p0口寄存器口寄存器sfrsfr sp = 0 x81; / sp = 0 x81; /堆栈指针寄存器堆栈指针寄存器 sfrsfr dpl0 = 0 x82; / dpl0 = 0 x82; /数据指针数据指针0 0低字节低

12、字节sfrsfr dph0 = 0 x83; / dph0 = 0 x83; /数据指针数据指针0 0高字节高字节sfrsfr dpl1 = 0 x84; / dpl1 = 0 x84; /数据指针数据指针1 1低字节低字节sfrsfr dph1 = 0 x85; / dph1 = 0 x85; /数据指针数据指针1 1高字节高字节sfrsfr dps = 0 x86; / dps = 0 x86; /数据指针选择寄存器数据指针选择寄存器sfrsfr pcon = 0 x87; / pcon = 0 x87; /电源控制寄存器电源控制寄存器sfrsfr tcon = 0 x88; / tcon

13、 = 0 x88; /定时定时/ /计数控制寄存器计数控制寄存器 sbitsbit tf1 = tcon7; / tf1 = tcon7; /定时器定时器1 1溢出中断标志溢出中断标志 sbitsbit tr1 = tcon6; / tr1 = tcon6; /定时器定时器1 1运行控制位运行控制位 sbitsbit tf0 = tcon5; / tf0 = tcon5; /定时器定时器0 0溢出中断标志溢出中断标志 sbitsbit tr0 = tcon4; / tr0 = tcon4; /定时器定时器0 0运行控制位运行控制位 sbitsbit ie1 = tcon3; / ie1 = t

14、con3; /外部中断外部中断1 1请求标志请求标志 sbitsbit it1 = tcon2; / it1 = tcon2; /选择外部中断请求选择外部中断请求1 1为边沿触发方式的控制位为边沿触发方式的控制位 sbitsbit ie0 = tcon1; / ie0 = tcon1; /外部中断外部中断0 0请求标志请求标志 sbitsbit it0 = tcon0; / it0 = tcon0; /选择外部中断请求选择外部中断请求0 0为边沿触发方式的控制位为边沿触发方式的控制位版权所有版权所有 http:/sfrsfr tmod = 0 x89; / tmod = 0 x89; /定时定

15、时/ /计数模式控制寄存器计数模式控制寄存器sfrsfr tl0 = 0 x8a; / tl0 = 0 x8a; /定时定时/ /计数器计数器0 0低字节低字节sfrsfr tl1 = 0 x8b; / tl1 = 0 x8b; /定时定时/ /计数器计数器1 1低字节低字节sfrsfr th0 = 0 x8c; / th0 = 0 x8c; /定时定时/ /计数器计数器0 0高字节高字节sfrsfr th1 = 0 x8d; / th1 = 0 x8d; /定时定时/ /计数器计数器1 1高字节高字节sfrsfr ckcon = 0 x8e; / ckcon = 0 x8e; /时钟控制寄存

16、器时钟控制寄存器sfrsfr mws = 0 x8f; / mws = 0 x8f; /存储器写选择控制寄存器存储器写选择控制寄存器sfrsfr p1 = 0 x90; /p1 p1 = 0 x90; /p1口寄存器口寄存器 sbitsbit t2ex = p11; / t2ex = p11; /定时器定时器/ /计数器计数器2 2的外部控制输入的外部控制输入 sbitsbit t2 = p10; / t2 = p10; /定时器定时器/ /计数器计数器2 2的外部输入的外部输入sfrsfr exif = 0 x91; / exif = 0 x91; /外部中断标志寄存器外部中断标志寄存器sf

17、rsfr mpage = 0 x92; / mpage = 0 x92; /存储器分页寄存器存储器分页寄存器sfrsfr caddr = 0 x93; / caddr = 0 x93; /配置地址寄存器配置地址寄存器sfrsfr cdata = 0 x94; / cdata = 0 x94; /配置数据寄存器配置数据寄存器sfrsfr mcon = 0 x95; / mcon = 0 x95; /存储器控制寄存器存储器控制寄存器sfrsfr scon0 = 0 x98; / scon0 = 0 x98; /串口串口0 0控制寄存器控制寄存器 sbitsbit sm0_0 = scon07; /

18、uart0 sm0_0 = scon07; /uart0工作方式设定工作方式设定 sbitsbit sm1_0 = scon06; /uart0 sm1_0 = scon06; /uart0工作方式设定工作方式设定 sbitsbit sm2_0 = scon05; /uart0 sm2_0 = scon05; /uart0的的sm2sm2设定设定 sbitsbit ren_0 = scon04; / ren_0 = scon04; /接收允许位接收允许位 sbitsbit tb8_0 = scon03; / tb8_0 = scon03; /发送数据的第九位发送数据的第九位 sbitsbit

19、rb8_0 = scon02; / rb8_0 = scon02; /接收数据的第九位接收数据的第九位 sbitsbit ti_0 = scon01; ti_0 = scon01; / /发送中断标志发送中断标志 sbitsbit ri_0 = scon00; ri_0 = scon00; /接收中断标志接收中断标志sfrsfr sbuf0 = 0 x99; sbuf0 = 0 x99; /串口串口0 0数据缓冲器数据缓冲器sfrsfr sbuf = 0 x99; sbuf = 0 x99; /串口数据缓冲器串口数据缓冲器版权所有版权所有 http:/sfrsfr spicon = 0 x9a

20、; spicon = 0 x9a; /spi/spi控制寄存器控制寄存器sfrsfr i2ccon = 0 x9a; i2ccon = 0 x9a; /i2c/i2c控制器控制器sfrsfr spidata = 0 x9b; spidata = 0 x9b; /spi/spi数据寄存器数据寄存器sfrsfr i2cdata = 0 x9b; i2cdata = 0 x9b; /i2c/i2c数据寄存器数据寄存器sfrsfr spircon = 0 x9c; spircon = 0 x9c; /spi/spi接收控制寄存器接收控制寄存器sfrsfr i2ccmen = 0 x9c; i2ccme

21、n = 0 x9c; /i2c /i2c控制寄存器控制寄存器sfrsfr spitcon = 0 x9d; spitcon = 0 x9d; /spi/spi发送控制寄存器发送控制寄存器sfrsfr i2cstat = 0 x9d; i2cstat = 0 x9d; /i2c/i2c状态寄存器状态寄存器sfrsfr spistart = 0 x9e; /spi spistart = 0 x9e; /spi缓冲器起始地址缓冲器起始地址sfrsfr spiend = 0 x9f; /spi spiend = 0 x9f; /spi缓冲器结束地址缓冲器结束地址sfrsfr p2 = 0 xa0; /

22、p2 p2 = 0 xa0; /p2口寄存器口寄存器sfrsfr pwmcon = 0 xa1; /pwm pwmcon = 0 xa1; /pwm控制寄存器控制寄存器sfrsfr pwmlow = 0 xa2; /pwm pwmlow = 0 xa2; /pwm低字节低字节sfrsfr tonelow = 0 xa2; / tonelow = 0 xa2; /音调低字节音调低字节sfrsfr pwmhi = 0 xa3; /pwm pwmhi = 0 xa3; /pwm高字节高字节sfrsfr tonehi = 0 xa3; / tonehi = 0 xa3; /音调高字节音调高字节sfrs

23、fr pai = 0 xa5; / pai = 0 xa5; /辅助中断挂起寄存器辅助中断挂起寄存器sfrsfr aie = 0 xa6; / aie = 0 xa6; /辅助中断允许寄存器辅助中断允许寄存器sfrsfr aistat = 0 xa7; / aistat = 0 xa7; /辅助中断状态寄存器辅助中断状态寄存器sfrsfr ie = 0 xa8; / ie = 0 xa8; /中断允许寄存器中断允许寄存器 sbitsbit ea = ie7; / ea = ie7; /总中断允许位总中断允许位 sbitsbit es = ie4; es = ie4; /串行中断允许位串行中断允

24、许位 sbitsbit et1 = ie3; et1 = ie3; /定时器定时器1 1溢出中断允许位溢出中断允许位 sbitsbit ex1 = ie2; ex1 = ie2; /外部中断外部中断1 1允许位允许位 sbitsbit et0 = ie1; et0 = ie1; /定时器定时器0 0溢出中断允许位溢出中断允许位 sbitsbit ex0 = ie0; ex0 = ie0; /外部中断外部中断0 0允许位允许位版权所有版权所有 http:/sfrsfr bpcon = 0 xa9; / bpcon = 0 xa9; /断点控制寄存器断点控制寄存器sfrsfr bpl = 0 xa

25、a; / bpl = 0 xaa; /断点低字节地址断点低字节地址sfrsfr bph = 0 xab; / bph = 0 xab; /断点高字节地址断点高字节地址sfrsfr p0ddrl = 0 xac; /p0 p0ddrl = 0 xac; /p0口数据流向寄存器低字节口数据流向寄存器低字节sfrsfr p0ddrh = 0 xad; p0ddrh = 0 xad; /p0/p0口数据流向寄存器高字节口数据流向寄存器高字节sfrsfr p1ddrl = 0 xae; /p1 p1ddrl = 0 xae; /p1口数据流向寄存器低字节口数据流向寄存器低字节sfrsfr p1ddrh

26、= 0 xaf; /p1 p1ddrh = 0 xaf; /p1口数据流向寄存器高字节口数据流向寄存器高字节sfrsfr p3 = 0 xb0; /p3 p3 = 0 xb0; /p3口寄存器口寄存器 sbitsbit rd = p37; rd = p37; / /外部数据存储器读选通外部数据存储器读选通 sbitsbit wr = p36; wr = p36; / /外部数据存储器写选通外部数据存储器写选通 sbitsbit t1 = p35; t1 = p35; /定时器定时器1 1外部输入外部输入 sbitsbit t0 = p34; / t0 = p34; /定时器定时器0 0外部输入

27、外部输入 sbitsbit int1 = p33; / int1 = p33; /外部中断外部中断1 1 sbitsbit int0 = p32; / int0 = p32; /外部中断外部中断0 0 sbitsbit txd = p31; / txd = p31; /串行输入通道串行输入通道 sbitsbit rxd = p30; / rxd = p30; /串行输出通道串行输出通道sfrsfr p2ddrl = 0 xb1; /p2 p2ddrl = 0 xb1; /p2口数据流向寄存器低字节口数据流向寄存器低字节sfrsfr p2ddrh = 0 xb2; /p2 p2ddrh = 0

28、xb2; /p2口数据流向寄存器高字节口数据流向寄存器高字节sfrsfr p3ddrl = 0 xb3; /p3 p3ddrl = 0 xb3; /p3口数据流向寄存器低字节口数据流向寄存器低字节sfrsfr p3ddrh = 0 xb4; /p3 p3ddrh = 0 xb4; /p3口数据流向寄存器高字节口数据流向寄存器高字节sfrsfr dacl = 0 xb5; /dac dacl = 0 xb5; /dac数据低字节数据低字节sfrsfr dach = 0 xb6; /dac dach = 0 xb6; /dac数据高字节数据高字节sfrsfr daccon = 0 xb7; /da

29、c daccon = 0 xb7; /dac控制寄存器控制寄存器 / /实际应为实际应为dacseldacselsfrsfr ip = 0 xb8; / ip = 0 xb8; /中断优先级寄存器中断优先级寄存器 sbitsbit ps = ip4; / ps = ip4; /决定串行中断优先级决定串行中断优先级 sbitsbit pt1 = ip3; / pt1 = ip3; /决定定时器决定定时器1 1中断优先级中断优先级 sbitsbit px1 = ip2; / px1 = ip2; /决定外部中断决定外部中断1 1优先级优先级 sbitsbit pt0 = ip1; / pt0 =

30、ip1; /决定定时器决定定时器0 0中断优先级中断优先级 sbitsbit px0 = ip0; / px0 = ip0; /决定外部中断决定外部中断0 0优先级优先级版权所有版权所有 http:/sfrsfr scon1 = 0 xc0; / scon1 = 0 xc0; /串口串口1 1控制寄存器控制寄存器 sbitsbit sm0_1 = scon17; sm0_1 = scon17; /uart1/uart1工作方式设定工作方式设定 sbitsbit sm1_1 = scon16; /uart1 sm1_1 = scon16; /uart1工作方式设定工作方式设定 sbitsbit

31、sm2_1 = scon15; /uart1 sm2_1 = scon15; /uart1的的sm2sm2设定设定 sbitsbit ren_1 = scon14; / ren_1 = scon14; /接收允许位接收允许位 sbitsbit tb8_1 = scon13; / tb8_1 = scon13; /发送数据的第九位发送数据的第九位 sbitsbit rb8_1 = scon12; / rb8_1 = scon12; /接收数据的第九位接收数据的第九位 sbitsbit ti_1 = scon11; / ti_1 = scon11; /发送中断标志发送中断标志 sbitsbit r

32、i_1 = scon10; / ri_1 = scon10; /接收中断标志接收中断标志sfrsfr sbuf1 = 0 xc1; / sbuf1 = 0 xc1; /串口串口1 1数据缓冲器数据缓冲器sfrsfr ewu = 0 xc6; ewu = 0 xc6; /空闲模式唤醒允许寄存器空闲模式唤醒允许寄存器sfrsfr t2con = 0 xc8; t2con = 0 xc8; /定时器定时器2 2控制寄存器控制寄存器 sbitsbit tf2 = t2con7; tf2 = t2con7; /定时器定时器2 2溢出标志位溢出标志位 sbitsbit exf2 = t2con6; / e

33、xf2 = t2con6; /定时器定时器2 2外部中断标志位外部中断标志位 sbitsbit rclk = t2con5; / rclk = t2con5; /接收时钟标志位接收时钟标志位 sbitsbit tclk = t2con4; / tclk = t2con4; /发送时钟标志位发送时钟标志位 sbitsbit exen2 = t2con3; / exen2 = t2con3; /定时器定时器2 2捕捉捕捉/ /重载允许位重载允许位 sbitsbit tr2 = t2con2; / tr2 = t2con2; /定时器定时器2 2运行控制位运行控制位 sbitsbit c_t2 =

34、t2con1; /t2 c_t2 = t2con1; /t2定时定时/ /计数选择位计数选择位 sbitsbit cp_rl2 = t2con0; / cp_rl2 = t2con0; /捕捉捕捉/ /重载选择位重载选择位sfrsfr rcap2l = 0 xca; / rcap2l = 0 xca; /定时器定时器2 2捕捉控制寄存器低字节捕捉控制寄存器低字节sfrsfr rcap2h = 0 xcb; / rcap2h = 0 xcb; /定时器定时器2 2捕捉控制寄存器高字节捕捉控制寄存器高字节sfrsfr tl2 = 0 xcc; / tl2 = 0 xcc; /定时器定时器2 2的低

35、字节的低字节sfrsfr th2 = 0 xcd; / th2 = 0 xcd; /定时器定时器2 2的高字节的高字节版权所有版权所有 http:/sfrsfr psw = 0 xd0; / psw = 0 xd0; /程序状态字寄存器程序状态字寄存器 sbitsbit cy = psw7; cy = psw7; /进位标志位进位标志位 sbitsbit ac = psw6; / ac = psw6; /辅助进位标志位辅助进位标志位 sbitsbit f0 = psw5; / f0 = psw5; /用户标志位用户标志位 sbitsbit rs1 = psw4; / rs1 = psw4; /

36、工作寄存器组选择控制位工作寄存器组选择控制位 sbitsbit rs0 = psw3; / rs0 = psw3; /工作寄存器组选择控制位工作寄存器组选择控制位 sbitsbit ov = psw2; / ov = psw2; /溢出标志位溢出标志位 sbitsbit p = psw0; / p = psw0; /奇偶标志位奇偶标志位sfrsfr ocl = 0 xd1; /adc ocl = 0 xd1; /adc失调校准寄存器低字节失调校准寄存器低字节sfrsfr ocm = 0 xd2; ocm = 0 xd2; /adc/adc失调校准寄存器中间字节失调校准寄存器中间字节sfrsfr

37、 och = 0 xd3; och = 0 xd3; /adc/adc失调校准寄存器高字节失调校准寄存器高字节sfrsfr gcl = 0 xd4; gcl = 0 xd4; /adc/adc增益校准寄存器低字节增益校准寄存器低字节sfrsfr gcm = 0 xd5; gcm = 0 xd5; /adc/adc增益校准寄存器中间字节增益校准寄存器中间字节sfrsfr gch = 0 xd6; gch = 0 xd6; /adc/adc增益校准寄存器高字节增益校准寄存器高字节sfrsfr admux = 0 xd7; admux = 0 xd7; /adc/adc多路开关寄存器多路开关寄存器s

38、frsfr eicon = 0 xd8; / eicon = 0 xd8; /中断允许控制寄存器中断允许控制寄存器 sbitsbit smod1 = eicon7; smod1 = eicon7; /串口串口1 1模式模式 sbitsbit eai = eicon5; / eai = eicon5; /辅助中断使能辅助中断使能 sbitsbit ai = eicon4; / ai = eicon4; /辅助中断标志辅助中断标志 sbitsbit wdti = eicon3; / wdti = eicon3; /看门狗中断标志看门狗中断标志sfrsfr adresl = 0 xd9; /adc

39、adresl = 0 xd9; /adc转换结果寄存器低字节转换结果寄存器低字节sfrsfr adresm = 0 xda; adresm = 0 xda; /adc/adc转换结果寄存器中间字节转换结果寄存器中间字节sfrsfr adresh = 0 xdb; adresh = 0 xdb; /adc/adc转换结果寄存器高字节转换结果寄存器高字节sfrsfr adcon0 = 0 xdc; adcon0 = 0 xdc; /adc/adc控制寄存器控制寄存器0 0sfrsfr adcon1 = 0 xdd; adcon1 = 0 xdd; /adc/adc控制寄存器控制寄存器1 1sfrs

40、fr adcon2 = 0 xde; adcon2 = 0 xde; /adc/adc控制寄存器控制寄存器2 2sfrsfr adcon3 = 0 xdf; adcon3 = 0 xdf; /adc/adc控制寄存器控制寄存器3 3版权所有版权所有 http:/sfrsfr acc = 0 xe0; / acc = 0 xe0; /累加器累加器sfrsfr sscon = 0 xe1; sscon = 0 xe1; /求和求和/ /移位寄存器控制寄存器移位寄存器控制寄存器sfrsfr sumr0 = 0 xe2; sumr0 = 0 xe2; /求和寄存器求和寄存器0 0sfrsfr sumr

41、1 = 0 xe3; sumr1 = 0 xe3; /求和寄存器求和寄存器1 1sfrsfr sumr2 = 0 xe4; sumr2 = 0 xe4; /求和寄存器求和寄存器2 2sfrsfr sumr3 = 0 xe5; sumr3 = 0 xe5; /求和寄存器求和寄存器3 3sfrsfr odac = 0 xe6; odac = 0 xe6; /dac/dac失调寄存器失调寄存器sfrsfr lvdcon = 0 xe7; lvdcon = 0 xe7; /低电压监测控制寄存器低电压监测控制寄存器sfrsfr eie = 0 xe8; eie = 0 xe8; /扩展中断允许寄存器扩展

42、中断允许寄存器 sbitsbit ewdi = eie4; ewdi = eie4; / /看门够中断使能看门够中断使能 sbitsbit ex5 = eie3; / ex5 = eie3; /外部中断外部中断5 5使能使能 sbitsbit ex4 = eie2; / ex4 = eie2; /外部中断外部中断4 4使能使能 sbitsbit ex3 = eie1; / ex3 = eie1; /外部中断外部中断3 3使能使能 sbitsbit ex2 = eie0; / ex2 = eie0; /外部中断外部中断2 2使能使能sfrsfr hwpc0 = 0 xe9; hwpc0 = 0

43、xe9; /硬件配置寄存器硬件配置寄存器0 0sfrsfr hwpc1 = 0 xea; hwpc1 = 0 xea; /硬件配置寄存器硬件配置寄存器1 1sfrsfr fmcon = 0 xee; fmcon = 0 xee; /闪存控制寄存器闪存控制寄存器sfrsfr ftcon = 0 xef; ftcon = 0 xef; /闪存定时控制寄存器闪存定时控制寄存器sfrsfr b = 0 xf0; b = 0 xf0; /b /b 寄存器寄存器sfrsfr pdcon = 0 xf1; pdcon = 0 xf1; /掉电控制寄存器掉电控制寄存器sfrsfr pasel = 0 xf2;

44、 pasel = 0 xf2; /psen/ale/psen/ale控制寄存器控制寄存器sfrsfr aclk = 0 xf6; / aclk = 0 xf6; /模拟时钟寄存器模拟时钟寄存器sfrsfr srst = 0 xf7; / srst = 0 xf7; /系统复位寄存器系统复位寄存器版权所有版权所有 http:/sfrsfr eip = 0 xf8; / eip = 0 xf8; /扩展中断优先级寄存器扩展中断优先级寄存器sfrsfr secint = 0 xf9; / secint = 0 xf9; /秒定时器中断寄存器秒定时器中断寄存器sfrsfr msint = 0 xfa;

45、 msint = 0 xfa; /毫秒定时毫秒定时器中断器中断寄存器寄存器sfrsfr usec = 0 xfb; usec = 0 xfb; /微秒寄存器微秒寄存器sfrsfr msecl = 0 xfc; msecl = 0 xfc; /毫秒寄存器低字节毫秒寄存器低字节sfrsfr msech = 0 xfd; msech = 0 xfd; /毫秒寄存器高字节毫秒寄存器高字节sfrsfr hmsec = 0 xfe; hmsec = 0 xfe; /百毫秒寄存器百毫秒寄存器。/注:原文件中为注:原文件中为hmsechhmsech,应修改为,应修改为hmsechmsec,否则,编译时会提示找

46、不到,否则,编译时会提示找不到hmsechmsecsfrsfr wdtcon = 0 xff; wdtcon = 0 xff; /看门狗定时器寄存器看门狗定时器寄存器/ /* * 16 16位寄存器位寄存器 * */ /sfr16 pwm = 0 xa2; sfr16 pwm = 0 xa2; /pwm/pwm寄存器寄存器sfr16 p0ddr = 0 xac; /p0sfr16 p0ddr = 0 xac; /p0口数据流向寄存器口数据流向寄存器sfr16 p1ddr = 0 xae; /p1sfr16 p1ddr = 0 xae; /p1口数据流向寄存器口数据流向寄存器sfr16 p2dd

47、r = 0 xb1; /p2sfr16 p2ddr = 0 xb1; /p2口数据流向寄存器口数据流向寄存器sfr16 p3ddr = 0 xb3; /p3sfr16 p3ddr = 0 xb3; /p3口数据流向寄存器口数据流向寄存器sfr16 rcap2= 0 xca; /sfr16 rcap2= 0 xca; /定时定时器器捕捉寄存器捕捉寄存器sfr16 thl2 = 0 xcc; /sfr16 thl2 = 0 xcc; /定时器定时器2 2数据寄存器数据寄存器sfr16 decimation = 0 xde; sfr16 decimation = 0 xde; /adc /adc抽取

48、寄存器抽取寄存器sfr16 msec = 0 xfc; sfr16 msec = 0 xfc; / /毫秒寄存器毫秒寄存器# #endifendif版权所有版权所有 http:/ ;-;-; ti msc1210 processor declarations; ti msc1210 processor declarations; copyright (c) ; copyright (c) raisonanceraisonance sa, 1987-2002 sa, 1987-2002;-;-$nomod51$nomod51$save$save$nolist$nolist; byte regis

49、ters; byte registersp0 data 080h ;standard 8051p0 data 080h ;standard 8051sp data 081h ;standard 8051sp data 081h ;standard 8051dpl data 082h ;standard 8051dpl data 082h ;standard 8051dph data 083h ;standard 8051dph data 083h ;standard 8051dpl1 data 084hdpl1 data 084hdph1 data 085hdph1 data 085hdps

50、data 086hdps data 086hpcon data 087h ;standard 8051pcon data 087h ;standard 8051tcon data 088h ;standard 8051tcon data 088h ;standard 8051tmod data 089h ;standard 8051tmod data 089h ;standard 8051tl0 data 08ah ;standard 8051tl0 data 08ah ;standard 8051tl1 data 08bh ;standard 8051tl1 data 08bh ;stand

51、ard 8051th0 data 08ch ;standard 8051th0 data 08ch ;standard 8051th1 data 08dh ;standard 8051th1 data 08dh ;standard 8051ckcon data 08ehckcon data 08ehmws mws data 08fh data 08fhp1 data 090h ;standard 8051p1 data 090h ;standard 8051版权所有版权所有 http:/exif data 091hexif data 091hmpage data 092hmpage data

52、092hcaddr data 093hcaddr data 093hcdata data 094hcdata data 094hmcon data 095hmcon data 095hscon data 098h ;standard 8051scon data 098h ;standard 8051sbuf data 099h ;standard 8051sbuf data 099h ;standard 8051spicon data 09ahspicon data 09ahi2ccr data 09ahi2ccr data 09ahspidata data 09bhspidata data

53、09bhi2cdata data 09bhi2cdata data 09bhspircon data 09chspircon data 09chi2ccon data 09chi2ccon data 09chspitcon data 09dhspitcon data 09dhspistart data 09ehspistart data 09ehspiend data 09fhspiend data 09fhp2 data 0a0h ;standard 8051p2 data 0a0h ;standard 8051pwmcon data 0a1hpwmcon data 0a1hpwmlow d

54、ata 0a2hpwmlow data 0a2htonelow tonelow data data 0a2h0a2hpwmhi data 0a3hpwmhi data 0a3htonehi tonehi data 0a3hdata 0a3hpai data 0a5hpai data 0a5haie data 0a6haie data 0a6haistat data 0a7haistat data 0a7hie data 0a8h ;standard 8051ie data 0a8h ;standard 8051版权所有版权所有 http:/bpcon data 0a9hbpcon data 0

55、a9hbpl data 0aahbpl data 0aahbph data 0abhbph data 0abhp0ddrl data 0achp0ddrl data 0achp0ddrh data 0adhp0ddrh data 0adhp1ddrl data 0aehp1ddrl data 0aehp1ddrh data 0afhp1ddrh data 0afhp3 data 0b0h ;standard 8051p3 data 0b0h ;standard 8051p2ddrl data 0b1hp2ddrl data 0b1hp2ddrh data 0b2hp2ddrh data 0b2

56、hp3ddrl data 0b3hp3ddrl data 0b3hp3ddrh data 0b4hp3ddrh data 0b4hdacldacl datadata 0b5h0b5hdachdach datadata 0b6h0b6hdaccon daccon data 0b7hdata 0b7hip data 0b8h ;standard 8051ip data 0b8h ;standard 8051scon1 scon1 data 0c0hdata 0c0hsbuf1 sbuf1 data 0c1h data 0c1hewu data 0c6hewu data 0c6hsysclksysc

57、lk datadata 0c7h0c7ht2con t2con data 0c8h ;8052 registerdata 0c8h ;8052 registerrcap2l rcap2l data 0cah ;8052 registerdata 0cah ;8052 registerrcap2h rcap2h data 0cbh ;8052 registerdata 0cbh ;8052 registertl2 data 0cch ;8052 registertl2 data 0cch ;8052 registerth2 data 0cdh ;8052 registerth2 data 0cd

58、h ;8052 registerpsw data 0d0h ;standard 8051psw data 0d0h ;standard 8051版权所有版权所有 http:/ocl data 0d1hocl data 0d1hocm data 0d2hocm data 0d2hoch data 0d3hoch data 0d3hgcl data 0d4hgcl data 0d4hgcm data 0d5hgcm data 0d5hgch data 0d6hgch data 0d6hadmux admux data 0d7hdata 0d7heicon eicon data 0d8hdata 0

59、d8hadresl data 0d9hadresl data 0d9hadresm data 0dahadresm data 0dahadresh data 0dbhadresh data 0dbhadcon0 data 0dchadcon0 data 0dchadcon1 data 0ddhadcon1 data 0ddhadcon2 data 0dehadcon2 data 0dehadcon3 data 0dfhadcon3 data 0dfhacc data 0e0h ;standard 8051acc data 0e0h ;standard 8051sscon sscon data

60、0e1hdata 0e1hsumr0 sumr0 data 0e2hdata 0e2hsumr1 sumr1 data 0e3hdata 0e3hsumr2 sumr2 data 0e4hdata 0e4hsumr3 sumr3 data 0e5hdata 0e5hodac odac data 0e6hdata 0e6hlvdcon data 0e7hlvdcon data 0e7heie data 0e8heie data 0e8hhwpc0 hwpc0 data 0e9hdata 0e9hhwpc1 hwpc1 data 0eahdata 0eahhwid hwid data 0ebhda

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论