| Electronic Components Datasheet Search |
|
HT83F02 Datasheet(PDF) 18 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT83F02 Datasheet(HTML) 18 Page - Holtek Semiconductor Inc |
|
18 / 64 page ![]() HT83F02 Rev. 1.20 18 November 19, 2010 Interrupt Control Register - INTC, INTCH Two 8-bit register, known as the INTC and INTCH regis- ters, controls the operation of both external and internal timer interrupts. By setting various bits within these reg- isters using standard bit manipulation instructions, the enable/disable function of the external and timer inter- rupts can be independently controlled. A master inter- rupt bit within this register, the EMI bit, acts like a global enable/disable and is used to set all of the interrupt en- able 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. Note: In situations where other interrupts may require servicing within present interrupt service rou- tines, the EMI bit can be manually set by the pro- gram after the present interrupt service routine has been entered. Timer Registers All devices contain two 8-bit Timers whose associated registers are known as TMR0 and TMR1 which is the lo- cation where the associated timer's 8-bit value is lo- cated. Their associated control registers, known as TMR0C and TMR1C, contain the setup information for these timers. Note that all timer registers can be directly written to in order to preload their contents with fixed data to allow different time intervals 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 and PC. 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 and PCC, also mapped to specific addresses with the Data Mem- ory. 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 control register must be set high, for an output it must be set low. During program initialization, 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 reg- isters during normal program operation is a useful fea- ture of these devices. Port C Pull-high Control Register - PCPHC Port C pull-high control register, PCPHC, is used to set the Port C pull high function. T O P D F O V Z A C C S T A T U S R e g i s t e r A r i t h m e t i c / L o g i c O p e r a t i o n F l a g s C a r r y f l a g A u x i l i a r y c a r r y f l a g Z e r o f l a g O v e r f l o w f l a g S y s t e m M a n a g e m e n t F l a g s P o w e r d o w n f l a g W a t c h d o g t i m e - o u t f l a g N o t i m p l e m e n t e d , r e a d a s " 0 " b 7 b 0 Status Register P C P H C R e g i s t e r b 7 b 0 C o n t r o l t h e P o r t C P u l l - H i g h 1 : e n a b k e 0 : d i s a b l e - d e f a u l t N o t i m p l e m e n t e d , r e a d a s " 0 " P C P H C 0 P C P H C 1 P C P H C 2 Port C Pull-High Control Register |
|
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 |