IC解密 MC96F6508A测温电路原理图
- /*****************************************************************
- * *
- * IC解密temperature *
- * *
- * IC解密MCU 芯片: MC96F6508A 工作频率: 16MHz *
- ******************************************************************/
- #include <mc96f6508a.h>
- #include <intrins.h>
- #include "MC96F6508A.h"
- #include "func_def.h"
- #include "lcd.h"
- #include "temp.h"
-
- #define uchar unsigned char
- #define uint unsigned int
- void LcdDisplay(int);
- /*******************************************************************************
- * 函数名 : main
- * 函数功能 : 主函数
- * 输入 : 无
- * 输出 : 无
- *******************************************************************************/
- main()
- {
- P1IO = 0xff; // 输出P1 Direction Register
- P1OD = 0xff; //漏极开路输出 P1 Open-drain Selection Register
- P1PU = 0xff; // 内部上拉电阻P1 Pull-up Resistor Selection Register
- P1DB = 0xff; //消抖
-
- P2IO = 0xf0; // 输出P1 Direction Register
- P2OD = 0x00; //漏极开路输出 P1 Open-drain Selection Register
- P2PU = 0xff; // 内部上拉电阻P1 Pull-up Resistor Selection Register
- P2FSR = 0x00; //
- P3IO = 0xff; // 输出P1 Direction Register
- P3OD = 0x00; //漏极开路输出 P1 Open-drain Selection Register
- P3PU = 0xff; // 内部上拉电阻P1 Pull-up Resistor Selection Register
- P3FSR = 0x00; //消抖
-
-
- P4IO = 0xff; // 输出P1 Direction Register
- P4OD = 0xff; //漏极开路输出 P1 Open-drain Selection Register
- P4PU = 0xff; // 内部上拉电阻P1 Pull-up Resistor Selection Register
- P4FSR = 0x00; //消抖
- P5IO = 0xff; // 输出P1 Direction Register
- P5OD = 0xff; //漏极开路输出 P1 Open-drain Selection Register
- P5PU = 0xf0; // 内部上拉电阻P1 Pull-up Resistor Selection Register
- P5FSRH = 0xff; //
- P5FSRL = 0xff;
- P6IO = 0xff; // 输出P1 Direction Register
- P6OD = 0xff; //漏极开路输出 P1 Open-drain Selection Register
- P6PU = 0xff; // 内部上拉电阻P1 Pull-up Resistor Selection Register
- P6FSR = 0x0f; // 设置为Xin/Xout
-
- P0IO = 0x00; // 输出P1 Direction Register
- P0OD = 0xff; //漏极开路输出 P1 Open-drain Selection Register
- P0PU = 0xff; // 内部上拉电阻P1 Pull-up Resistor Selection Register
- P0DB = 0xff; //消抖
-
- P4=0xff;
- // internal RC clock (16.000000MHz)
- OSCCR = 0x08; // Set Int. OSC
- SCCR = 0x00; // Use Int. OSC
- //P4=0x00;
- //DSPORT=0;
- //OSCCR = 0x28; // 外部主时钟
- //SCCR = 0x00; // 打开外部主时钟
- LcdInit(); //初始化LCD1602
- LcdWriteCom(0x88); //写地址 80表示初始地址
- LcdWriteData('C');
- while(1)
上一篇:IC解密双足机器人走路步态说明

芯片解密