登录
首页 » SCM » 8253的初始化程序举例: 例1:选择2号计数器,工作在3方式,计数初值为533H(2个字节),采用二进制计数。其初始化程序段为 MOV DX,307...

8253的初始化程序举例: 例1:选择2号计数器,工作在3方式,计数初值为533H(2个字节),采用二进制计数。其初始化程序段为 MOV DX,307...

于 2023-08-04 发布 文件大小:90.73 kB
0 85
下载积分: 2 下载次数: 1

代码说明:

8253的初始化程序举例: 例1:选择2号计数器,工作在3方式,计数初值为533H(2个字节),采用二进制计数。其初始化程序段为 MOV DX,307H ;命令口 MOV AL,10110110B ;2号计数器的初始化命 令字 OUT DX,AL ;写入命令寄存器 MOV DX,306H ;2号计数器数据口 MOV AX,533H ;计数初值 OUT DX,AL ;选送低字节到2号计数器 MOV AL,AH ;取高字节送AL OUT DX,AL ;后送高字节到2号计数器 -8253 initialization procedures examples : Example 1 : Select counters on the 2nd, in three ways. Counting for the initial 533H (2 bytes), a binary counting. Initialization of its procedures for MOV DX, 307H; I ordered MOV AL, 10110110B; on the 2nd Counter initialize command word OUT DX, AL; write commands Register MOV DX, 306H; data on the 2nd Counter I MOV AX, 533H; Counting initial OUT DX, AL; low-byte sent to the 2nd Counter MOV AL, AH; With a high-byte send AL OUT DX, AL; evacuations high byte counter to the 2nd

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 89C51的EEPROM代码
    89C51的EEPROM代码-89C51 EEPROM code
    2022-03-10 00:26:50下载
    积分:1
  • 我认为很经典的供初学者学习的数码管显示程序
    我认为很经典的供初学者学习的数码管显示程序-I think that is very classic for beginners to learn the digital tube display program
    2022-02-24 22:14:19下载
    积分:1
  • 德州仪器公司推出的ADS7870型低功耗数据采集器件的ARM控制源程序...
    德州仪器公司推出的ADS7870型低功耗数据采集器件的ARM控制源程序-Texas Instruments Introduces ADS7870 type of low-power data acquisition devices ARM control source
    2022-05-14 07:47:55下载
    积分:1
  • 128
    128-64点阵液晶模块的显示程序带反显平移等功能.rar,非常实用.-128-64 dot-matrix LCD display module procedures with significant anti-translation capabilities. Rar, very practical.
    2022-07-02 09:53:57下载
    积分:1
  • DS18B20 temperature acquisition and display program output, using assembly langu...
    DS18B20温度采集和输出显示程序,用汇编语言实现-DS18B20 temperature acquisition and display program output, using assembly language to achieve
    2022-12-15 18:15:03下载
    积分:1
  • PHILIPS P87C591 PeliCan C语言开发库,极大方便了对591的CAN开发。
    PHILIPS P87C591 PeliCan C语言开发库,极大方便了对591的CAN开发。-PHILIPS P87C591 PeliCan C language library, a great convenience for the development of CAN 591.
    2023-07-15 18:55:04下载
    积分:1
  • With the 8051 DS18B20 display is used LED, Microcontroller with AT89S52. To do t...
    用8051单片机 DS18B20显示是用LED,单片机用AT89S52. 做的温度控制系统-With the 8051 DS18B20 display is used LED, Microcontroller with AT89S52. To do temperature control system
    2023-08-09 23:25:02下载
    积分:1
  • single
    单键遥控码学习控制器,很好用的一个小程序,绝对原创,对了解单片机通讯的用户是一个很好的参考程序-single-button remote control codes learning controller, a very good use of small programs, absolute originality to understand SCM communications users is a good reference procedures
    2022-02-04 10:39:08下载
    积分:1
  • Walk little green men is to use ht1632 driver from 6* 8* 8 block matrix consisti...
    行走小绿人是用ht1632驱动程序由6*8*8块矩阵组成的24*16LED点阵屏幕来显示行走小绿人的动画。主芯片控制采矿ht4810a数据传输,
    2022-02-21 08:41:37下载
    积分:1
  • * Hardware architecture: PA0
    * 硬件结构: PA0-5对应6个LED数显管的位 ,PC0-7对应各LED数显管的段 ,PB4-7为键盘。 * 软件描述: 上电后,时钟从00.00.00(时/分/秒)自动走时,在走时状态时 , 按PB4(设定 * 键)超过3秒可循环选择调整时间/工作参数 ,接着按PB5以确定选择的操作 ,进入调整操作后 , * 按PB5选择欲调整参数,按PB6(增加键)完成调整参数操作 。按PB7,进入时控运行,PB1亮, * 再按PB7停止时控运行,回显走时。在定时到时,PB0点亮。- * Hardware architecture: PA0-5 corresponds 6 LED numbers to reveal the tube the position, PC0-7 corresponds each LED number to reveal the tube the section, PB4-7 is a keyboard. * Software description: After on electricity, clock from 00.00.00 (when/a minute/second) is in luck automatically, when is in luck the condition, according to PB4 (hypothesis * The key) surpasses for 3 seconds to be possible to circulate the choice time/operational parameter, then presses PB5 by to determine the choice the operation, after enters the adjustment operation * Wants according to the PB5 choice to adjust the parameter, (increases key) according to PB6 to complete the adjustment parameter operation.According to PB7, enters when controls the mov
    2022-04-16 19:29:12下载
    积分:1
  • 696518资源总数
  • 104349会员总数
  • 32今日下载