文件名称:8253
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [Text]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 尹*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
用8253作为秒定时器,每0.1秒8253周期定时中断,8253的OUT0接到8259的IRO端,8259向8086产生中断请求,中断类型号为08H。程序开辟秒、分、小时、寄存器单元,秒寄存器每记数满60,分寄存器值加1,同时秒寄存器清0。分寄存器每记数满60,小时寄存器值加1,同时分寄存器清0。秒、分、小时寄存器中的二进制值转换成BCD码后,送6位LED数码管显示。-Using 8253 as a second timer, 0.1 seconds per cycle timer interrupt 8253, 8253 received OUT0 of the IRO-end 8259, 8259 to 8086 generate an interrupt request, interrupt type number 08H. Procedures for opening seconds, minutes, hours, register unit, the number of seconds register each entry age of 60, sub-register value plus 1, and 0 seconds register ching. Sub-registers each counting the age of 60, hour register value plus 1, while sub-register-ching 0. Seconds, minutes and hours registers in the binary value into BCD code, to send six LED digital tube display.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
8253.txt