- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
ENEE 440Chapter 7.ppt
ENEE 440Chapter 7 8254 Timer 8254 Register SelectThe 8254 timer is actually 3 timers in one. It is an upgraded version of the 8253 timer which was used in the PC/XT. The PC/AT uses the 8254. The decoding scheme is shown below: -CS A1 A0 REGISTER 0 0 0 Counter 0 0 0 1 Counter 1 0 1 0 Counter 2 0 1 1 Control Register 1 X X 8254 NOT SELECTED 8254 Timer Summary The counters are 16 bits wide. The count is loaded and read 8 bits at a time. The order is always LSB first and then MSB. CLK is the frequency of the input clock. OUT is the output which depends on the mode of operation. GATE disables the counter with 0V and enables it with 5V. 8254 Timer Modes ... MODE 0 Interrupt on terminal count: The output goes high when the counter decrements to zero(TC). This output can be connected to an external device to signal an interrupt. MODE 1 Hardware retriggerable one-shot: Also called programmable one-shot. The output goes low when triggered by a 0-1 pulse applied to the gate input. The output goes high on TC (count down to zero). Retriggerable means that during the count-down another 0-1 pulse can retrigger the counter to reload the initial count and start the count-down again. Thus the width of the output (one-shot) can be increased. 8254 Timer Modes ... MODE 2 Rate Generator: This gives a periodic output whose frequency depends on the number N loaded into the counter. This is a divide by N counter. The output stays high until the counter decrements to 1. The output then goes low for one clock cycle and the counter is reloaded with the initial count N. The cycle is repeated. 8254 Timer Modes ... MODE 3 Square Wave Generator: If N is even, output is high for N/2 clock cycles and low for N/2 pulses. Thus the duty cycle is 50% and it is a divide by N counter. If N is odd then OUT is low for (N-1)/2 clock cycles and
您可能关注的文档
- Chapter 3:栈、队列.ppt
- Chapter 4 Socialization.ppt
- Chapter 4 The Audio-Lingual Method.ppt
- Chapter 4. Depository Institutions“Banks”.ppt
- Chapter 4Antigen.ppt
- Chapter 4Compounds and Their Bonds.PPT
- Chapter 4Creating a Positive Work Environment.ppt
- Chapter 4Measuring Concrete Work.ppt
- Chapter 4Mendelian Inheritance.ppt
- Chapter 4Numbers董封中学 高云飞.ppt
- English Idioms VS Chinese Idioms.ppt
- English PoetryTradition and ModernismLin YupengMay,2004.ppt
- Enhancing Synchronization in Directed Complex Networks.ppt
- Enmin Li.ppt
- Enough is as good as a feast.ppt
- ENUM技术标准.ppt
- Environmental Geology, November 8.ppt
- ERP(企业资源规划).ppt
- Eukaryotic Cell StructureChapter 7.ppt
- EV2 工程科技在线数据库(Engineering Village 2 ™)产品更新.ppt
文档评论(0)