收藏 分享(赏)

STC8F系列单片机技术参考手册.pdf

上传人:weiwoduzun 文档编号:3075737 上传时间:2018-10-02 格式:PDF 页数:130 大小:1.49MB
下载 相关 举报
STC8F系列单片机技术参考手册.pdf_第1页
第1页 / 共130页
STC8F系列单片机技术参考手册.pdf_第2页
第2页 / 共130页
STC8F系列单片机技术参考手册.pdf_第3页
第3页 / 共130页
STC8F系列单片机技术参考手册.pdf_第4页
第4页 / 共130页
STC8F系列单片机技术参考手册.pdf_第5页
第5页 / 共130页
点击查看更多>>
资源描述

1、STC micro TM STC8F www.STCMCU.com / www.GXWMCU.com 2015/12/25 STC8F : www.STCMCU.com / www.GXWMCU.com : 13922809991/13922805190 : 0513-5501 2928/2929/2966 : 0513-5501 2926/2956/2947 - i - 1 1 2 2 2.1 STC8F8K 2 2.2 STC8F2K 4 3 6 3.1 6 3.1.1 STC8F8K 6 3.1.2 STC8F2K 10 3.2 12 3.2.1 STC8F8K 12 3.2.2 STC

2、8F2K 18 4 22 4.1 22 4.2 22 4.2.1 RAM . 23 4.2.2 RAM . 24 4.2.3 RAM . 25 5 27 6 33 7 36 7.1 36 7.2 38 7.3 40 8 I/O 41 8.1 I/O . 41 8.2 I/O 41 8.3 I/O . 42 8.3.1 42 8.3.2 . 43 8.3.3 . 44 8.3.4 . 44 8.4 44 9 49 10 53 10.1 STC8F . 53 10.1.1 STC8F8K 54 10.1.2 STC8F2K 54 10.2 STC8F . 55 10.3 57 STC8F : ww

3、w.STCMCU.com / www.GXWMCU.com : 13922809991/13922805190 : 0513-5501 2928/2929/2966 : 0513-5501 2926/2956/2947 - ii - 10.3.1 58 10.3.2 62 10.3.3 64 11 / . 67 11.1 67 11.2 0/1 . 68 11.3 2 . 70 11.4 3/4 . 71 11.5 72 12 74 12.1 74 12.2 1. 74 12.2.1 1 0. 76 12.2.2 1 1. 77 12.2.3 1 2. 79 12.2.4 1 3. 80 12

4、.2.5 81 12.3 2. 82 12.3.1 2 0. 83 12.3.2 2 1. 84 12.4 3. 85 12.4.1 3 0. 86 12.4.2 3 1. 86 12.5 4. 87 12.5.1 4 0. 88 12.5.2 4 1. 89 13 IAP/EEPROM . 90 13.1 EEPROM 90 14 ADC . 92 14.1 ADC 92 15 CCP/PCA 94 15.1 PCA . 94 15.2 PCA . 98 15.2.1 . 98 15.2.2 99 15.2.3 99 15.2.4 PWM 100 16 PWM 103 16.1 PWM 10

5、3 17 I 2 C . 110 17.1 I 2 C 110 17.2 I 2 C 110 17.3 I 2 C 113 18 . 116 STC8F : www.STCMCU.com / www.GXWMCU.com : 13922809991/13922805190 : 0513-5501 2928/2929/2966 : 0513-5501 2926/2956/2947 - iii - 18.1 . 116 18.2 . 116 19 SPI 118 19.1 SPI 118 19.2 SPI 119 19.2.1 119 19.2.2 120 19.2.3 120 19.3 SPI

6、121 19.4 .122 A .125 B .126 STC8F : www.STCMCU.com / www.GXWMCU.com : 13922809991/13922805190 : 0513-5501 2928/2929/2966 : 0513-5501 2926/2956/2947 - 1 - 1 STC8F STC / (1T) / / / / 8051 STC 8051 8-12 MCU R/C (0.3%) 1% (-40+85 ) 0.6%(-20+65 ) ISP 5MHz30MHz ( ISP 4 ) MCU 3 24MHz IRC 32KHz IRC 4M33M 8-

7、bit CPU MCU IDLE STOP IDLE CPU 1.5mA 6MHz STOP CPU 0.1uA MCU 4 5 4 PCA 8 PWM I 2 C SPI 16 *12 ADC STC8F UART ADC PWM PCA I 2 C SPI STC8F8Kxx STC8F2Kxx STC8F : www.STCMCU.com / www.GXWMCU.com : 13922809991/13922805190 : 0513-5501 2928/2929/2966 : 0513-5501 2926/2956/2947 - 2 - 2 2.1 STC8F8K 8051 1T 8

