找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 120|回复: 9
打印 上一主题 下一主题
收起左侧

stc8G.H头文件编译用需要提供一下,谢谢!

[复制链接]
跳转到指定楼层
楼主
ID:595237 发表于 2025-9-8 09:46 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
stc8G.H头文件编译用需要提供一下,谢谢!

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 顶 踩
回复

使用道具 举报

沙发
ID:595237 发表于 2025-9-8 09:55 | 只看该作者
用STC15W可以仿真stc8G的吗?

新手不懂。
回复

使用道具 举报

板凳
ID:1133081 发表于 2025-9-8 10:48 | 只看该作者
  1. #ifndef __STC8G_H__
  2. #define __STC8G_H__

  3. /////////////////////////////////////////////////

  4. //包含本头文件后,不用另外再包含"REG51.H"

  5. #include "stdio.h"
  6. #include "intrins.h"

  7. /////////////////////////////////////////////////

  8. sfr         P0          =           0x80;
  9.     sbit    P00         =           P0^0;
  10.     sbit    P01         =           P0^1;
  11.     sbit    P02         =           P0^2;
  12.     sbit    P03         =           P0^3;
  13.     sbit    P04         =           P0^4;
  14.     sbit    P05         =           P0^5;
  15.     sbit    P06         =           P0^6;
  16.     sbit    P07         =           P0^7;

  17. sfr         SP          =           0x81;
  18. sfr         DPL         =           0x82;
  19. sfr         DPH         =           0x83;
  20. sfr         S4CON       =           0x84;
  21. sfr         S4BUF       =           0x85;
  22. sfr         PCON        =           0x87;

  23. sfr         TCON        =           0x88;
  24.     sbit    TF1         =           TCON^7;
  25.     sbit    TR1         =           TCON^6;
  26.     sbit    TF0         =           TCON^5;
  27.     sbit    TR0         =           TCON^4;
  28.     sbit    IE1         =           TCON^3;
  29.     sbit    IT1         =           TCON^2;
  30.     sbit    IE0         =           TCON^1;
  31.     sbit    IT0         =           TCON^0;

  32. sfr         TMOD        =           0x89;
  33. sfr         TL0         =           0x8A;
  34. sfr         TL1         =           0x8B;
  35. sfr         TH0         =           0x8C;
  36. sfr         TH1         =           0x8D;
  37. sfr         AUXR        =           0x8E;
  38. sfr         INTCLKO     =           0x8F;

  39. sfr         P1          =           0x90;
  40.     sbit    P10         =           P1^0;
  41.     sbit    P11         =           P1^1;
  42.     sbit    P12         =           P1^2;
  43.     sbit    P13         =           P1^3;
  44.     sbit    P14         =           P1^4;
  45.     sbit    P15         =           P1^5;
  46.     sbit    P16         =           P1^6;
  47.     sbit    P17         =           P1^7;

  48. sfr         P1M1        =           0x91;
  49. sfr         P1M0        =           0x92;
  50. sfr         P0M1        =           0x93;
  51. sfr         P0M0        =           0x94;
  52. sfr         P2M1        =           0x95;
  53. sfr         P2M0        =           0x96;

  54. sfr         SCON        =           0x98;
  55.     sbit    SM0         =           SCON^7;
  56.     sbit    SM1         =           SCON^6;
  57.     sbit    SM2         =           SCON^5;
  58.     sbit    REN         =           SCON^4;
  59.     sbit    TB8         =           SCON^3;
  60.     sbit    RB8         =           SCON^2;
  61.     sbit    TI          =           SCON^1;
  62.     sbit    RI          =           SCON^0;

  63. sfr         SBUF        =           0x99;
  64. sfr         S2CON       =           0x9A;
  65. sfr         S2BUF       =           0x9B;
  66. sfr         IRCBAND     =           0x9D;
  67. sfr         LIRTRIM     =           0x9E;
  68. sfr         IRTRIM      =           0x9F;

  69. sfr         P2          =           0xA0;
  70.     sbit    P20         =           P2^0;
  71.     sbit    P21         =           P2^1;
  72.     sbit    P22         =           P2^2;
  73.     sbit    P23         =           P2^3;
  74.     sbit    P24         =           P2^4;
  75.     sbit    P25         =           P2^5;
  76.     sbit    P26         =           P2^6;
  77.     sbit    P27         =           P2^7;

  78. sfr         P_SW1       =           0xA2;

  79. sfr         IE          =           0xA8;
  80.     sbit    EA          =           IE^7;
  81.     sbit    ELVD        =           IE^6;
  82.     sbit    EADC        =           IE^5;
  83.     sbit    ES          =           IE^4;
  84.     sbit    ET1         =           IE^3;
  85.     sbit    EX1         =           IE^2;
  86.     sbit    ET0         =           IE^1;
  87.     sbit    EX0         =           IE^0;

  88. sfr         SADDR       =           0xA9;
  89. sfr         WKTCL       =           0xAA;
  90. sfr         WKTCH       =           0xAB;
  91. sfr         S3CON       =           0xAC;
  92. sfr         S3BUF       =           0xAD;
  93. sfr         TA          =           0xAE;
  94. sfr         IE2         =           0xAF;

  95. sfr         P3          =           0xB0;
  96.     sbit    P30         =           P3^0;
  97.     sbit    P31         =           P3^1;
  98.     sbit    P32         =           P3^2;
  99.     sbit    P33         =           P3^3;
  100.     sbit    P34         =           P3^4;
  101.     sbit    P35         =           P3^5;
  102.     sbit    P36         =           P3^6;
  103.     sbit    P37         =           P3^7;

  104.     sbit    RD          =           P3^7;
  105.     sbit    WR          =           P3^6;
  106.     sbit    T1          =           P3^5;
  107.     sbit    T0          =           P3^4;
  108.     sbit    INT1        =           P3^3;
  109.     sbit    INT0        =           P3^2;
  110.     sbit    TXD         =           P3^1;
  111.     sbit    RXD         =           P3^0;

  112. sfr         P3M1        =           0xB1;
  113. sfr         P3M0        =           0xB2;
  114. sfr         P4M1        =           0xB3;
  115. sfr         P4M0        =           0xB4;
  116. sfr         IP2         =           0xB5;
  117. sfr         IP2H        =           0xB6;
  118. sfr         IPH         =           0xB7;

  119. sfr         IP          =           0xB8;
  120.     sbit    PPCA        =           IP^7;
  121.     sbit    PLVD        =           IP^6;
  122.     sbit    PADC        =           IP^5;
  123.     sbit    PS          =           IP^4;
  124.     sbit    PT1         =           IP^3;
  125.     sbit    PX1         =           IP^2;
  126.     sbit    PT0         =           IP^1;
  127.     sbit    PX0         =           IP^0;

  128. sfr         SADEN       =           0xB9;
  129. sfr         P_SW2       =           0xBA;
  130. sfr         ADC_CONTR   =           0xBC;
  131. sfr         ADC_RES     =           0xBD;
  132. sfr         ADC_RESL    =           0xBE;

  133. sfr         P4          =           0xC0;
  134.     sbit    P40         =           P4^0;
  135.     sbit    P41         =           P4^1;
  136.     sbit    P42         =           P4^2;
  137.     sbit    P43         =           P4^3;
  138.     sbit    P44         =           P4^4;
  139.     sbit    P45         =           P4^5;
  140.     sbit    P46         =           P4^6;
  141.     sbit    P47         =           P4^7;

  142. sfr         WDT_CONTR   =           0xC1;
  143. sfr         IAP_DATA    =           0xC2;
  144. sfr         IAP_ADDRH   =           0xC3;
  145. sfr         IAP_ADDRL   =           0xC4;
  146. sfr         IAP_CMD     =           0xC5;
  147. sfr         IAP_TRIG    =           0xC6;
  148. sfr         IAP_CONTR   =           0xC7;

  149. sfr         P5          =           0xC8;
  150.     sbit    P50         =           P5^0;
  151.     sbit    P51         =           P5^1;
  152.     sbit    P52         =           P5^2;
  153.     sbit    P53         =           P5^3;
  154.     sbit    P54         =           P5^4;
  155.     sbit    P55         =           P5^5;
  156.     sbit    P56         =           P5^6;
  157.     sbit    P57         =           P5^7;

  158. sfr         P5M1        =           0xC9;
  159. sfr         P5M0        =           0xCA;
  160. sfr         P6M1        =           0xcb;
  161. sfr         P6M0        =           0xcc;
  162. sfr         SPSTAT      =           0xCD;
  163. sfr         SPCTL       =           0xCE;
  164. sfr         SPDAT       =           0xCF;

  165. sfr         PSW         =           0xD0;
  166.     sbit    CY          =           PSW^7;
  167.     sbit    AC          =           PSW^6;
  168.     sbit    F0          =           PSW^5;
  169.     sbit    RS1         =           PSW^4;
  170.     sbit    RS0         =           PSW^3;
  171.     sbit    OV          =           PSW^2;
  172.     sbit    F1          =           PSW^1;
  173.     sbit    P           =           PSW^0;

  174. sfr         T4T3M       =           0xD1;
  175. sfr         T4H         =           0xD2;
  176. sfr         T4L         =           0xD3;
  177. sfr         T3H         =           0xD4;
  178. sfr         T3L         =           0xD5;
  179. sfr         T2H         =           0xD6;
  180. sfr         T2L         =           0xD7;

  181. sfr         T3T4M       =           0xD1;
  182. sfr         TH4         =           0xD2;
  183. sfr         TL4         =           0xD3;
  184. sfr         TH3         =           0xD4;
  185. sfr         TL3         =           0xD5;
  186. sfr         TH2         =           0xD6;
  187. sfr         TL2         =           0xD7;

  188. sfr         CCON        =           0xD8;
  189.     sbit    CF          =           CCON^7;
  190.     sbit    CR          =           CCON^6;
  191.     sbit    CCF2        =           CCON^2;
  192.     sbit    CCF1        =           CCON^1;
  193.     sbit    CCF0        =           CCON^0;

  194. sfr         CMOD        =           0xD9;
  195. sfr         CCAPM0      =           0xDA;
  196. sfr         CCAPM1      =           0xDB;
  197. sfr         CCAPM2      =           0xDC;
  198. sfr         ADCCFG      =           0xDE;
  199. sfr         IP3         =           0xDF;

  200. sfr         ACC         =           0xE0;
  201.     sbit    ACC0        =           ACC^0;
  202.     sbit    ACC1        =           ACC^1;
  203.     sbit    ACC2        =           ACC^2;
  204.     sbit    ACC3        =           ACC^3;
  205.     sbit    ACC4        =           ACC^4;
  206.     sbit    ACC5        =           ACC^5;
  207.     sbit    ACC6        =           ACC^6;
  208.     sbit    ACC7        =           ACC^7;

  209. sfr         P7M1        =           0xe1;
  210. sfr         P7M0        =           0xe2;
  211. sfr         DPS         =           0xE3;
  212. sfr         DPL1        =           0xE4;
  213. sfr         DPH1        =           0xE5;
  214. sfr         CMPCR1      =           0xE6;
  215. sfr         CMPCR2      =           0xE7;

  216. sfr         P6          =           0xe8;
  217.     sbit    P60         =           P6^0;
  218.     sbit    P61         =           P6^1;
  219.     sbit    P62         =           P6^2;
  220.     sbit    P63         =           P6^3;
  221.     sbit    P64         =           P6^4;
  222.     sbit    P65         =           P6^5;
  223.     sbit    P66         =           P6^6;
  224.     sbit    P67         =           P6^7;

  225. sfr         CL          =           0xE9;
  226. sfr         CCAP0L      =           0xEA;
  227. sfr         CCAP1L      =           0xEB;
  228. sfr         CCAP2L      =           0xEC;
  229. sfr         IP3H        =           0xEE;
  230. sfr         AUXINTIF    =           0xEF;

  231. sfr         B           =           0xF0;
  232.     sbit    B0          =           B^0;
  233.     sbit    B1          =           B^1;
  234.     sbit    B2          =           B^2;
  235.     sbit    B3          =           B^3;
  236.     sbit    B4          =           B^4;
  237.     sbit    B5          =           B^5;
  238.     sbit    B6          =           B^6;
  239.     sbit    B7          =           B^7;

  240. sfr         PWMSET      =           0xF1;
  241. sfr         PCA_PWM0    =           0xF2;
  242. sfr         PCA_PWM1    =           0xF3;
  243. sfr         PCA_PWM2    =           0xF4;
  244. sfr         IAP_TPS     =           0xF5;
  245. sfr         PWMCFG01    =           0xF6;
  246. sfr         PWMCFG23    =           0xF7;

  247. sfr         P7          =           0xf8;
  248.     sbit    P70         =           P7^0;
  249.     sbit    P71         =           P7^1;
  250.     sbit    P72         =           P7^2;
  251.     sbit    P73         =           P7^3;
  252.     sbit    P74         =           P7^4;
  253.     sbit    P75         =           P7^5;
  254.     sbit    P76         =           P7^6;
  255.     sbit    P77         =           P7^7;

  256. sfr         CH          =           0xF9;
  257. sfr         CCAP0H      =           0xFA;
  258. sfr         CCAP1H      =           0xFB;
  259. sfr         CCAP2H      =           0xFC;
  260. sfr         PWMCFG45    =           0xFE;
  261. sfr         RSTCFG      =           0xFF;

  262. //如下特殊功能寄存器位于扩展RAM区域
  263. //访问这些寄存器,需先将P_SW2的BIT7设置为1,才可正常读写

  264. /////////////////////////////////////////////////
  265. //FF00H-FFFFH
  266. /////////////////////////////////////////////////

  267. #define     PWM0C                   (*(unsigned int  volatile xdata *)0xff00)
  268. #define     PWM0CH                  (*(unsigned char volatile xdata *)0xff00)
  269. #define     PWM0CL                  (*(unsigned char volatile xdata *)0xff01)
  270. #define     PWM0CKS                 (*(unsigned char volatile xdata *)0xff02)
  271. #define     PWM0TADC                (*(unsigned int  volatile xdata *)0xff03)
  272. #define     PWM0TADCH               (*(unsigned char volatile xdata *)0xff03)
  273. #define     PWM0TADCL               (*(unsigned char volatile xdata *)0xff04)
  274. #define     PWM0IF                  (*(unsigned char volatile xdata *)0xff05)
  275. #define     PWM0FDCR                (*(unsigned char volatile xdata *)0xff06)
  276. #define     PWM00T1                 (*(unsigned int  volatile xdata *)0xff10)
  277. #define     PWM00T1L                (*(unsigned char volatile xdata *)0xff11)
  278. #define     PWM00T2                 (*(unsigned int  volatile xdata *)0xff12)
  279. #define     PWM00T2H                (*(unsigned char volatile xdata *)0xff12)
  280. #define     PWM00T2L                (*(unsigned char volatile xdata *)0xff13)
  281. #define     PWM00CR                 (*(unsigned char volatile xdata *)0xff14)
  282. #define     PWM00HLD                (*(unsigned char volatile xdata *)0xff15)
  283. #define     PWM01T1                 (*(unsigned int  volatile xdata *)0xff18)
  284. #define     PWM01T1H                (*(unsigned char volatile xdata *)0xff18)
  285. #define     PWM01T1L                (*(unsigned char volatile xdata *)0xff19)
  286. #define     PWM01T2                 (*(unsigned int  volatile xdata *)0xff1a)
  287. #define     PWM01T2H                (*(unsigned char volatile xdata *)0xff1a)
  288. #define     PWM01T2L                (*(unsigned char volatile xdata *)0xff1b)
  289. #define     PWM01CR                 (*(unsigned char volatile xdata *)0xff1c)
  290. #define     PWM01HLD                (*(unsigned char volatile xdata *)0xff1d)
  291. #define     PWM02T1                 (*(unsigned int  volatile xdata *)0xff20)
  292. #define     PWM02T1H                (*(unsigned char volatile xdata *)0xff20)
  293. #define     PWM02T1L                (*(unsigned char volatile xdata *)0xff21)
  294. #define     PWM02T2                 (*(unsigned int  volatile xdata *)0xff22)
  295. #define     PWM02T2H                (*(unsigned char volatile xdata *)0xff22)
  296. #define     PWM02T2L                (*(unsigned char volatile xdata *)0xff23)
  297. #define     PWM02CR                 (*(unsigned char volatile xdata *)0xff24)
  298. #define     PWM02HLD                (*(unsigned char volatile xdata *)0xff25)
  299. #define     PWM03T1                 (*(unsigned int  volatile xdata *)0xff28)
  300. #define     PWM03T1H                (*(unsigned char volatile xdata *)0xff28)
  301. #define     PWM03T1L                (*(unsigned char volatile xdata *)0xff29)
  302. #define     PWM03T2                 (*(unsigned int  volatile xdata *)0xff2a)
  303. #define     PWM03T2H                (*(unsigned char volatile xdata *)0xff2a)
  304. #define     PWM03T2L                (*(unsigned char volatile xdata *)0xff2b)
  305. #define     PWM03CR                 (*(unsigned char volatile xdata *)0xff2c)
  306. #define     PWM03HLD                (*(unsigned char volatile xdata *)0xff2d)
  307. #define     PWM04T1                 (*(unsigned int  volatile xdata *)0xff30)
  308. #define     PWM04T1H                (*(unsigned char volatile xdata *)0xff30)
  309. #define     PWM04T1L                (*(unsigned char volatile xdata *)0xff31)
  310. #define     PWM04T2                 (*(unsigned int  volatile xdata *)0xff32)
  311. #define     PWM04T2H                (*(unsigned char volatile xdata *)0xff32)
  312. #define     PWM04T2L                (*(unsigned char volatile xdata *)0xff33)
  313. #define     PWM04CR                 (*(unsigned char volatile xdata *)0xff34)
  314. #define     PWM04HLD                (*(unsigned char volatile xdata *)0xff35)
  315. #define     PWM05T1                 (*(unsigned int  volatile xdata *)0xff38)
  316. #define     PWM05T1H                (*(unsigned char volatile xdata *)0xff38)
  317. #define     PWM05T1L                (*(unsigned char volatile xdata *)0xff39)
  318. #define     PWM05T2                 (*(unsigned int  volatile xdata *)0xff3a)
  319. #define     PWM05T2H                (*(unsigned char volatile xdata *)0xff3a)
  320. #define     PWM05T2L                (*(unsigned char volatile xdata *)0xff3b)
  321. #define     PWM05CR                 (*(unsigned char volatile xdata *)0xff3c)
  322. #define     PWM05HLD                (*(unsigned char volatile xdata *)0xff3d)
  323. #define     PWM06T1                 (*(unsigned int  volatile xdata *)0xff40)
  324. #define     PWM06T1H                (*(unsigned char volatile xdata *)0xff40)
  325. #define     PWM06T1L                (*(unsigned char volatile xdata *)0xff41)
  326. #define     PWM06T2                 (*(unsigned int  volatile xdata *)0xff42)
  327. #define     PWM06T2H                (*(unsigned char volatile xdata *)0xff42)
  328. #define     PWM06T2L                (*(unsigned char volatile xdata *)0xff43)
  329. #define     PWM06CR                 (*(unsigned char volatile xdata *)0xff44)
  330. #define     PWM06HLD                (*(unsigned char volatile xdata *)0xff45)
  331. #define     PWM07T1                 (*(unsigned int  volatile xdata *)0xff48)
  332. #define     PWM07T1H                (*(unsigned char volatile xdata *)0xff48)
  333. #define     PWM07T1L                (*(unsigned char volatile xdata *)0xff49)
  334. #define     PWM07T2                 (*(unsigned int  volatile xdata *)0xff4a)
  335. #define     PWM07T2H                (*(unsigned char volatile xdata *)0xff4a)
  336. #define     PWM07T2L                (*(unsigned char volatile xdata *)0xff4b)
  337. #define     PWM07CR                 (*(unsigned char volatile xdata *)0xff4c)
  338. #define     PWM07HLD                (*(unsigned char volatile xdata *)0xff4d)
  339. #define     PWM1C                   (*(unsigned int  volatile xdata *)0xff50)
  340. #define     PWM1CH                  (*(unsigned char volatile xdata *)0xff50)
  341. #define     PWM1CL                  (*(unsigned char volatile xdata *)0xff51)
  342. #define     PWM1CKS                 (*(unsigned char volatile xdata *)0xff52)
  343. #define     PWM1IF                  (*(unsigned char volatile xdata *)0xff55)
  344. #define     PWM1FDCR                (*(unsigned char volatile xdata *)0xff56)
  345. #define     PWM10T1                 (*(unsigned int  volatile xdata *)0xff60)
  346. #define     PWM10T1H                (*(unsigned char volatile xdata *)0xff60)
  347. #define     PWM10T1L                (*(unsigned char volatile xdata *)0xff61)
  348. #define     PWM10T2                 (*(unsigned int  volatile xdata *)0xff62)
  349. #define     PWM10T2H                (*(unsigned char volatile xdata *)0xff62)
  350. #define     PWM10T2L                (*(unsigned char volatile xdata *)0xff63)
  351. #define     PWM10CR                 (*(unsigned char volatile xdata *)0xff64)
  352. #define     PWM10HLD                (*(unsigned char volatile xdata *)0xff65)
  353. #define     PWM11T1                 (*(unsigned int  volatile xdata *)0xff68)
  354. #define     PWM11T1H                (*(unsigned char volatile xdata *)0xff68)
  355. #define     PWM11T1L                (*(unsigned char volatile xdata *)0xff69)
  356. #define     PWM11T2                 (*(unsigned int  volatile xdata *)0xff6a)
  357. #define     PWM11T2H                (*(unsigned char volatile xdata *)0xff6a)
  358. #define     PWM11T2L                (*(unsigned char volatile xdata *)0xff6b)
  359. #define     PWM11CR                 (*(unsigned char volatile xdata *)0xff6c)
  360. #define     PWM11HLD                (*(unsigned char volatile xdata *)0xff6d)
  361. #define     PWM12T1                 (*(unsigned int  volatile xdata *)0xff70)
  362. #define     PWM12T1H                (*(unsigned char volatile xdata *)0xff70)
  363. #define     PWM12T1L                (*(unsigned char volatile xdata *)0xff71)
  364. #define     PWM12T2                 (*(unsigned int  volatile xdata *)0xff72)
  365. #define     PWM12T2H                (*(unsigned char volatile xdata *)0xff72)
  366. #define     PWM12T2L                (*(unsigned char volatile xdata *)0xff73)
  367. #define     PWM12CR                 (*(unsigned char volatile xdata *)0xff74)
  368. #define     PWM12HLD                (*(unsigned char volatile xdata *)0xff75)
  369. #define     PWM13T1                 (*(unsigned int  volatile xdata *)0xff78)
  370. #define     PWM13T1H                (*(unsigned char volatile xdata *)0xff78)
  371. #define     PWM13T1L                (*(unsigned char volatile xdata *)0xff79)
  372. #define     PWM13T2                 (*(unsigned int  volatile xdata *)0xff7a)
  373. #define     PWM13T2H                (*(unsigned char volatile xdata *)0xff7a)
  374. #define     PWM13T2L                (*(unsigned char volatile xdata *)0xff7b)
  375. #define     PWM13CR                 (*(unsigned char volatile xdata *)0xff7c)
  376. #define     PWM13HLD                (*(unsigned char volatile xdata *)0xff7d)
  377. #define     PWM14T1                 (*(unsigned int  volatile xdata *)0xff80)
  378. #define     PWM14T1H                (*(unsigned char volatile xdata *)0xff80)
  379. #define     PWM14T1L                (*(unsigned char volatile xdata *)0xff81)
  380. #define     PWM14T2                 (*(unsigned int  volatile xdata *)0xff82)
  381. #define     PWM14T2H                (*(unsigned char volatile xdata *)0xff82)
  382. #define     PWM14T2L                (*(unsigned char volatile xdata *)0xff83)
  383. #define     PWM14CR                 (*(unsigned char volatile xdata *)0xff84)
  384. #define     PWM14HLD                (*(unsigned char volatile xdata *)0xff85)
  385. #define     PWM15T1                 (*(unsigned int  volatile xdata *)0xff88)
  386. #define     PWM15T1H                (*(unsigned char volatile xdata *)0xff88)
  387. #define     PWM15T1L                (*(unsigned char volatile xdata *)0xff89)
  388. #define     PWM15T2                 (*(unsigned int  volatile xdata *)0xff8a)
  389. #define     PWM15T2H                (*(unsigned char volatile xdata *)0xff8a)
  390. #define     PWM15T2L                (*(unsigned char volatile xdata *)0xff8b)
  391. #define     PWM15CR                 (*(unsigned char volatile xdata *)0xff8c)
  392. #define     PWM15HLD                (*(unsigned char volatile xdata *)0xff8d)
  393. #define     PWM16T1                 (*(unsigned int  volatile xdata *)0xff90)
  394. #define     PWM16T1H                (*(unsigned char volatile xdata *)0xff90)
  395. #define     PWM16T1L                (*(unsigned char volatile xdata *)0xff91)
  396. #define     PWM16T2                 (*(unsigned int  volatile xdata *)0xff92)
  397. #define     PWM16T2H                (*(unsigned char volatile xdata *)0xff92)
  398. #define     PWM16T2L                (*(unsigned char volatile xdata *)0xff93)
  399. #define     PWM16CR                 (*(unsigned char volatile xdata *)0xff94)
  400. #define     PWM16HLD                (*(unsigned char volatile xdata *)0xff95)
  401. #define     PWM17T1                 (*(unsigned int  volatile xdata *)0xff98)
  402. #define     PWM17T1H                (*(unsigned char volatile xdata *)0xff98)
  403. #define     PWM17T1L                (*(unsigned char volatile xdata *)0xff99)
  404. #define     PWM17T2                 (*(unsigned int  volatile xdata *)0xff9a)
  405. #define     PWM17T2H                (*(unsigned char volatile xdata *)0xff9a)
  406. #define     PWM17T2L                (*(unsigned char volatile xdata *)0xff9b)
  407. #define     PWM17CR                 (*(unsigned char volatile xdata *)0xff9c)
  408. #define     PWM17HLD                (*(unsigned char volatile xdata *)0xff9d)
  409. #define     PWM2C                   (*(unsigned int  volatile xdata *)0xffa0)
  410. #define     PWM2CH                  (*(unsigned char volatile xdata *)0xffa0)
  411. #define     PWM2CL                  (*(unsigned char volatile xdata *)0xffa1)
  412. #define     PWM2CKS                 (*(unsigned char volatile xdata *)0xffa2)
  413. #define     PWM2TADC                (*(unsigned int  volatile xdata *)0xffa3)
  414. #define     PWM2TADCH               (*(unsigned char volatile xdata *)0xffa3)
  415. #define     PWM2TADCL               (*(unsigned char volatile xdata *)0xffa4)
  416. #define     PWM2IF                  (*(unsigned char volatile xdata *)0xffa5)
  417. #define     PWM2FDCR                (*(unsigned char volatile xdata *)0xffa6)
  418. #define     PWM20T1                 (*(unsigned int  volatile xdata *)0xffb0)
  419. #define     PWM20T1H                (*(unsigned char volatile xdata *)0xffb0)
  420. #define     PWM20T1L                (*(unsigned char volatile xdata *)0xffb1)
  421. #define     PWM20T2                 (*(unsigned int  volatile xdata *)0xffb2)
  422. #define     PWM20T2H                (*(unsigned char volatile xdata *)0xffb2)
  423. #define     PWM20T2L                (*(unsigned char volatile xdata *)0xffb3)
  424. #define     PWM20CR                 (*(unsigned char volatile xdata *)0xffb4)
  425. #define     PWM20HLD                (*(unsigned char volatile xdata *)0xffb5)
  426. #define     PWM21T1                 (*(unsigned int  volatile xdata *)0xffb8)
  427. #define     PWM21T1H                (*(unsigned char volatile xdata *)0xffb8)
  428. #define     PWM21T1L                (*(unsigned char volatile xdata *)0xffb9)
  429. #define     PWM21T2                 (*(unsigned int  volatile xdata *)0xffba)
  430. #define     PWM21T2H                (*(unsigned char volatile xdata *)0xffba)
  431. #define     PWM21T2L                (*(unsigned char volatile xdata *)0xffbb)
  432. #define     PWM21CR                 (*(unsigned char volatile xdata *)0xffbc)
  433. #define     PWM21HLD                (*(unsigned char volatile xdata *)0xffbd)
  434. #define     PWM22T1                 (*(unsigned int  volatile xdata *)0xffc0)
  435. #define     PWM22T1H                (*(unsigned char volatile xdata *)0xffc0)
  436. #define     PWM22T1L                (*(unsigned char volatile xdata *)0xffc1)
  437. #define     PWM22T2                 (*(unsigned int  volatile xdata *)0xffc2)
  438. #define     PWM22T2H                (*(unsigned char volatile xdata *)0xffc2)
  439. #define     PWM22T2L                (*(unsigned char volatile xdata *)0xffc3)
  440. #define     PWM22CR                 (*(unsigned char volatile xdata *)0xffc4)
  441. #define     PWM22HLD                (*(unsigned char volatile xdata *)0xffc5)
  442. #define     PWM23T1                 (*(unsigned int  volatile xdata *)0xffc8)
  443. #define     PWM23T1H                (*(unsigned char volatile xdata *)0xffc8)
  444. #define     PWM23T1L                (*(unsigned char volatile xdata *)0xffc9)
  445. #define     PWM23T2                 (*(unsigned int  volatile xdata *)0xffca)
  446. #define     PWM23T2H                (*(unsigned char volatile xdata *)0xffca)
  447. #define     PWM23T2L                (*(unsigned char volatile xdata *)0xffcb)
  448. #define     PWM23CR                 (*(unsigned char volatile xdata *)0xffcc)
  449. #define     PWM23HLD                (*(unsigned char volatile xdata *)0xffcd)
  450. #define     PWM24T1                 (*(unsigned int  volatile xdata *)0xffd0)
  451. #define     PWM24T1H                (*(unsigned char volatile xdata *)0xffd0)
  452. #define     PWM24T1L                (*(unsigned char volatile xdata *)0xffd1)
  453. #define     PWM24T2                 (*(unsigned int  volatile xdata *)0xffd2)
  454. #define     PWM24T2H                (*(unsigned char volatile xdata *)0xffd2)
  455. #define     PWM24T2L                (*(unsigned char volatile xdata *)0xffd3)
  456. #define     PWM24CR                 (*(unsigned char volatile xdata *)0xffd4)
  457. #define     PWM24HLD                (*(unsigned char volatile xdata *)0xffd5)
  458. #define     PWM25T1                 (*(unsigned int  volatile xdata *)0xffd8)
  459. #define     PWM25T1H                (*(unsigned char volatile xdata *)0xffd8)
  460. #define     PWM25T1L                (*(unsigned char volatile xdata *)0xffd9)
  461. #define     PWM25T2                 (*(unsigned int  volatile xdata *)0xffda)
  462. #define     PWM25T2H                (*(unsigned char volatile xdata *)0xffda)
  463. #define     PWM25T2L                (*(unsigned char volatile xdata *)0xffdb)
  464. #define     PWM25CR                 (*(unsigned char volatile xdata *)0xffdc)
  465. #define     PWM25HLD                (*(unsigned char volatile xdata *)0xffdd)
  466. #define     PWM26T1                 (*(unsigned int  volatile xdata *)0xffe0)
  467. #define     PWM26T1H                (*(unsigned char volatile xdata *)0xffe0)
  468. #define     PWM26T1L                (*(unsigned char volatile xdata *)0xffe1)
  469. #define     PWM26T2                 (*(unsigned int  volatile xdata *)0xffe2)
  470. #define     PWM26T2H                (*(unsigned char volatile xdata *)0xffe2)
  471. #define     PWM26T2L                (*(unsigned char volatile xdata *)0xffe3)
  472. #define     PWM26CR                 (*(unsigned char volatile xdata *)0xffe4)
  473. #define     PWM26HLD                (*(unsigned char volatile xdata *)0xffe5)
  474. #define     PWM27T1                 (*(unsigned int  volatile xdata *)0xffe8)
  475. #define     PWM27T1H                (*(unsigned char volatile xdata *)0xffe8)
  476. #define     PWM27T1L                (*(unsigned char volatile xdata *)0xffe9)
  477. #define     PWM27T2                 (*(unsigned int  volatile xdata *)0xffea)
  478. #define     PWM27T2H                (*(unsigned char volatile xdata *)0xffea)
  479. #define     PWM27T2L                (*(unsigned char volatile xdata *)0xffeb)
  480. #define     PWM27CR                 (*(unsigned char volatile xdata *)0xffec)
  481. #define     PWM27HLD                (*(unsigned char volatile xdata *)0xffed)

  482. /////////////////////////////////////////////////
  483. //FE00H-FEFFH
  484. /////////////////////////////////////////////////

  485. #define     CLKSEL                  (*(unsigned char volatile xdata *)0xfe00)
  486. #define     CLKDIV                  (*(unsigned char volatile xdata *)0xfe01)
  487. #define     HIRCCR                  (*(unsigned char volatile xdata *)0xfe02)
  488. #define     XOSCCR                  (*(unsigned char volatile xdata *)0xfe03)
  489. #define     IRC32KCR                (*(unsigned char volatile xdata *)0xfe04)
  490. #define     MCLKOCR                 (*(unsigned char volatile xdata *)0xfe05)
  491. #define     IRCDB                   (*(unsigned char volatile xdata *)0xfe06)
  492. #define     X32KCR                  (*(unsigned char volatile xdata *)0xfe08)
  493.                                     
  494. #define     P0PU                    (*(unsigned char volatile xdata *)0xfe10)
  495. #define     P1PU                    (*(unsigned char volatile xdata *)0xfe11)
  496. #define     P2PU                    (*(unsigned char volatile xdata *)0xfe12)
  497. #define     P3PU                    (*(unsigned char volatile xdata *)0xfe13)
  498. #define     P4PU                    (*(unsigned char volatile xdata *)0xfe14)
  499. #define     P5PU                    (*(unsigned char volatile xdata *)0xfe15)
  500. #define     P6PU                    (*(unsigned char volatile xdata *)0xfe16)
  501. #define     P7PU                    (*(unsigned char volatile xdata *)0xfe17)
  502. #define     P0NCS                   (*(unsigned char volatile xdata *)0xfe18)
  503. #define     P1NCS                   (*(unsigned char volatile xdata *)0xfe19)
  504. #define     P2NCS                   (*(unsigned char volatile xdata *)0xfe1a)
  505. #define     P3NCS                   (*(unsigned char volatile xdata *)0xfe1b)
  506. #define     P4NCS                   (*(unsigned char volatile xdata *)0xfe1c)
  507. #define     P5NCS                   (*(unsigned char volatile xdata *)0xfe1d)
  508. #define     P6NCS                   (*(unsigned char volatile xdata *)0xfe1e)
  509. #define     P7NCS                   (*(unsigned char volatile xdata *)0xfe1f)
  510. #define     P0SR                    (*(unsigned char volatile xdata *)0xfe20)
  511. #define     P1SR                    (*(unsigned char volatile xdata *)0xfe21)
  512. #define     P2SR                    (*(unsigned char volatile xdata *)0xfe22)
  513. #define     P3SR                    (*(unsigned char volatile xdata *)0xfe23)
  514. #define     P4SR                    (*(unsigned char volatile xdata *)0xfe24)
  515. #define     P5SR                    (*(unsigned char volatile xdata *)0xfe25)
  516. #define     P6SR                    (*(unsigned char volatile xdata *)0xfe26)
  517. #define     P7SR                    (*(unsigned char volatile xdata *)0xfe27)
  518. #define     P0DR                    (*(unsigned char volatile xdata *)0xfe28)
  519. #define     P1DR                    (*(unsigned char volatile xdata *)0xfe29)
  520. #define     P2DR                    (*(unsigned char volatile xdata *)0xfe2a)
  521. #define     P3DR                    (*(unsigned char volatile xdata *)0xfe2b)
  522. #define     P4DR                    (*(unsigned char volatile xdata *)0xfe2c)
  523. #define     P5DR                    (*(unsigned char volatile xdata *)0xfe2d)
  524. #define     P6DR                    (*(unsigned char volatile xdata *)0xfe2e)
  525. #define     P7DR                    (*(unsigned char volatile xdata *)0xfe2f)
  526. #define     P0IE                    (*(unsigned char volatile xdata *)0xfe30)
  527. #define     P1IE                    (*(unsigned char volatile xdata *)0xfe31)
  528. #define     P2IE                    (*(unsigned char volatile xdata *)0xfe32)
  529. #define     P3IE                    (*(unsigned char volatile xdata *)0xfe33)
  530. #define     P4IE                    (*(unsigned char volatile xdata *)0xfe34)
  531. #define     P5IE                    (*(unsigned char volatile xdata *)0xfe35)
  532. #define     P6IE                    (*(unsigned char volatile xdata *)0xfe36)
  533. #define     P7IE                    (*(unsigned char volatile xdata *)0xfe37)
  534.                                     
  535. #define     RTCCR                   (*(unsigned char volatile xdata *)0xfe60)
  536. #define     RTCCFG                  (*(unsigned char volatile xdata *)0xfe61)
  537. #define     RTCIEN                  (*(unsigned char volatile xdata *)0xfe62)
  538. #define     RTCIF                   (*(unsigned char volatile xdata *)0xfe63)
  539. #define     ALAHOUR                 (*(unsigned char volatile xdata *)0xfe64)
  540. #define     ALAMIN                  (*(unsigned char volatile xdata *)0xfe65)
  541. #define     ALASEC                  (*(unsigned char volatile xdata *)0xfe66)
  542. #define     ALASSEC                 (*(unsigned char volatile xdata *)0xfe67)
  543. #define     INIYEAR                 (*(unsigned char volatile xdata *)0xfe68)
  544. #define     INIMONTH                (*(unsigned char volatile xdata *)0xfe69)
  545. #define     INIDAY                  (*(unsigned char volatile xdata *)0xfe6a)
  546. #define     INIHOUR                 (*(unsigned char volatile xdata *)0xfe6b)
  547. #define     INIMIN                  (*(unsigned char volatile xdata *)0xfe6c)
  548. #define     INISEC                  (*(unsigned char volatile xdata *)0xfe6d)
  549. #define     INISSEC                 (*(unsigned char volatile xdata *)0xfe6e)
  550. #define     RTCYEAR                 (*(unsigned char volatile xdata *)0xfe70)
  551. #define     RTCMONTH                (*(unsigned char volatile xdata *)0xfe71)
  552. #define     RTCDAY                  (*(unsigned char volatile xdata *)0xfe72)
  553. #define     RTCHOUR                 (*(unsigned char volatile xdata *)0xfe73)
  554. #define     RTCMIN                  (*(unsigned char volatile xdata *)0xfe74)
  555. #define     RTCSEC                  (*(unsigned char volatile xdata *)0xfe75)
  556. #define     RTCSSEC                 (*(unsigned char volatile xdata *)0xfe76)
  557.                                     
  558. #define     I2CCFG                  (*(unsigned char volatile xdata *)0xfe80)
  559. #define     I2CMSCR                 (*(unsigned char volatile xdata *)0xfe81)
  560. #define     I2CMSST                 (*(unsigned char volatile xdata *)0xfe82)
  561. #define     I2CSLCR                 (*(unsigned char volatile xdata *)0xfe83)
  562. #define     I2CSLST                 (*(unsigned char volatile xdata *)0xfe84)
  563. #define     I2CSLADR                (*(unsigned char volatile xdata *)0xfe85)
  564. #define     I2CTXD                  (*(unsigned char volatile xdata *)0xfe86)
  565. #define     I2CRXD                  (*(unsigned char volatile xdata *)0xfe87)
  566. #define     I2CMSAUX                (*(unsigned char volatile xdata *)0xfe88)
  567.                                     
  568. #define     TM2PS                   (*(unsigned char volatile xdata *)0xfea2)
  569. #define     TM3PS                   (*(unsigned char volatile xdata *)0xfea3)
  570. #define     TM4PS                   (*(unsigned char volatile xdata *)0xfea4)
  571. #define     ADCTIM                  (*(unsigned char volatile xdata *)0xfea8)
  572. #define     T3T4PS                  (*(unsigned char volatile xdata *)0xfeac)

  573. /////////////////////////////////////////////////
  574. //FD00H-FDFFH
  575. /////////////////////////////////////////////////

  576. #define     P0INTE                  (*(unsigned char volatile xdata *)0xfd00)
  577. #define     P1INTE                  (*(unsigned char volatile xdata *)0xfd01)
  578. #define     P2INTE                  (*(unsigned char volatile xdata *)0xfd02)
  579. #define     P3INTE                  (*(unsigned char volatile xdata *)0xfd03)
  580. #define     P4INTE                  (*(unsigned char volatile xdata *)0xfd04)
  581. #define     P5INTE                  (*(unsigned char volatile xdata *)0xfd05)
  582. #define     P6INTE                  (*(unsigned char volatile xdata *)0xfd06)
  583. #define     P7INTE                  (*(unsigned char volatile xdata *)0xfd07)
  584. #define     P0INTF                  (*(unsigned char volatile xdata *)0xfd10)
  585. #define     P1INTF                  (*(unsigned char volatile xdata *)0xfd11)
  586. #define     P2INTF                  (*(unsigned char volatile xdata *)0xfd12)
  587. #define     P3INTF                  (*(unsigned char volatile xdata *)0xfd13)
  588. #define     P4INTF                  (*(unsigned char volatile xdata *)0xfd14)
  589. #define     P5INTF                  (*(unsigned char volatile xdata *)0xfd15)
  590. #define     P6INTF                  (*(unsigned char volatile xdata *)0xfd16)
  591. #define     P7INTF                  (*(unsigned char volatile xdata *)0xfd17)
  592. #define     P0IM0                   (*(unsigned char volatile xdata *)0xfd20)
  593. #define     P1IM0                   (*(unsigned char volatile xdata *)0xfd21)
  594. #define     P2IM0                   (*(unsigned char volatile xdata *)0xfd22)
  595. #define     P3IM0                   (*(unsigned char volatile xdata *)0xfd23)
  596. #define     P4IM0                   (*(unsigned char volatile xdata *)0xfd24)
  597. #define     P5IM0                   (*(unsigned char volatile xdata *)0xfd25)
  598. #define     P6IM0                   (*(unsigned char volatile xdata *)0xfd26)
  599. #define     P7IM0                   (*(unsigned char volatile xdata *)0xfd27)
  600. #define     P0IM1                   (*(unsigned char volatile xdata *)0xfd30)
  601. #define     P1IM1                   (*(unsigned char volatile xdata *)0xfd31)
  602. #define     P2IM1                   (*(unsigned char volatile xdata *)0xfd32)
  603. #define     P3IM1                   (*(unsigned char volatile xdata *)0xfd33)
  604. #define     P4IM1                   (*(unsigned char volatile xdata *)0xfd34)
  605. #define     P5IM1                   (*(unsigned char volatile xdata *)0xfd35)
  606. #define     P6IM1                   (*(unsigned char volatile xdata *)0xfd36)
  607. #define     P7IM1                   (*(unsigned char volatile xdata *)0xfd37)
  608. #define     P0WKUE                  (*(unsigned char volatile xdata *)0xfd40)
  609. #define     P1WKUE                  (*(unsigned char volatile xdata *)0xfd41)
  610. #define     P2WKUE                  (*(unsigned char volatile xdata *)0xfd42)
  611. #define     P3WKUE                  (*(unsigned char volatile xdata *)0xfd43)
  612. #define     P4WKUE                  (*(unsigned char volatile xdata *)0xfd44)
  613. #define     P5WKUE                  (*(unsigned char volatile xdata *)0xfd45)
  614. #define     P6WKUE                  (*(unsigned char volatile xdata *)0xfd46)
  615. #define     P7WKUE                  (*(unsigned char volatile xdata *)0xfd47)
  616. #define     PINIPL                  (*(unsigned char volatile xdata *)0xfd60)
  617. #define     PINIPH                  (*(unsigned char volatile xdata *)0xfd61)

  618. /////////////////////////////////////////////////
  619. //FC00H-FCFFH
  620. /////////////////////////////////////////////////

  621. #define     PWM3C                   (*(unsigned int  volatile xdata *)0xfc00)
  622. #define     PWM3CH                  (*(unsigned char volatile xdata *)0xfc00)
  623. #define     PWM3CL                  (*(unsigned char volatile xdata *)0xfc01)
  624. #define     PWM3CKS                 (*(unsigned char volatile xdata *)0xfc02)
  625. #define     PWM3IF                  (*(unsigned char volatile xdata *)0xfc05)
  626. #define     PWM3FDCR                (*(unsigned char volatile xdata *)0xfc06)
  627. #define     PWM30T1                 (*(unsigned int  volatile xdata *)0xfc10)
  628. #define     PWM30T1H                (*(unsigned char volatile xdata *)0xfc10)
  629. #define     PWM30T1L                (*(unsigned char volatile xdata *)0xfc11)
  630. #define     PWM30T2                 (*(unsigned int  volatile xdata *)0xfc12)
  631. #define     PWM30T2H                (*(unsigned char volatile xdata *)0xfc12)
  632. #define     PWM30T2L                (*(unsigned char volatile xdata *)0xfc13)
  633. #define     PWM30CR                 (*(unsigned char volatile xdata *)0xfc14)
  634. #define     PWM30HLD                (*(unsigned char volatile xdata *)0xfc15)
  635. #define     PWM31T1                 (*(unsigned int  volatile xdata *)0xfc18)
  636. #define     PWM31T1H                (*(unsigned char volatile xdata *)0xfc18)
  637. #define     PWM31T1L                (*(unsigned char volatile xdata *)0xfc19)
  638. #define     PWM31T2                 (*(unsigned int  volatile xdata *)0xfc1a)
  639. #define     PWM31T2H                (*(unsigned char volatile xdata *)0xfc1a)
  640. #define     PWM31T2L                (*(unsigned char volatile xdata *)0xfc1b)
  641. #define     PWM31CR                 (*(unsigned char volatile xdata *)0xfc1c)
  642. #define     PWM31HLD                (*(unsigned char volatile xdata *)0xfc1d)
  643. #define     PWM32T1                 (*(unsigned int  volatile xdata *)0xfc20)
  644. #define     PWM32T1H                (*(unsigned char volatile xdata *)0xfc20)
  645. #define     PWM32T1L                (*(unsigned char volatile xdata *)0xfc21)
  646. #define     PWM32T2                 (*(unsigned int  volatile xdata *)0xfc22)
  647. #define     PWM32T2H                (*(unsigned char volatile xdata *)0xfc22)
  648. #define     PWM32T2L                (*(unsigned char volatile xdata *)0xfc23)
  649. #define     PWM32CR                 (*(unsigned char volatile xdata *)0xfc24)
  650. #define     PWM32HLD                (*(unsigned char volatile xdata *)0xfc25)
  651. #define     PWM33T1                 (*(unsigned int  volatile xdata *)0xfc28)
  652. #define     PWM33T1H                (*(unsigned char volatile xdata *)0xfc28)
  653. #define     PWM33T1L                (*(unsigned char volatile xdata *)0xfc29)
  654. #define     PWM33T2                 (*(unsigned int  volatile xdata *)0xfc2a)
  655. #define     PWM33T2H                (*(unsigned char volatile xdata *)0xfc2a)
  656. #define     PWM33T2L                (*(unsigned char volatile xdata *)0xfc2b)
  657. #define     PWM33CR                 (*(unsigned char volatile xdata *)0xfc2c)
  658. #define     PWM33HLD                (*(unsigned char volatile xdata *)0xfc2d)
  659. #define     PWM34T1                 (*(unsigned int  volatile xdata *)0xfc30)
  660. #define     PWM34T1H                (*(unsigned char volatile xdata *)0xfc30)
  661. #define     PWM34T1L                (*(unsigned char volatile xdata *)0xfc31)
  662. #define     PWM34T2                 (*(unsigned int  volatile xdata *)0xfc32)
  663. #define     PWM34T2H                (*(unsigned char volatile xdata *)0xfc32)
  664. #define     PWM34T2L                (*(unsigned char volatile xdata *)0xfc33)
  665. #define     PWM34CR                 (*(unsigned char volatile xdata *)0xfc34)
  666. #define     PWM34HLD                (*(unsigned char volatile xdata *)0xfc35)
  667. #define     PWM35T1                 (*(unsigned int  volatile xdata *)0xfc38)
  668. #define     PWM35T1H                (*(unsigned char volatile xdata *)0xfc38)
  669. #define     PWM35T1L                (*(unsigned char volatile xdata *)0xfc39)
  670. #define     PWM35T2                 (*(unsigned int  volatile xdata *)0xfc3a)
  671. #define     PWM35T2H                (*(unsigned char volatile xdata *)0xfc3a)
  672. #define     PWM35T2L                (*(unsigned char volatile xdata *)0xfc3b)
  673. #define     PWM35CR                 (*(unsigned char volatile xdata *)0xfc3c)
  674. #define     PWM35HLD                (*(unsigned char volatile xdata *)0xfc3d)
  675. #define     PWM36T1                 (*(unsigned int  volatile xdata *)0xfc40)
  676. #define     PWM36T1H                (*(unsigned char volatile xdata *)0xfc40)
  677. #define     PWM36T1L                (*(unsigned char volatile xdata *)0xfc41)
  678. #define     PWM36T2                 (*(unsigned int  volatile xdata *)0xfc42)
  679. #define     PWM36T2H                (*(unsigned char volatile xdata *)0xfc42)
  680. #define     PWM36T2L                (*(unsigned char volatile xdata *)0xfc43)
  681. #define     PWM36CR                 (*(unsigned char volatile xdata *)0xfc44)
  682. #define     PWM36HLD                (*(unsigned char volatile xdata *)0xfc45)
  683. #define     PWM37T1                 (*(unsigned int  volatile xdata *)0xfc48)
  684. #define     PWM37T1H                (*(unsigned char volatile xdata *)0xfc48)
  685. #define     PWM37T1L                (*(unsigned char volatile xdata *)0xfc49)
  686. #define     PWM37T2                 (*(unsigned int  volatile xdata *)0xfc4a)
  687. #define     PWM37T2H                (*(unsigned char volatile xdata *)0xfc4a)
  688. #define     PWM37T2L                (*(unsigned char volatile xdata *)0xfc4b)
  689. #define     PWM37CR                 (*(unsigned char volatile xdata *)0xfc4c)
  690. #define     PWM37HLD                (*(unsigned char volatile xdata *)0xfc4d)
  691. #define     PWM4C                   (*(unsigned int  volatile xdata *)0xfc50)
  692. #define     PWM4CH                  (*(unsigned char volatile xdata *)0xfc50)
  693. #define     PWM4CL                  (*(unsigned char volatile xdata *)0xfc51)
  694. #define     PWM4CKS                 (*(unsigned char volatile xdata *)0xfc52)
  695. #define     PWM4TADC                (*(unsigned int  volatile xdata *)0xfc53)
  696. #define     PWM4TADCH               (*(unsigned char volatile xdata *)0xfc53)
  697. #define     PWM4TADCL               (*(unsigned char volatile xdata *)0xfc54)
  698. #define     PWM4IF                  (*(unsigned char volatile xdata *)0xfc55)
  699. #define     PWM4FDCR                (*(unsigned char volatile xdata *)0xfc56)
  700. #define     PWM40T1                 (*(unsigned int  volatile xdata *)0xfc60)
  701. #define     PWM40T1H                (*(unsigned char volatile xdata *)0xfc60)
  702. #define     PWM40T1L                (*(unsigned char volatile xdata *)0xfc61)
  703. #define     PWM40T2                 (*(unsigned int  volatile xdata *)0xfc62)
  704. #define     PWM40T2H                (*(unsigned char volatile xdata *)0xfc62)
  705. #define     PWM40T2L                (*(unsigned char volatile xdata *)0xfc63)
  706. #define     PWM40CR                 (*(unsigned char volatile xdata *)0xfc64)
  707. #define     PWM40HLD                (*(unsigned char volatile xdata *)0xfc65)
  708. #define     PWM41T1                 (*(unsigned int  volatile xdata *)0xfc68)
  709. #define     PWM41T1H                (*(unsigned char volatile xdata *)0xfc68)
  710. #define     PWM41T1L                (*(unsigned char volatile xdata *)0xfc69)
  711. #define     PWM41T2                 (*(unsigned int  volatile xdata *)0xfc6a)
  712. #define     PWM41T2H                (*(unsigned char volatile xdata *)0xfc6a)
  713. #define     PWM41T2L                (*(unsigned char volatile xdata *)0xfc6b)
  714. #define     PWM41CR                 (*(unsigned char volatile xdata *)0xfc6c)
  715. #define     PWM41HLD                (*(unsigned char volatile xdata *)0xfc6d)
  716. #define     PWM42T1                 (*(unsigned int  volatile xdata *)0xfc70)
  717. #define     PWM42T1H                (*(unsigned char volatile xdata *)0xfc70)
  718. #define     PWM42T1L                (*(unsigned char volatile xdata *)0xfc71)
  719. #define     PWM42T2                 (*(unsigned int  volatile xdata *)0xfc72)
  720. #define     PWM42T2H                (*(unsigned char volatile xdata *)0xfc72)
  721. #define     PWM42T2L                (*(unsigned char volatile xdata *)0xfc73)
  722. #define     PWM42CR                 (*(unsigned char volatile xdata *)0xfc74)
  723. #define     PWM42HLD                (*(unsigned char volatile xdata *)0xfc75)
  724. #define     PWM43T1                 (*(unsigned int  volatile xdata *)0xfc78)
  725. #define     PWM43T1H                (*(unsigned char volatile xdata *)0xfc78)
  726. #define     PWM43T1L                (*(unsigned char volatile xdata *)0xfc79)
  727. #define     PWM43T2                 (*(unsigned int  volatile xdata *)0xfc7a)
  728. #define     PWM43T2H                (*(unsigned char volatile xdata *)0xfc7a)
  729. #define     PWM43T2L                (*(unsigned char volatile xdata *)0xfc7b)
  730. #define     PWM43CR                 (*(unsigned char volatile xdata *)0xfc7c)
  731. #define     PWM43HLD                (*(unsigned char volatile xdata *)0xfc7d)
  732. #define     PWM44T1                 (*(unsigned int  volatile xdata *)0xfc80)
  733. #define     PWM44T1H                (*(unsigned char volatile xdata *)0xfc80)
  734. #define     PWM44T1L                (*(unsigned char volatile xdata *)0xfc81)
  735. #define     PWM44T2                 (*(unsigned int  volatile xdata *)0xfc82)
  736. #define     PWM44T2H                (*(unsigned char volatile xdata *)0xfc82)
  737. #define     PWM44T2L                (*(unsigned char volatile xdata *)0xfc83)
  738. #define     PWM44CR                 (*(unsigned char volatile xdata *)0xfc84)
  739. #define     PWM44HLD                (*(unsigned char volatile xdata *)0xfc85)
  740. #define     PWM45T1                 (*(unsigned int  volatile xdata *)0xfc88)
  741. #define     PWM45T1H                (*(unsigned char volatile xdata *)0xfc88)
  742. #define     PWM45T1L                (*(unsigned char volatile xdata *)0xfc89)
  743. #define     PWM45T2                 (*(unsigned int  volatile xdata *)0xfc8a)
  744. #define     PWM45T2H                (*(unsigned char volatile xdata *)0xfc8a)
  745. #define     PWM45T2L                (*(unsigned char volatile xdata *)0xfc8b)
  746. #define     PWM45CR                 (*(unsigned char volatile xdata *)0xfc8c)
  747. #define     PWM45HLD                (*(unsigned char volatile xdata *)0xfc8d)
  748. #define     PWM46T1                 (*(unsigned int  volatile xdata *)0xfc90)
  749. #define     PWM46T1H                (*(unsigned char volatile xdata *)0xfc90)
  750. #define     PWM46T1L                (*(unsigned char volatile xdata *)0xfc91)
  751. #define     PWM46T2                 (*(unsigned int  volatile xdata *)0xfc92)
  752. #define     PWM46T2H                (*(unsigned char volatile xdata *)0xfc92)
  753. #define     PWM46T2L                (*(unsigned char volatile xdata *)0xfc93)
  754. #define     PWM46CR                 (*(unsigned char volatile xdata *)0xfc94)
  755. #define     PWM46HLD                (*(unsigned char volatile xdata *)0xfc95)
  756. #define     PWM47T1                 (*(unsigned int  volatile xdata *)0xfc98)
  757. #define     PWM47T1H                (*(unsigned char volatile xdata *)0xfc98)
  758. #define     PWM47T1L                (*(unsigned char volatile xdata *)0xfc99)
  759. #define     PWM47T2                 (*(unsigned int  volatile xdata *)0xfc9a)
  760. #define     PWM47T2H                (*(unsigned char volatile xdata *)0xfc9a)
  761. #define     PWM47T2L                (*(unsigned char volatile xdata *)0xfc9b)
  762. #define     PWM47CR                 (*(unsigned char volatile xdata *)0xfc9c)
  763. #define     PWM47HLD                (*(unsigned char volatile xdata *)0xfc9d)
  764. #define     PWM5C                   (*(unsigned int  volatile xdata *)0xfca0)
  765. #define     PWM5CH                  (*(unsigned char volatile xdata *)0xfca0)
  766. #define     PWM5CL                  (*(unsigned char volatile xdata *)0xfca1)
  767. #define     PWM5CKS                 (*(unsigned char volatile xdata *)0xfca2)
  768. #define     PWM5IF                  (*(unsigned char volatile xdata *)0xfca5)
  769. #define     PWM5FDCR                (*(unsigned char volatile xdata *)0xfca6)
  770. #define     PWM50T1                 (*(unsigned int  volatile xdata *)0xfcb0)
  771. #define     PWM50T1H                (*(unsigned char volatile xdata *)0xfcb0)
  772. #define     PWM50T1L                (*(unsigned char volatile xdata *)0xfcb1)
  773. #define     PWM50T2                 (*(unsigned int  volatile xdata *)0xfcb2)
  774. #define     PWM50T2H                (*(unsigned char volatile xdata *)0xfcb2)
  775. #define     PWM50T2L                (*(unsigned char volatile xdata *)0xfcb3)
  776. #define     PWM50CR                 (*(unsigned char volatile xdata *)0xfcb4)
  777. #define     PWM50HLD                (*(unsigned char volatile xdata *)0xfcb5)
  778. #define     PWM51T1                 (*(unsigned int  volatile xdata *)0xfcb8)
  779. #define     PWM51T1H                (*(unsigned char volatile xdata *)0xfcb8)
  780. #define     PWM51T1L                (*(unsigned char volatile xdata *)0xfcb9)
  781. #define     PWM51T2                 (*(unsigned int  volatile xdata *)0xfcba)
  782. #define     PWM51T2H                (*(unsigned char volatile xdata *)0xfcba)
  783. #define     PWM51T2L                (*(unsigned char volatile xdata *)0xfcbb)
  784. #define     PWM51CR                 (*(unsigned char volatile xdata *)0xfcbc)
  785. #define     PWM51HLD                (*(unsigned char volatile xdata *)0xfcbd)
  786. #define     PWM52T1                 (*(unsigned int  volatile xdata *)0xfcc0)
  787. #define     PWM52T1H                (*(unsigned char volatile xdata *)0xfcc0)
  788. #define     PWM52T1L                (*(unsigned char volatile xdata *)0xfcc1)
  789. #define     PWM52T2                 (*(unsigned int  volatile xdata *)0xfcc2)
  790. #define     PWM52T2H                (*(unsigned char volatile xdata *)0xfcc2)
  791. #define     PWM52T2L                (*(unsigned char volatile xdata *)0xfcc3)
  792. #define     PWM52CR                 (*(unsigned char volatile xdata *)0xfcc4)
  793. #define     PWM52HLD                (*(unsigned char volatile xdata *)0xfcc5)
  794. #define     PWM53T1                 (*(unsigned int  volatile xdata *)0xfcc8)
  795. #define     PWM53T1H                (*(unsigned char volatile xdata *)0xfcc8)
  796. #define     PWM53T1L                (*(unsigned char volatile xdata *)0xfcc9)
  797. #define     PWM53T2                 (*(unsigned int  volatile xdata *)0xfcca)
  798. #define     PWM53T2H                (*(unsigned char volatile xdata *)0xfcca)
  799. #define     PWM53T2L                (*(unsigned char volatile xdata *)0xfccb)
  800. #define     PWM53CR                 (*(unsigned char volatile xdata *)0xfccc)
  801. #define     PWM53HLD                (*(unsigned char volatile xdata *)0xfccd)
  802. #define     PWM54T1                 (*(unsigned int  volatile xdata *)0xfcd0)
  803. #define     PWM54T1H                (*(unsigned char volatile xdata *)0xfcd0)
  804. #define     PWM54T1L                (*(unsigned char volatile xdata *)0xfcd1)
  805. #define     PWM54T2                 (*(unsigned int  volatile xdata *)0xfcd2)
  806. #define     PWM54T2H                (*(unsigned char volatile xdata *)0xfcd2)
  807. #define     PWM54T2L                (*(unsigned char volatile xdata *)0xfcd3)
  808. #define     PWM54CR                 (*(unsigned char volatile xdata *)0xfcd4)
  809. #define     PWM54HLD                (*(unsigned char volatile xdata *)0xfcd5)
  810. #define     PWM55T1                 (*(unsigned int  volatile xdata *)0xfcd8)
  811. #define     PWM55T1H                (*(unsigned char volatile xdata *)0xfcd8)
  812. #define     PWM55T1L                (*(unsigned char volatile xdata *)0xfcd9)
  813. #define     PWM55T2                 (*(unsigned int  volatile xdata *)0xfcda)
  814. #define     PWM55T2H                (*(unsigned char volatile xdata *)0xfcda)
  815. #define     PWM55T2L                (*(unsigned char volatile xdata *)0xfcdb)
  816. #define     PWM55CR                 (*(unsigned char volatile xdata *)0xfcdc)
  817. #define     PWM55HLD                (*(unsigned char volatile xdata *)0xfcdd)
  818. #define     PWM56T1                 (*(unsigned int  volatile xdata *)0xfce0)
  819. #define     PWM56T1H                (*(unsigned char volatile xdata *)0xfce0)
  820. #define     PWM56T1L                (*(unsigned char volatile xdata *)0xfce1)
  821. #define     PWM56T2                 (*(unsigned int  volatile xdata *)0xfce2)
  822. #define     PWM56T2H                (*(unsigned char volatile xdata *)0xfce2)
  823. #define     PWM56T2L                (*(unsigned char volatile xdata *)0xfce3)
  824. #define     PWM56CR                 (*(unsigned char volatile xdata *)0xfce4)
  825. #define     PWM56HLD                (*(unsigned char volatile xdata *)0xfce5)
  826. #define     PWM57T1                 (*(unsigned int  volatile xdata *)0xfce8)
  827. #define     PWM57T1H                (*(unsigned char volatile xdata *)0xfce8)
  828. #define     PWM57T1L                (*(unsigned char volatile xdata *)0xfce9)
  829. #define     PWM57T2                 (*(unsigned int  volatile xdata *)0xfcea)
  830. #define     PWM57T2H                (*(unsigned char volatile xdata *)0xfcea)
  831. #define     PWM57T2L                (*(unsigned char volatile xdata *)0xfceb)
  832. #define     PWM57CR                 (*(unsigned char volatile xdata *)0xfcec)
  833. #define     PWM57HLD                (*(unsigned char volatile xdata *)0xfced)
  834.                                     
  835. #define     MD3                     (*(unsigned char volatile xdata *)0xfcf0)
  836. #define     MD2                     (*(unsigned char volatile xdata *)0xfcf1)
  837. #define     MD1                     (*(unsigned char volatile xdata *)0xfcf2)
  838. #define     MD0                     (*(unsigned char volatile xdata *)0xfcf3)
  839. #define     MD5                     (*(unsigned char volatile xdata *)0xfcf4)
  840. #define     MD4                     (*(unsigned char volatile xdata *)0xfcf5)
  841. #define     ARCON                   (*(unsigned char volatile xdata *)0xfcf6)
  842. #define     OPCON                   (*(unsigned char volatile xdata *)0xfcf7)

  843. /////////////////////////////////////////////////
  844. //FB00H-FBFFH
  845. /////////////////////////////////////////////////

  846. #define     COMEN                   (*(unsigned char volatile xdata *)0xfb00)
  847. #define     SEGENL                  (*(unsigned char volatile xdata *)0xfb01)
  848. #define     SEGENH                  (*(unsigned char volatile xdata *)0xfb02)
  849. #define     LEDCTRL                 (*(unsigned char volatile xdata *)0xfb03)
  850. #define     LEDCKS                  (*(unsigned char volatile xdata *)0xfb04)
  851. #define     COM0_DA_L               (*(unsigned char volatile xdata *)0xfb10)
  852. #define     COM1_DA_L               (*(unsigned char volatile xdata *)0xfb11)
  853. #define     COM2_DA_L               (*(unsigned char volatile xdata *)0xfb12)
  854. #define     COM3_DA_L               (*(unsigned char volatile xdata *)0xfb13)
  855. #define     COM4_DA_L               (*(unsigned char volatile xdata *)0xfb14)
  856. #define     COM5_DA_L               (*(unsigned char volatile xdata *)0xfb15)
  857. #define     COM6_DA_L               (*(unsigned char volatile xdata *)0xfb16)
  858. #define     COM7_DA_L               (*(unsigned char volatile xdata *)0xfb17)
  859. #define     COM0_DA_H               (*(unsigned char volatile xdata *)0xfb18)
  860. #define     COM1_DA_H               (*(unsigned char volatile xdata *)0xfb19)
  861. #define     COM2_DA_H               (*(unsigned char volatile xdata *)0xfb1a)
  862. #define     COM3_DA_H               (*(unsigned char volatile xdata *)0xfb1b)
  863. #define     COM4_DA_H               (*(unsigned char volatile xdata *)0xfb1c)
  864. #define     COM5_DA_H               (*(unsigned char volatile xdata *)0xfb1d)
  865. #define     COM6_DA_H               (*(unsigned char volatile xdata *)0xfb1e)
  866. #define     COM7_DA_H               (*(unsigned char volatile xdata *)0xfb1f)
  867. #define     COM0_DC_L               (*(unsigned char volatile xdata *)0xfb20)
  868. #define     COM1_DC_L               (*(unsigned char volatile xdata *)0xfb21)
  869. #define     COM2_DC_L               (*(unsigned char volatile xdata *)0xfb22)
  870. #define     COM3_DC_L               (*(unsigned char volatile xdata *)0xfb23)
  871. #define     COM4_DC_L               (*(unsigned char volatile xdata *)0xfb24)
  872. #define     COM5_DC_L               (*(unsigned char volatile xdata *)0xfb25)
  873. #define     COM6_DC_L               (*(unsigned char volatile xdata *)0xfb26)
  874. #define     COM7_DC_L               (*(unsigned char volatile xdata *)0xfb27)
  875. #define     COM0_DC_H               (*(unsigned char volatile xdata *)0xfb28)
  876. #define     COM1_DC_H               (*(unsigned char volatile xdata *)0xfb29)
  877. #define     COM2_DC_H               (*(unsigned char volatile xdata *)0xfb2a)
  878. #define     COM3_DC_H               (*(unsigned char volatile xdata *)0xfb2b)
  879. #define     COM4_DC_H               (*(unsigned char volatile xdata *)0xfb2c)
  880. #define     COM5_DC_H               (*(unsigned char volatile xdata *)0xfb2d)
  881. #define     COM6_DC_H               (*(unsigned char volatile xdata *)0xfb2e)
  882. #define     COM7_DC_H               (*(unsigned char volatile xdata *)0xfb2f)
  883.                                     
  884. #define     TSCHEN1                 (*(unsigned char volatile xdata *)0xfb40)
  885. #define     TSCHEN2                 (*(unsigned char volatile xdata *)0xfb41)
  886. #define     TSCFG1                  (*(unsigned char volatile xdata *)0xfb42)
  887. #define     TSCFG2                  (*(unsigned char volatile xdata *)0xfb43)
  888. #define     TSWUTC                  (*(unsigned char volatile xdata *)0xfb44)
  889. #define     TSCTRL                  (*(unsigned char volatile xdata *)0xfb45)
  890. #define     TSSTA1                  (*(unsigned char volatile xdata *)0xfb46)
  891. #define     TSSTA2                  (*(unsigned char volatile xdata *)0xfb47)
  892. #define     TSRT                    (*(unsigned char volatile xdata *)0xfb48)
  893. #define     TSDAT                   (*(unsigned int  volatile xdata *)0xfb49)
  894. #define     TSDATH                  (*(unsigned char volatile xdata *)0xfb49)
  895. #define     TSDATL                  (*(unsigned char volatile xdata *)0xfb4a)
  896. #define     TSTH00                  (*(unsigned int  volatile xdata *)0xfb50)
  897. #define     TSTH00H                 (*(unsigned char volatile xdata *)0xfb50)
  898. #define     TSTH00L                 (*(unsigned char volatile xdata *)0xfb51)
  899. #define     TSTH01                  (*(unsigned int  volatile xdata *)0xfb52)
  900. #define     TSTH01H                 (*(unsigned char volatile xdata *)0xfb52)
  901. #define     TSTH01L                 (*(unsigned char volatile xdata *)0xfb53)
  902. #define     TSTH02                  (*(unsigned int  volatile xdata *)0xfb54)
  903. #define     TSTH02H                 (*(unsigned char volatile xdata *)0xfb54)
  904. #define     TSTH02L                 (*(unsigned char volatile xdata *)0xfb55)
  905. #define     TSTH03                  (*(unsigned int  volatile xdata *)0xfb56)
  906. #define     TSTH03H                 (*(unsigned char volatile xdata *)0xfb56)
  907. #define     TSTH03L                 (*(unsigned char volatile xdata *)0xfb57)
  908. #define     TSTH04                  (*(unsigned int  volatile xdata *)0xfb58)
  909. #define     TSTH04H                 (*(unsigned char volatile xdata *)0xfb58)
  910. #define     TSTH04L                 (*(unsigned char volatile xdata *)0xfb59)
  911. #define     TSTH05                  (*(unsigned int  volatile xdata *)0xfb5a)
  912. #define     TSTH05H                 (*(unsigned char volatile xdata *)0xfb5a)
  913. #define     TSTH05L                 (*(unsigned char volatile xdata *)0xfb5b)
  914. #define     TSTH06                  (*(unsigned int  volatile xdata *)0xfb5c)
  915. #define     TSTH06H                 (*(unsigned char volatile xdata *)0xfb5c)
  916. #define     TSTH06L                 (*(unsigned char volatile xdata *)0xfb5d)
  917. #define     TSTH07                  (*(unsigned int  volatile xdata *)0xfb5e)
  918. #define     TSTH07H                 (*(unsigned char volatile xdata *)0xfb5e)
  919. #define     TSTH07L                 (*(unsigned char volatile xdata *)0xfb5f)
  920. #define     TSTH08                  (*(unsigned int  volatile xdata *)0xfb60)
  921. #define     TSTH08H                 (*(unsigned char volatile xdata *)0xfb60)
  922. #define     TSTH08L                 (*(unsigned char volatile xdata *)0xfb61)
  923. #define     TSTH09                  (*(unsigned int  volatile xdata *)0xfb62)
  924. #define     TSTH09H                 (*(unsigned char volatile xdata *)0xfb62)
  925. #define     TSTH09L                 (*(unsigned char volatile xdata *)0xfb63)
  926. #define     TSTH10                  (*(unsigned int  volatile xdata *)0xfb64)
  927. #define     TSTH10H                 (*(unsigned char volatile xdata *)0xfb64)
  928. #define     TSTH10L                 (*(unsigned char volatile xdata *)0xfb65)
  929. #define     TSTH11                  (*(unsigned int  volatile xdata *)0xfb66)
  930. #define     TSTH11H                 (*(unsigned char volatile xdata *)0xfb66)
  931. #define     TSTH11L                 (*(unsigned char volatile xdata *)0xfb67)
  932. #define     TSTH12                  (*(unsigned int  volatile xdata *)0xfb68)
  933. #define     TSTH12H                 (*(unsigned char volatile xdata *)0xfb68)
  934. #define     TSTH12L                 (*(unsigned char volatile xdata *)0xfb69)
  935. #define     TSTH13                  (*(unsigned int  volatile xdata *)0xfb6a)
  936. #define     TSTH13H                 (*(unsigned char volatile xdata *)0xfb6a)
  937. #define     TSTH13L                 (*(unsigned char volatile xdata *)0xfb6b)
  938. #define     TSTH14                  (*(unsigned int  volatile xdata *)0xfb6c)
  939. #define     TSTH14H                 (*(unsigned char volatile xdata *)0xfb6c)
  940. #define     TSTH14L                 (*(unsigned char volatile xdata *)0xfb6d)
  941. #define     TSTH15                  (*(unsigned int  volatile xdata *)0xfb6e)
  942. #define     TSTH15H                 (*(unsigned char volatile xdata *)0xfb6e)
  943. #define     TSTH15L                 (*(unsigned char volatile xdata *)0xfb6f)

  944. /////////////////////////////////////////////////
  945. //FA00H-FAFFH
  946. /////////////////////////////////////////////////

  947. /////////////////////////////////////////////////
  948. //F900H-F9FFH
  949. /////////////////////////////////////////////////

  950. #define     PWMA_ENO2               (*(unsigned char volatile xdata *)0xf930)
  951. #define     PWMA_IOAUX2             (*(unsigned char volatile xdata *)0xf931)
  952. #define     PWMA_CR3                (*(unsigned char volatile xdata *)0xf932)
  953. #define     PWMA_SR3                (*(unsigned char volatile xdata *)0xf933)
  954. #define     PWMA_CCER3              (*(unsigned char volatile xdata *)0xf934)
  955. #define     PWMA_CCMR1X             (*(unsigned char volatile xdata *)0xf938)
  956. #define     PWMA_CCMR2X             (*(unsigned char volatile xdata *)0xf939)
  957. #define     PWMA_CCMR3X             (*(unsigned char volatile xdata *)0xf93a)
  958. #define     PWMA_CCMR4X             (*(unsigned char volatile xdata *)0xf93b)
  959. #define     PWMA_CCMR5              (*(unsigned char volatile xdata *)0xf93c)
  960. #define     PWMA_CCMR5X             (*(unsigned char volatile xdata *)0xf93d)
  961. #define     PWMA_CCMR6              (*(unsigned char volatile xdata *)0xf93e)
  962. #define     PWMA_CCMR6X             (*(unsigned char volatile xdata *)0xf93f)
  963. #define     PWMA_CCR5H              (*(unsigned char volatile xdata *)0xf940)
  964. #define     PWMA_CCR5L              (*(unsigned char volatile xdata *)0xf941)
  965. #define     PWMA_CCR5X              (*(unsigned char volatile xdata *)0xf942)
  966. #define     PWMA_CCR6H              (*(unsigned char volatile xdata *)0xf943)
  967. #define     PWMA_CCR6L              (*(unsigned char volatile xdata *)0xf944)


  968. /////////////////////////////////////////////////

  969. #endif

