Electronic Components Datasheet Search |
|
HT82A836R Datasheet(PDF) 8 Page - Holtek Semiconductor Inc |
|
HT82A836R Datasheet(HTML) 8 Page - Holtek Semiconductor Inc |
8 / 75 page HT82A836R Rev. 1.10 8 August 5, 2011 Arithmetic and Logic Unit - ALU The arithmetic-logic unit or ALU is a critical area of the microcontroller that carries out arithmetic and logic op- erations of the instruction set. Connected to the main microcontroller data bus, the ALU receives related in- struction codes and performs the required arithmetic or logical operations after which the result will be placed in the specified register. As these ALU calculation or oper- ations may result in carry, borrow or other status changes, the status register will be correspondingly up- dated to reflect these changes. The ALU supports the following functions: · Arithmetic operations: ADD, ADDM, ADC, ADCM, SUB, SUBM, SBC, SBCM, DAA · Logic operations: AND, OR, XOR, ANDM, ORM, XORM, CPL, CPLA · Rotation RRA, RR, RRCA, RRC, RLA, RL, RLCA, RLC · Increment and Decrement INCA, INC, DECA, DEC · Branch decision, JMP, SZ, SZA, SNZ, SIZ, SDZ, SIZA, SDZA, CALL, RET, RETI Program Memory The Program Memory is the location where the user code or program is stored. The device contains One-Time Programmable, OTP, memory where users can program their application code into the device. By using the appropriate programming tools, OTP devices offer users the flexibility to freely develop their applica- tions, which may be useful during debug or for products requiring frequent upgrades or program changes. OTP devices are also applicable for use in applications that require low or medium volume production runs. Organisation The Program Memory has a capacity of 8K by 16 bits. The Program Memory is addressed by the Program Counter and also contains data, table information and interrupt entries. Table data, which can be setup in any location within the Program Memory, is addressed by separate table pointer registers. Special Vectors Within the Program Memory, certain locations are re- served for special usage such as reset and interrupts. · Location 000H This vector is reserved for use by the device reset for program initialisation. After a device reset is initiated, the program will jump to this location and begin execution. · Location 004H This vector is used by the USB interrupt. If a USB in- terrupt occurs, the program will jump to this location and begin execution if the USB interrupt is enabled and the stack is not full. · Location 008H This vector is used by the Timer/Event Counter 0. If a counter overflow occurs, the program will jump to this location and begin execution if the timer interrupt is enabled and the stack is not full. · Location 00CH This vector is used by the Timer/Event counter 1. If a counter overflow occurs, the program will jump to this location and begin execution if the timer interrupt is enabled and the stack is not full. · Location 010H This vector is used by the play interrupt service pro- gram. If play data occurs, the program will jump to this location and begin execution if the play interrupt is en- abled and the stack is not full. · Location 014H This vector is used by the Multi-function interrupt. If an interrupt results from a serial interface interrupt, an end of 12-bit A/D conversion cycle or an external inter- rupt, the program will jump to this location and begin execution if the relevant interrupt is enabled and the stack is not full. · Location 018H This area is used by the Record interrupt. If record data occurs, the program will jump to this location and begin execution if the timer interrupt is enabled and the stack is not full. P r o g r a m C o u n t e r S t a c k L e v e l 1 S t a c k L e v e l 2 S t a c k L e v e l 3 S t a c k L e v e l 1 6 P r o g r a m M e m o r y T o p o f S t a c k S t a c k P o i n t e r B o t t o m o f S t a c k 0 0 0 C H P r o g r a m M e m o r y 0 0 1 8 H 0 0 1 B H 1 F F F H 0 0 2 0 H 1 6 b i t s 0 0 1 0 H 0 0 1 4 H 0 0 0 0 H 0 0 0 4 H 0 0 0 8 H U S B I n t e r r u p t S u b r o u t i n e T i m e r / E v e n t C o u n t e r 0 I n t e r r u p t S u b r o u t i n e T i m e r / E v e n t C o u n t e r 1 I n t e r r u p t S u b r o u t i n e L o o k - u p T a b l e ( 2 5 6 w o r d s ) R e c o r d I n t e r r u p t S u b r o u t i n e D e v i c e I n i t i a l i z a t i o n P r o g r a m P l a y I n t e r r u p t S u b r o u t i n e M u l t i - f u n c t i o n 1 I n t e r r u p t S u b r o u t i n e Program Memory Structure |
Similar Part No. - HT82A836R |
|
Similar Description - HT82A836R |
|
|
Link URL |
Privacy Policy |
ALLDATASHEET.NET |
Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | 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 |