登录
首页 » 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 65
下载积分: 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 个回复

  • 中间配套传感器的测试 avr 有很多地方需要改进
    中间配套传感器的测试 avr 有很多地方需要改进-middle matching sensor test avr many areas need improvement
    2022-04-15 22:41:31下载
    积分:1
  • 一个完整的51单片机的操作糸统源程序! 内容十分丰富!很有借鉴价值!...
    一个完整的51单片机的操作糸统源程序! 内容十分丰富!很有借鉴价值!-a complete 51 MCU operating range EC source! Very rich! Very valuable reference!
    2022-01-26 05:46:06下载
    积分:1
  • 又一个远程抄表系统程序,是电力线载波通信的,用汇编编写....
    又一个远程抄表系统程序,是电力线载波通信的,用汇编编写.-also a remote meter reading system procedures, the power line carrier communication with the preparation of the compilation.
    2022-02-12 15:37:51下载
    积分:1
  • This is a process pid to complete the calculation and control process PID
    这是一个pid 程序,完成PID的计算和控制过程-This is a process pid to complete the calculation and control process PID
    2022-05-20 07:49:36下载
    积分:1
  • MSC1210 Chinese data
    MSC1210中文资料--内核兼容8051的MSC1210单片机,具有高性能ADC、片内存储器以及Flash编程应用等功能。实际应用系统往往需要进行高精度的测量,同时还必须进行实时快速控制,提高其开发效率。为此人们常采用高精度A/D芯片加带ISP开发功能的单片机系统来实现。德州仪器(TI)的MSC1210单片机解决了上述问题。它集成了一个增强型8051内核、高达33 MHz的时钟周期、8路24位高精度∑-△A/D转换器、Flash存储器等-MSC1210 Chinese data- 8051 MSC1210 microcontroller core compatible with high-performance ADC, on-chip Flash program memory and application functions. Practical applications often require high-precision measurements, but also the need for real-time fast control, to improve their development efficiency. To do this people often use high-precision A/D chip increases with ISP microcontroller system development function to achieve. Texas Instruments (TI) of the MSC1210 microcontroller to solve the above problems. It integrates an enhanced 8051 core, up to 33 MHz clock cycle, 8-channel 24-bit high-precision Σ-△ A/D converter, Flash memory, and so on ... ...
    2022-01-25 22:40:17下载
    积分:1
  • This is a stepper motor control of the two procedures can be used as the drive m...
    这是一个控制两个步进电机的程序,可以作为小车的驱动电机程序,实现正、反转、转弯等功能-This is a stepper motor control of the two procedures can be used as the drive motor vehicle procedures, implementation is, reverse, turning and other functions
    2022-05-30 16:03:59下载
    积分:1
  • AVR GCC IO口模拟的IIC总线。
    AVR GCC IO口模拟的IIC总线。-AVR GCC IO port simulation IIC bus.
    2023-02-10 10:10:04下载
    积分:1
  • 异步电机无速度传感器直接功率控制系统,很好的资料
    异步电机无速度传感器直接功率控制系统,很好的资料-Induction motor speed sensorless direct power control systems, good information
    2022-07-15 20:34:22下载
    积分:1
  • 一个电表的程序,能够直接使用,该芯片使用的是7169,请大家参阅...
    一个电表的程序,能够直接使用,该芯片使用的是7169,请大家参阅-a meter procedures can directly use, the chip is used in 7169, please refer to
    2023-02-18 18:15:03下载
    积分:1
  • 含PPT和书籍插图,
    含PPT和书中的例图,《基于PROTEUS的电路及单片机系统设计与仿真》随书光盘-Containing PPT and book illustration,
    2022-01-25 21:33:19下载
    积分:1
  • 696522资源总数
  • 104031会员总数
  • 39今日下载