stc单片机id加密c语言,STC单片机使用加密芯片SMEC98SP的加密实例源码

STC单片机使用加密芯片SMEC98SP的加密实例源码

//2010-7-22 15:41

//——————————————————————————–

//新一代 1T 8051系列 单片机内核特殊功能寄存器 C51 Core SFRs

// 7 6 5 4 3 2 1 0 Reset Value

#ifndef __STC12C5A60S2_H

#define __STC12C5A60S2_H

sfr ACC = 0xE0; //Accumulator 0000,0000

sfr B = 0xF0; //B Register 0000,0000

sfr PSW = 0xD0; //Program Status Word CY AC F0 RS1 RS0 OV F1 P 0000,0000

//———————————–

sbit CY = PSW^7;

sbit AC = PSW^6;

sbit F0 = PSW^5;

sbit RS1 = PSW^4;

sbit RS0 = PSW^3;

sbit OV = PSW^2;

sbit P = PSW^0;

//———————————–

sfr SP = 0x81; //Stack Pointer 0000,0111

sfr DPL = 0x82; //Data Pointer Low Byte 0000,0000

sfr DPH = 0x83; //Data Pointer High Byte 0000,0000

//——————————————————————————–

//新一代 1T 8051系列 单片机系统管理特殊功能寄存器

// 7 6 5 4 3 2 1 0 Reset Value

sfr PCON = 0x87; //Power Control SMOD SMOD0 LVDF POF GF1 GF0 PD IDL 0001,0000

// 7 6 5 4 3 2 1 0 Reset Value

sfr AUXR = 0x8E; //Auxiliary Register T0x12 T1x12 UART_M0x6 BRTR S2SMOD BRTx12 EXTRAM S1BRS 0000,0000

//———————————–

sfr AUXR1 = 0xA2; //Auxiliary Register 1 – PCA_P4 SPI_P4 S2_P4 GF2 ADRJ – DPS 0000,0000

/*

a48a9d5d3a69bc3919912ad164ea4d56.png

文章知识点与官方知识档案匹配,可进一步学习相关知识C技能树首页概览114081 人正在系统学习中 相关资源:凯歌软件安装管理器1.0-其它文档类资源-CSDN文库

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2021年4月20日
下一篇 2021年4月20日

相关推荐