8、051 22 4 2.0V 5.5V LDO -4085 Flash 64K FLASH EEPROM 512 10 ISP SRAM 128 RAM DATA 128 RAM IDATA 8192 RAM XDATA 64K RAM XDATA 24MHz IRC 0.3% 1.0% -4085 0.6% -2065 32KHz IRC 4MHz 33MHz 3 4 2.2V 2.4V V2.7 V3.0 STC8F : www.STCMCU.com / www.GXWMCU.com : 13922809991/13922805190 : 0513-5501 2928/2929/2966 :

9、 0513-5501 2926/2956/2947 - 3 - 22 INT0 INT1 INT2 INT3 INT4 0 1 2 3 4 1 2 3 4 ADC LVD PCA/CCP SPI I 2 C PWM PWM 4 5 16 0 1 2 3 4 0 3 NMI 0 1 0 16 4 1 2 3 4 FOSC/4 4 PCA CCP0 CCP1 CCP2 CCP3 6/7/8/10 PWM 8 15 PWM SPI / I 2 C ADC 12 16 GPIO 62 GPIO P0.0P0.7 P1.0P1.7 P2.0P2.7 P3.0P3.7 P4.0P4.7 P5.0P5.5

10、P6.0P6.7 P7.0P7.7 GPIO 4 LQFP64 LQFP48 LQFP44 PDIP40 STC8F : www.STCMCU.com / www.GXWMCU.com : 13922809991/13922805190 : 0513-5501 2928/2929/2966 : 0513-5501 2926/2956/2947 - 4 - 2.2 STC8F2K 8051 1T 8051 19 4 2.0V 5.5V LDO -4085 Flash 64K FLASH EEPROM 512 10 ISP SRAM 128 RAM DATA 128 RAM IDATA 2048

11、RAM XDATA 64K RAM XDATA 24MHz IRC 0.3% 1.0% -4085 0.6% -2065 32KHz IRC 4MHz 33MHz 3 4 2.2V 2.4V V2.7 V3.0 19 INT0 INT1 INT2 INT3 INT4 0 1 2STC8F : www.STCMCU.com / www.GXWMCU.com : 13922809991/13922805190 : 0513-5501 2928/2929/2966 : 0513-5501 2926/2956/2947 - 5 - 3 4 1 2 3 4 LVD PCA/CCP SPI I 2 C 4

12、 5 16 0 1 2 3 4 0 3 NMI 0 1 0 16 4 1 2 3 4 FOSC/4 4 PCA CCP0 CCP1 CCP2 CCP3 6/7/8/10 PWM SPI / I 2 C GPIO 42 GPIO P0.0P0.7 P1.0P1.7 P2.0P2.7 P3.0P3.7 P4.0P4.7 P5.4P5.5 GPIO 4 LQFP44 PDIP40 STC8F : www.STCMCU.com / www.GXWMCU.com : 13922809991/13922805190 : 0513-5501 2928/2929/2966 : 0513-5501 2926/2

13、956/2947 - 6 - 3 3.1 3.1.1 ST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30 31 32 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49TXD4_2/P5.3 P5.2/RXD4_2 P5.1/T

17、XD3_2 RXD3_2/P5.0 PWM3_3/P6.3 PWM2_3/P6.2 PWM1_3/P6.1 PWM0_3/P6.0 PWM7_3/P6.7 PWM6_3/P6.6 PWM5_3/P6.5 PWM4_3/P6.4 P7.3/CCP3_3 P7.2/CCP2_3 P7.1/CCP1_3 P7.0/CCP0_3 P2.7/A15/PWM7 P0.0/AD0/ADC8/RXD3 P0.1/AD1/ADC9/TXD3 P0.2/AD2/ADC10/RXD4 STC8F8KLQFP-64 STC8F : www.STCMCU.com / www.GXWMCU.com : 139228099

18、91/13922805190 : 0513-5501 2928/2929/2966 : 0513-5501 2926/2956/2947 - 7 - (P4.5) AGND CCP3/I2CSDA/MISO/PWM4_2/ADC4/P1.4 T2CLKO/MOSI/PWM3_2/ADC3/P1.3 ECI/T2/SS/PWM2_2/ADC2/P1.2 P0.3/AD3/ADC11/TxD4 P0.7/AD7/ADC15/T4CLKO P0.6/AD6/ADC14/T4 P0.5/AD5/ADC13/T3CLKO P0.4/AD4/ADC12/T3 TxD2/PWM1_2/ADC1/P1.1 P

