芯片解密|单片机解密|IC解密|芯片破解|芯片复制| PCB抄板|软件开发

飞芯科技-芯片解密|单片机解密|IC解密|芯片破解|芯片复制| PCB抄板|软件开发

IC解密 MC96F6508A测温电路原理图

  1. /*****************************************************************
  2. *                                                                *
  3. *   IC解密temperature              *
  4. *                                                                *
  5. * IC解密MCU 芯片: MC96F6508A      工作频率: 16MHz                    *
  6. ******************************************************************/

  7. #include <mc96f6508a.h>
  8. #include <intrins.h>
  9. #include        "MC96F6508A.h"
  10. #include        "func_def.h"
  11. #include    "lcd.h"
  12. #include   "temp.h"
  13.   
  14. #define uchar unsigned char
  15. #define uint unsigned int


  16. void LcdDisplay(int);
  17. /*******************************************************************************
  18. * 函数名         : main
  19. * 函数功能                   : 主函数
  20. * 输入           : 无
  21. * 输出                  : 无
  22. *******************************************************************************/

  23. main()
  24. {
  25.         P1IO                = 0xff;                        // 输出P1 Direction Register
  26.     P1OD                = 0xff;                        //漏极开路输出 P1 Open-drain Selection Register
  27.     P1PU                = 0xff;                        // 内部上拉电阻P1 Pull-up Resistor Selection Register
  28.     P1DB                = 0xff;                        //消抖
  29.         
  30.         P2IO                = 0xf0;                        // 输出P1 Direction Register
  31.     P2OD                = 0x00;                        //漏极开路输出 P1 Open-drain Selection Register
  32.     P2PU                = 0xff;                        // 内部上拉电阻P1 Pull-up Resistor Selection Register
  33.     P2FSR                = 0x00;                        //


  34.         P3IO                = 0xff;                        // 输出P1 Direction Register
  35.     P3OD                = 0x00;                        //漏极开路输出 P1 Open-drain Selection Register
  36.     P3PU                = 0xff;                        // 内部上拉电阻P1 Pull-up Resistor Selection Register
  37.     P3FSR                = 0x00;                        //消抖
  38.         
  39.         
  40.         P4IO                = 0xff;                        // 输出P1 Direction Register
  41.     P4OD                = 0xff;                        //漏极开路输出 P1 Open-drain Selection Register
  42.     P4PU                = 0xff;                        // 内部上拉电阻P1 Pull-up Resistor Selection Register
  43.     P4FSR                = 0x00;                        //消抖


  44.         P5IO                = 0xff;                        // 输出P1 Direction Register
  45.     P5OD                = 0xff;                        //漏极开路输出 P1 Open-drain Selection Register
  46.     P5PU                = 0xf0;                        // 内部上拉电阻P1 Pull-up Resistor Selection Register
  47.     P5FSRH                = 0xff;                        //
  48.         P5FSRL                = 0xff;

  49.                 P6IO                = 0xff;                        // 输出P1 Direction Register
  50.     P6OD                = 0xff;                        //漏极开路输出 P1 Open-drain Selection Register
  51.     P6PU                = 0xff;                        // 内部上拉电阻P1 Pull-up Resistor Selection Register
  52.     P6FSR                = 0x0f;                        // 设置为Xin/Xout
  53.         



  54.         P0IO                = 0x00;                        // 输出P1 Direction Register
  55.     P0OD                = 0xff;                        //漏极开路输出 P1 Open-drain Selection Register
  56.     P0PU                = 0xff;                        // 内部上拉电阻P1 Pull-up Resistor Selection Register
  57.     P0DB                = 0xff;                        //消抖
  58.         
  59.         P4=0xff;
  60.                 // internal RC clock (16.000000MHz)
  61.         OSCCR = 0x08;           // Set Int. OSC
  62.         SCCR = 0x00;            // Use Int. OSC
  63.         //P4=0x00;
  64.         //DSPORT=0;
  65.         //OSCCR = 0x28;           // 外部主时钟
  66.         //SCCR = 0x00;            // 打开外部主时钟
  67.         LcdInit();                         //初始化LCD1602
  68.         LcdWriteCom(0x88);        //写地址 80表示初始地址
  69.         LcdWriteData('C');
  70.         while(1)



联系方式

地址:石家庄市新华区民族路77号华强广场D座2009
电话:0311-88816616/87087811
手机:13315190088
传真:0311-67901001
联系人:张工
网址:www.feixindz.com
邮箱:feixindz@163.com
微信:xinpianjiemi
QQ:527263666/568069805

在线客服
热线电话

企业微信