| Electronic Components Datasheet Search |
|
HT95R35 Datasheet(PDF) 17 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT95R35 Datasheet(HTML) 17 Page - Holtek Semiconductor Inc |
|
17 / 73 page ![]() HT95R35 Rev. 1.00 17 October 7, 2009 The Z, OV, AC and C flags generally reflect the status of the latest operations. · C is set if an operation results in a carry during an ad- dition operation or if a borrow does not take place dur- ing a subtraction operation; otherwise C is cleared. C is also affected by a rotate through carry instruction. · AC is set if an operation results in a carry out of the low nibbles in addition, or no borrow from the high nib- ble into the low nibble in subtraction; otherwise AC is cleared. · Z is set if the result of an arithmetic or logical operation is zero; otherwise Z is cleared. · OV is set if an operation results in a carry into the high- est-order bit but not a carry out of the highest-order bit, or vice versa; otherwise OV is cleared. · PDF is cleared by a system power-up or executing the ²CLR WDT² instruction. PDF is set by executing the ²HALT² instruction. · TO is cleared by a system power-up or executing the ²CLR WDT² or ²HALT² instruction. TO is set by a WDT time-out. In addition, on entering an interrupt sequence or execut- ing a subroutine call, the status register will not be pushed onto the stack automatically. If the contents of the status registers are important and if the subroutine can corrupt the status register, precautions must be taken to correctly save it. Interrupt Control Register - INTC0, INTC1 These two 8-bit register, known as the INTC0 and INTC1 registers, control the operation of all interrupts. By setting various bits within this register using standard bit manipulation instructions, the enable/disable func- tion of the external and timer interrupts can be inde- pendently controlled. A master interrupt bit within this register, the EMI bit, acts like a global enable/disable and is used to set all of the interrupt enable bits on or off. This bit is cleared when an interrupt routine is entered to disable further interrupt and is set by executing the ²RETI² instruction. Timer/Event Counter Registers This device contains three 16-bit Timer/Event Counters, which have associated register pairs known as TMR0L/ TMR0H, TMR1L/TMR1H and TMR2L/TMR2H. These are the locations where the timers 16-bit value is lo- cated. Three associated control registers, known as TMR0C, TMR1C and TMR2C, contain the setup infor- mation for these three timers. 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, PC, PD, PE, PF and PG. These labeled I/O registers are mapped to specific ad- dresses within the Data Memory as shown in the Data Memory table, which are used to transfer the appropri- ate output or input data on that port. With each I/O port there is an associated control register labeled PAC, PCC, PDC, PEC, PFC and PGC, also mapped to spe- cific addresses with the Data Memory. Except PC2 and PC3, the control register specifies which pins of that port are set as inputs and which are set as outputs. PC2 or PC3 is NMOS output, so the corresponding bit of the control register is not implemented. To setup a pin as an input, the corresponding bit of the control register must be set high, for an output it must be set low. During pro- gram initialization, it is important to first setup the control registers to specify which pins are outputs 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 using the ²SET [m].i ² and ²CLR [m].i² instructions. The ability to change I/O pins from output to input and vice versa by manipu- lating specific bits of the I/O control registers during nor- mal program operation is a useful feature of these devices. DTMF Registers - DTMFC, DTMFD, DTRXC, DTRXD The device contains fully integrated DTMF receiver and generator circuitry for decoding and generation of DTMF signals. The DTMF receiver requires two registers to control its operation, a DTRXC control register to control its overall function and a DTRXD register to store the DTMF decoded signal data. The DTMF generator also requires two registers for its operation, a DTMFC register for its overall control and DTMFD register to store the dig- ital codes that are to be generated as DMTF signals. Mode Register - MODE, MODE_1 The device supports two system clock and four operation modes. The system clock could be 32768Hz or HCLK and operation mode could be Normal, Green, Sleep or Idle mode. These are all selected by the software. MODE_1 register supports four high frequency clock (HCLK) for CPU which are 3.58MHz, 7.16MHz, 10.74MHz and 14.32 MHz. MFIC Register - MFIC0 PC0, PC5 and PC7 could be used to trigger an extra in- terrupt. They are enabled or disabled individually by bit0~bit2 of MFIC0. When a multi-function interrupt oc- curs, the programmer should check bit4~bit6 of MFIC0 to determine the cause of the interrupt. MFIC1 Register - MFIC1 SPI/I 2C interrupt, external peripheral interrupt, timer 2 interrupt are three additional multi-function interrupts. They are enabled or disabled individually by bit0~2 of MFIC1. When a multi-function interrupt occurs, the pro- |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |