config.h 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. /*---------------------------------------------------------------------*/
  2. /* --- STC MCU Limited ------------------------------------------------*/
  3. /* --- STC 1T Series MCU Demo Programme -------------------------------*/
  4. /* --- Mobile: (86)13922805190 ----------------------------------------*/
  5. /* --- Fax: 86-0513-55012956,55012947,55012969 ------------------------*/
  6. /* --- Tel: 86-0513-55012928,55012929,55012966 ------------------------*/
  7. /* --- Web: www.STCMCU.com --------------------------------------------*/
  8. /* --- Web: www.STCMCUDATA.com ---------------------------------------*/
  9. /* --- QQ: 800003751 -------------------------------------------------*/
  10. /* 如果要在程序中使用此代码,请在程序中注明使用了STC的资料及程序 */
  11. /*---------------------------------------------------------------------*/
  12. #ifndef __CONFIG_H
  13. #define __CONFIG_H
  14. /*********************************************************/
  15. //#define MAIN_Fosc 22118400L //定义主时钟
  16. //#define MAIN_Fosc 12000000L //定义主时钟
  17. //#define MAIN_Fosc 11059200L //定义主时钟
  18. //#define MAIN_Fosc 5529600L //定义主时钟
  19. #define MAIN_Fosc 33177600L //定义主时钟
  20. #include "STC8XXXX.H"
  21. #define STC8Hxx //STC8H系列
  22. //#define STC8Gxx //STC8G系列
  23. /*********************************************************/
  24. #endif