19、1.0/ADC0/PWM0_2/RxD2 GND P5.5 VCC MCLKO/RST/P5.4 (P4.7) AVCC (P4.6) VREF P4.1/ALE/CMPO_2 P2.7/A15/PWM7 P2.6/A14/PWM6 /CCP3_2P2.5/A13/PWM5/SCLK_2/I2CSCL_2/CCP2_2 P2.4/A12/PWM4/MISO_2/I2CSDA_2/CCP1_2 P2.3/A11/PWM3/MOSI_2/CCP0_2 P2.2/A10/PWM2/SS_2/ECI_2 P2.1/A9/PWM1 P2.0/A8/PWM0 P3.7/INT3/RD_2/TxD_2/CM

20、P+ P3.6/INT2/WR_2/RxD_2/CMP- PWMFLT/SS_4/ECI_4/T0CLKO/T1/P3.5 CMPO/MOSI_4/T1CLKO/T0/P3.4 I2CSDA_4/MISO_4/CCP0_4/INT1/P3.3 I2CSCL_4/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SI_4/T1CLKO/T0/P3.4 MISO_4/I2CSDA_4/CCP0_4/INT1/P3.3 SCLK_4/I2CSCL_4/CCP1_4/INT0/P3.2 CCP2_4 /TxD/P3.1 INT4/CCP3_4 /RxD/P3.0 P0.0/AD0/ADC8/RxD3 P0.1/AD1/ADC9/TxD3 P0.2/AD2/ADC10/RxD4 CCP2/I2CSCL/SCLK/PWM5_2/ADC5/P1.5 CCP1/MCLKO_2/XTALO/PWM6_2/RxD_3/ADC6/P1.6 CCP0/XTALI/PWM7_2/TxD

25、_3/ADC7/P1.7 P4.2/RD_3/TxD2_2 P4.3/WR/RxD_4 TxD_4/RD/P4.4 RxD2_2/WR_3/P4.0 LQFP44 1 2 3 4 5 6 7 8 9 10 11 33 32 31 30 29 28 27 26 25 24 23 12 13 14 15 16 17 18 19 20 21 22 44 43 42 41 40 39 38 37 36 35 34 STC8F8KLQFP-44 STC8F : www.STCMCU.com / www.GXWMCU.com : 13922809991/13922805190 : 0513-5501 29

26、28/2929/2966 : 0513-5501 2926/2956/2947 - 8 - PDIP40 (P4.5) AGND 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 CCP3/I2CSDA/MISO/PWM4_2/ADC4/P1.4 T2CLKO/MOSI/PWM3_2/ADC3/P1.3 ECI/T2/SS/PWM2_2/ADC2/P1.2 TxD4/ADC11/AD3/P0.3 T4CLKO/ADC15/AD7/P0.7 T4/ADC14/AD6/P0.6 T3CLKO/ADC13/AD5/P0.5 T3/ADC12/AD4

27、/P0.4 TxD2/PWM1_2/ADC1/P1.1 RxD2/PWM0_2/ADC0/P1.0 GND P5.5 VCC MCLKO/RST/P5.4 (P4.7) AVCC (P4.6) VREF P4.1/ALE/CMPO_2 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 P2.7/A15/PWM7 P2.6/A14/PWM6/CCP3_2P2.5/A13/PWM5/SCLK_2/I2CSCL_2/CCP2_2 P2.4/A12/PWM4/MISO_2/I2CSDA_2/CCP1_2 P2.3/A11/PWM3/

28、MOSI_2/CCP0_2 P2.2/A10/PWM2/SS_2/ECI_2 P2.1/A9/PWM1 P2.0/A8/PWM0 P3.7/INT3/RD_2/TxD_2/CMP+ P3.6/INT2/WR_2/RxD_2/CMP- P3.5/T1/T0CLKO/ECI_4/SS_4/PWMFLT P3.4/T0/T1CLKO/MOSI_4/CMPO P3.3/INT1/CCP0_4/MISO_4/I2CSDA_4 P3.2/INT0/CCP1_4/SCLK_4/I2CSCL_4 P3.1/TxD/CCP2_4 P3.0/RxD/CCP3_4/INT4 P0.0/AD0/ADC8/RxD3 P0.1/AD1

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 实用文档 > 产品手册

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报