找回密码
 立即注册

QQ登录

只需一步,快速开始

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

STC90C5xAD.H头文件下载 引脚图 管脚定义封装及中文资料

[复制链接]
跳转到指定楼层
楼主

STC90C5xAD引脚图 封装图 管脚定义
  






STC90C5xAD.H头文件下载 :http://www.51hei.com/bbs/dpj-36960-1.html
  STC90C5xAD.H头文件内容预览
  1. #ifndef __STC90C5xAD_H_
  2. #define __STC90C5xAD_H_

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

  4. /* The following is STC additional SFR */

  5. /* sfr  AUXR  = 0x8e; */
  6. /* sfr  AUXR1 = 0xa2; */
  7. /* sfr  IPH   = 0xb7; */

  8. sfr  P4  = 0xc0;
  9. sbit P43 = P4^3;
  10. sbit P42 = P4^2;
  11. sbit P41 = P4^1;
  12. sbit P40 = P4^0;

  13. sfr  XICON = 0xe8;

  14. sfr  WDT_CONTR = 0xe1;

  15. sfr ISP_DATA  = 0xe2;
  16. sfr ISP_ADDRH = 0xe3;
  17. sfr ISP_ADDRL = 0xe4;
  18. sfr ISP_CMD   = 0xe5;
  19. sfr ISP_TRIG  = 0xe6;
  20. sfr ISP_CONTR = 0xe7;

  21. /* Above is STC additional SFR */

  22. /*--------------------------------------------------------------------------
  23. REG51F.H

  24. Header file for 8xC31/51, 80C51Fx, 80C51Rx+
  25. Copyright (c) 1988-1999 Keil Elektronik GmbH and Keil Software, Inc.
  26. All rights reserved.

  27. Modification according to DataSheet from April 1999
  28. - SFR's AUXR and AUXR1 added for 80C51Rx+ derivatives
  29. --------------------------------------------------------------------------*/

  30. /*  BYTE Registers  */
  31. sfr P0   = 0x80;
  32. sfr P1   = 0x90;
  33. sfr P2   = 0xA0;
  34. sfr P3   = 0xB0;
  35. sfr PSW  = 0xD0;
  36. sfr ACC  = 0xE0;
  37. sfr B    = 0xF0;
  38. sfr SP   = 0x81;
  39. sfr DPL  = 0x82;
  40. sfr DPH  = 0x83;
  41. sfr PCON = 0x87;
  42. sfr TCON = 0x88;
  43. sfr TMOD = 0x89;
  44. sfr TL0  = 0x8A;
  45. sfr TL1  = 0x8B;
  46. sfr TH0  = 0x8C;
  47. sfr TH1  = 0x8D;
  48. sfr IE   = 0xA8;
  49. sfr IP   = 0xB8;
  50. sfr SCON = 0x98;
  51. sfr SBUF = 0x99;

  52. /*  80C51Fx/Rx Extensions  */
  53. sfr AUXR   = 0x8E;
  54. sfr AUXR1  = 0xA2;
  55. sfr SADDR  = 0xA9;
  56. sfr IPH    = 0xB7;
  57. sfr SADEN  = 0xB9;
  58. sfr T2CON  = 0xC8;
  59. sfr T2MOD  = 0xC9;
  60. sfr RCAP2L = 0xCA;
  61. sfr RCAP2H = 0xCB;
  62. sfr TL2    = 0xCC;
  63. sfr TH2    = 0xCD;

  64. /* PCA SFR
  65. sfr CCON   = 0xD8;
  66. sfr CMOD   = 0xD9;
  67. sfr CCAPM0 = 0xDA;
  68. sfr CCAPM1 = 0xDB;
  69. sfr CCAPM2 = 0xDC;
  70. sfr CCAPM3 = 0xDD;
  71. sfr CCAPM4 = 0xDE;
  72. sfr CL     = 0xE9;
  73. sfr CCAP0L = 0xEA;
  74. sfr CCAP1L = 0xEB;
  75. sfr CCAP2L = 0xEC;
  76. sfr CCAP3L = 0xED;
  77. sfr CCAP4L = 0xEE;
  78. sfr CH     = 0xF9;
  79. sfr CCAP0H = 0xFA;
  80. sfr CCAP1H = 0xFB;
  81. sfr CCAP2H = 0xFC;
  82. sfr CCAP3H = 0xFD;
  83. sfr CCAP4H = 0xFE;
  84. */

  85. /*  BIT Registers  */
  86. /*  PSW   */
  87. sbit CY   = PSW^7;
  88. sbit AC   = PSW^6;
  89. sbit F0   = PSW^5;
  90. sbit RS1  = PSW^4;
  91. sbit RS0  = PSW^3;
  92. sbit OV   = PSW^2;
  93. sbit P    = PSW^0;

  94. /*  TCON  */
  95. sbit TF1  = TCON^7;
  96. sbit TR1  = TCON^6;
  97. sbit TF0  = TCON^5;
  98. sbit TR0  = TCON^4;
  99. sbit IE1  = TCON^3;
  100. sbit IT1  = TCON^2;
  101. sbit IE0  = TCON^1;
  102. sbit IT0  = TCON^0;

  103. /*  IE   */
  104. sbit EA   = IE^7;
  105. sbit EC   = IE^6;
  106. sbit ET2  = IE^5;
  107. sbit ES   = IE^4;
  108. sbit ET1  = IE^3;
  109. sbit EX1  = IE^2;
  110. sbit ET0  = IE^1;
  111. sbit EX0  = IE^0;

  112. /*  IP   */
  113. /*        sbit PPC  = IP^6;*/
  114. sbit PT2  = IP^5;
  115. sbit PS   = IP^4;
  116. sbit PT1  = IP^3;
  117. sbit PX1  = IP^2;
  118. sbit PT0  = IP^1;
  119. sbit PX0  = IP^0;

  120. /*  P3  */
  121. sbit RD   = P3^7;
  122. sbit WR   = P3^6;
  123. sbit T1   = P3^5;
  124. sbit T0   = P3^4;
  125. sbit INT1 = P3^3;
  126. sbit INT0 = P3^2;
  127. sbit TXD  = P3^1;
  128. sbit RXD  = P3^0;

  129. /*  SCON  */
  130. sbit SM0  = SCON^7; // alternatively "FE"
  131. sbit FE   = SCON^7;
  132. sbit SM1  = SCON^6;
  133. sbit SM2  = SCON^5;
  134. sbit REN  = SCON^4;
  135. sbit TB8  = SCON^3;
  136. sbit RB8  = SCON^2;
  137. sbit TI   = SCON^1;
  138. sbit RI   = SCON^0;
  139.             
  140. /*  P1  */
  141. /* PCA
  142. sbit CEX4 = P1^7;
  143. sbit CEX3 = P1^6;
  144. sbit CEX2 = P1^5;
  145. sbit CEX1 = P1^4;
  146. sbit CEX0 = P1^3;
  147. sbit ECI  = P1^2;
  148. */

  149. sbit T2EX = P1^1;
  150. sbit T2   = P1^0;

  151. /*  T2CON  */
  152. sbit TF2   = T2CON^7;
  153. sbit EXF2  = T2CON^6;
  154. sbit RCLK  = T2CON^5;
  155. sbit TCLK  = T2CON^4;
  156. sbit EXEN2 = T2CON^3;
  157. sbit TR2   = T2CON^2;
  158. sbit C_T2  = T2CON^1;
  159. sbit CP_RL2= T2CON^0;

  160. /*  CCON  */
  161. /*  PCA
  162. sbit CF    = CCON^7;
  163. sbit CR    = CCON^6;

  164. sbit CCF4  = CCON^4;
  165. sbit CCF3  = CCON^3;
  166. sbit CCF2  = CCON^2;
  167. sbit CCF1  = CCON^1;
  168. sbit CCF0  = CCON^0;
  169. */

  170. /////////////////////////////////////////////////

  171. #endif
复制代码




STC90C5xAD中文资料下载链接: STC90C51RC中文资料.rar (205 Bytes, 下载次数: 13)

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

使用道具 举报

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

本版积分规则

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

Powered by 单片机教程网

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