| 数据搜索系统,热门电子元器件搜索 |
|
HT86B05 数据表(PDF) 32 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT86B05 数据表(HTML) 32 Page - Holtek Semiconductor Inc |
|
32 / 79 page ![]() HT86BXX/HT86BRXX Rev. 1.60 32 October 20, 2009 Timer Registers Depending upon which device is selected, all devices contain three or four integrated Timers of either 8-bit or 16-bit size. All devices contain three 8-bit Timers whose associated registers are known as TMR0, TMR1 and TMR3, which is the location where the associated timer's 8-bit value is located. Their associated control registers, known as TMR0C, TMR1C and TMR3C, con- tain the setup information for these timers. Some de- vices also contain an additional 16-bit timer whose register pair name is known as TMR2L/TMR2H and is the location where the timer's 16-bit value is located. An associated control register, known as TMR2C, contains the setup information for this timer. Note that all timer registers can be directly written to in order to preload their contents with fixed data to allow different time inter- vals to be setup. Input/Output Ports and Control Registers Within the area of Special Function Registers, the I/O registers and their associated control registers play a prominent role. All I/O ports have a designated register correspondingly labeled as PA, PB, PD, etc. These la- beled I/O registers are mapped to specific addresses within the Data Memory as shown in the Data Memory table, which are used to transfer the appropriate output or input data on that port. With each I/O port there is an associated control register labeled PAC, PBC, PDC, etc., also mapped to specific addresses with the Data Memory. The control register specifies which pins of that port are set as inputs and which are set as outputs. To setup a pin as an input, the corresponding bit of the con- trol register must be set high, for an output it must be set low. During program initialisation, it is important to first setup the control registers to specify which pins are out- puts and which are inputs before reading data from or writing data to the I/O ports. One flexible feature of these registers is the ability to directly program single bits us- ing the ²SET [m].i² and ²CLR [m].i² instructions. The ability to change I/O pins from output to input and vice-versa by manipulating specific bits of the I/O control registers during normal program operation is a useful feature of these devices. Voice ROM Data Address Latch Counter Registers These are the LATCH0H/LATCH0M/LATCH0L, LATCH1H/LATCH1M/LATCH1L and the Voice ROM data registers. The voice ROM data address latch coun- ter provides the handshaking between the microcontroller and the voice ROM, where the voice codes are stored. Eight bits of voice ROM data will be addressed by using the 22-bit address latch counter, which is composed of LATCH0H/LATCH0M/LATCH0L or LATCH1H/LATCH1M/LATCH1L. After the 8-bit voice ROM data is addressed, several instruction cycles of at least 4us at least, will be required to latch the voice ROM data, after which the microcontroller can read the voice data from LATCHD. Voice Control and Audio output Registers - VOICEC, DAL, DAH, VOL The device includes a single 12-bit current type DAC function for driving an external 8 W speaker through an external NPN transistor. The programmer must write the voice data to the DAL/DAH registers. Pulse Width Modulator Registers - PWMC, PWML, PWMH Each device contains a single 12-bit PWM function for driving an external 8 W speaker. The programmer must write the voice data to PWML/PWMH register. Analog Switch Registers - ASCR Some devices, include 8 analog switch lines, which have an associated register, known as ASCR, for their setup and control. External RC Oscillation Converter Registers - RCOCCR, RCOCR, TMR4L, TMR4H For the HT86B40/HT86B50/HT86B60/HT86BR60/ HT86B70/ HT86B80/HT86B90 devices, which have two 16-bit programmable timers, the TMR4L and TMR4H registers are for one of the 16-bit timers. The RCOCCR and RCOCR registers are the control registers for the external RC oscillator. |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |