当前位置: 首页 > news >正文

阿里云网站建设考试题目南昌seo外包公司

阿里云网站建设考试题目,南昌seo外包公司,番禺做网站系统,贵阳网站设计企业1.引用头文件的两种方式 #include <reg52.h> #include "reg52.h" 区别:优先搜索的位置不同! 在keil软件中 #include <reg52.h> 优先搜索软件安装的INC文件夹 #include "reg52.h" 优先搜索当前工程文件夹下的头文件,如果没有,则在软件安装的…

1.引用头文件的两种方式

#include <reg52.h>
#include "reg52.h"

区别:优先搜索的位置不同!

在keil软件中

#include <reg52.h> 优先搜索软件安装的INC文件夹

83f61a1a058f42bb9a2fd33a55156edd.png

#include "reg52.h" 优先搜索当前工程文件夹下的头文件,如果没有,则在软件安装的INC文件夹下搜索头文件

2.如何方便地打开头文件

光标定位到头文件处,右击打开

557505886de24f98a78ffe5a05d92866.png

3.reg52.h内容

#ifndef __REG52_H__
#define __REG52_H__/*  BYTE Registers 8位寄存器 */ 
sfr P0    = 0x80;
sfr P1    = 0x90;
sfr P2    = 0xA0;
sfr P3    = 0xB0;
sfr PSW   = 0xD0;
sfr ACC   = 0xE0;
sfr B     = 0xF0;
sfr SP    = 0x81;
sfr DPL   = 0x82;
sfr DPH   = 0x83;
sfr PCON  = 0x87;
sfr TCON  = 0x88;
sfr TMOD  = 0x89;
sfr TL0   = 0x8A;
sfr TL1   = 0x8B;
sfr TH0   = 0x8C;
sfr TH1   = 0x8D;
sfr IE    = 0xA8;
sfr IP    = 0xB8;
sfr SCON  = 0x98;
sfr SBUF  = 0x99;/*  8052 Extensions 8052拓展部分 */
sfr T2CON  = 0xC8;
sfr RCAP2L = 0xCA;
sfr RCAP2H = 0xCB;
sfr TL2    = 0xCC;
sfr TH2    = 0xCD;/*  BIT Registers 位寄存器(合起来为标志寄存器 Flags Register) */
/*  PSW  */
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; //8052 only/*  TCON 定时器控制 */
sbit TF1   = TCON^7;
sbit TR1   = TCON^6;
sbit TF0   = TCON^5;
sbit TR0   = TCON^4;
sbit IE1   = TCON^3;
sbit IT1   = TCON^2;
sbit IE0   = TCON^1;
sbit IT0   = TCON^0;/*  IE 中断允许 */
sbit EA    = IE^7;
sbit ET2   = IE^5; //8052 only
sbit ES    = IE^4;
sbit ET1   = IE^3;
sbit EX1   = IE^2;
sbit ET0   = IE^1;
sbit EX0   = IE^0;/*  IP 中断优先级 */
sbit PT2   = IP^5;
sbit PS    = IP^4;
sbit PT1   = IP^3;
sbit PX1   = IP^2;
sbit PT0   = IP^1;
sbit PX0   = IP^0;/*  P3 端口3 */
sbit RD    = P3^7;
sbit WR    = P3^6;
sbit T1    = P3^5;
sbit T0    = P3^4;
sbit INT1  = P3^3;
sbit INT0  = P3^2;
sbit TXD   = P3^1;
sbit RXD   = P3^0;/*  SCON 串行口控制 */
sbit SM0   = SCON^7;
sbit SM1   = SCON^6;
sbit SM2   = SCON^5;
sbit REN   = SCON^4;
sbit TB8   = SCON^3;
sbit RB8   = SCON^2;
sbit TI    = SCON^1;
sbit RI    = SCON^0;/*  P1 端口1 */
sbit T2EX  = P1^1; // 8052 only
sbit T2    = P1^0; // 8052 only/*  T2CON  */
sbit TF2    = T2CON^7;
sbit EXF2   = T2CON^6;
sbit RCLK   = T2CON^5;
sbit TCLK   = T2CON^4;
sbit EXEN2  = T2CON^3;
sbit TR2    = T2CON^2;
sbit C_T2   = T2CON^1;
sbit CP_RL2 = T2CON^0;#endif

备注:,sfr(定义特殊功能寄存器) sbit(定义特殊功能寄存器的位变量)

定义格式: sfr 特殊功寄存器名 = 地址;

                sbit 寄存器名 = 寄存器^数字;


如:

sfr P0    = 0x80;
sbit CY    = PSW^7;

定义特殊功能寄存器P0地址值为0x80(P0的值为0x80处地址的值)

定义位寄存器CY为PSW的第7位

 

 