复制代码


回复

使用道具 举报

地板
ID:102963 发表于 2025-9-8 11:04 | 只看该作者
解压缩,就可以看到STC8G.h头文件了。STC单片机下载软件STC-ISP里面就有的。

STC8G.zip

5.4 KB, 下载次数: 0

回复

使用道具 举报

5#
ID:227818 发表于 2025-9-8 11:37 | 只看该作者
STC的官方下载软件上有,你要什么格式的可以自己下,这个软件官方网站上有。

无标题.png (391.79 KB, 下载次数: 0)

无标题.png
回复

使用道具 举报

6#
ID:1034262 发表于 2025-9-8 11:47 | 只看该作者
STC ISP烧写软件里就有,或者直接将头文件添加到KEIL中。
回复

使用道具 举报

7#
ID:712097 发表于 2025-9-8 11:48 | 只看该作者
STC8G.rar (4.3 KB, 下载次数: 0)
回复

使用道具 举报

8#
ID:1110477 发表于 2025-9-8 12:02 | 只看该作者
STC-ISP.EXE 右边有个标签“Keil仿真设置”,蓝色字“仿真器使用说明”,左边有个方框:“添加型号和头文件到Keil中”,找到Keil的安装目录,添加一下,OK
回复

使用道具 举报

9#
ID:1109793 发表于 2025-9-8 12:51 | 只看该作者
工具软件里面有啊
回复

使用道具 举报

10#
ID:595237 发表于 2025-9-9 00:07 | 只看该作者
谢谢你们的热心帮忙,提醒,官方里下载新版本的烧写软件里面有的,有了对应的头文件编译已经通过。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表