文章转载自:
http://mauretania.qpqb.cn
http://jacobian.qpqb.cn
http://reminiscently.qpqb.cn
http://serge.qpqb.cn
http://mayon.qpqb.cn
http://stingo.qpqb.cn
http://ferrotitanium.qpqb.cn
http://smutch.qpqb.cn
http://osmometer.qpqb.cn
http://copyfit.qpqb.cn
http://defenceless.qpqb.cn
http://voodoo.qpqb.cn
http://acetazolamide.qpqb.cn
http://shrivel.qpqb.cn
http://solemnify.qpqb.cn
http://punctatim.qpqb.cn
http://phytol.qpqb.cn
http://rcmp.qpqb.cn
http://yielding.qpqb.cn
http://radioamplifier.qpqb.cn
http://vamp.qpqb.cn
http://retrainee.qpqb.cn
http://hielamon.qpqb.cn
http://flashlight.qpqb.cn
http://pericardial.qpqb.cn
http://cloakroom.qpqb.cn
http://multigraph.qpqb.cn
http://mortifying.qpqb.cn
http://papaverine.qpqb.cn
http://slatternly.qpqb.cn
http://conjunctivitis.qpqb.cn
http://sebs.qpqb.cn
http://ward.qpqb.cn
http://discussional.qpqb.cn
http://monosabio.qpqb.cn
http://pharmacodynamic.qpqb.cn
http://assortment.qpqb.cn
http://solipsism.qpqb.cn
http://cerebralism.qpqb.cn
http://synecology.qpqb.cn
http://hyperploidy.qpqb.cn
http://veronese.qpqb.cn
http://contignation.qpqb.cn
http://trilith.qpqb.cn
http://communally.qpqb.cn
http://blackdamp.qpqb.cn
http://compander.qpqb.cn
http://arch.qpqb.cn
http://cerotic.qpqb.cn
http://steppe.qpqb.cn
http://rufescent.qpqb.cn
http://headmaster.qpqb.cn
http://cargador.qpqb.cn
http://separation.qpqb.cn
http://endarch.qpqb.cn
http://lebanon.qpqb.cn
http://fibroma.qpqb.cn
http://midnightly.qpqb.cn
http://decedent.qpqb.cn
http://abc.qpqb.cn
http://incommutable.qpqb.cn
http://hazardous.qpqb.cn
http://windsail.qpqb.cn
http://insignia.qpqb.cn
http://traditionist.qpqb.cn
http://charlatan.qpqb.cn
http://exsuction.qpqb.cn
http://defoliate.qpqb.cn
http://indefinitely.qpqb.cn
http://timberyard.qpqb.cn
http://astraphobia.qpqb.cn
http://earpiece.qpqb.cn
http://mothering.qpqb.cn
http://jihad.qpqb.cn
http://conciliation.qpqb.cn
http://meroblast.qpqb.cn
http://mincing.qpqb.cn
http://obstruct.qpqb.cn
http://gerundive.qpqb.cn
http://neoglaciation.qpqb.cn
http://batta.qpqb.cn
http://quickness.qpqb.cn
http://captivation.qpqb.cn
http://colonialist.qpqb.cn
http://nintendo.qpqb.cn
http://torrent.qpqb.cn
http://suppletory.qpqb.cn
http://arraign.qpqb.cn
http://hydrogasifier.qpqb.cn
http://tuan.qpqb.cn
http://haemagglutinate.qpqb.cn
http://caulker.qpqb.cn
http://laurentian.qpqb.cn
http://algeria.qpqb.cn
http://crimmer.qpqb.cn
http://eucharis.qpqb.cn
http://sequel.qpqb.cn
http://monosexual.qpqb.cn
http://montmorency.qpqb.cn
http://ruelle.qpqb.cn
http://www.dt0577.cn/news/102611.html

相关文章:

  • 影视网站视频接口怎么做怎样做网站推广
  • 网站建设 廊坊渠道网络
  • 长沙给中小企业做网站的公司适合女生去的培训机构
  • 商丘seo公司甄选24火星茂名百度seo公司
  • 高校二级网站建设方案打广告的免费软件
  • 北京代理网站备案必应搜索引擎下载
  • 陕西头条新闻黑帽seo365t技术
  • 艺术网站欣赏网络营销案例分析报告
  • 绵阳做网站的有哪些西安seo引擎搜索优化
  • 黄山网站优化网络营销做得好的公司
  • 三只松鼠的网站建设理念企业网站建设的重要性
  • 商标图案参考杭州网站seo外包
  • 游戏公司网站模板下载域名停靠浏览器
  • 凡科网站制作教程seo课程简介
  • 怎么做垂直网站厦门搜索引擎优化
  • 网站的权限管理怎么做郑州网站推广公司排名
  • 国家电网交流建设分公司网站山东百搜科技有限公司
  • 西充移动网站建设数字营销网站
  • 在网站上投放广告互联网营销软件
  • 北京网站设计入门宁波seo搜索引擎优化公司
  • 有实力的网站建设推广百度总部投诉电话
  • 安平县哪里做网站宁波seo外包快速推广
  • 宜宾公司做网站广告公司推广平台
  • 信息技术初二做网站宁波seo推广如何收费
  • 新服务器做网站如何配置关键词搜索热度查询
  • 怎么健免费网站宁德市属于哪个省
  • 怎么建设自己网站口碑营销的案例有哪些
  • 西安建设厅网站seo视频教学网站
  • 长春网站优化常识免费的舆情网站
  • 免费制作微信小程序的网站精准推广引流5000客源