| Electronic Components Datasheet Search |
|
HT46CU67 Datasheet(PDF) 9 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46CU67 Datasheet(HTML) 9 Page - Holtek Semiconductor Inc |
|
9 / 67 page ![]() HT46RU67/HT46CU67 Rev. 1.10 9 May 27, 2010 microcontroller manages program control by loading the required address into the Program Counter. For condi- tional skip instructions, once the condition has been met, the next instruction, which has already been fetched during the present instruction execution, is dis- carded and a dummy cycle takes its place while the cor- rect instruction is obtained. The lower byte of the Program Counter, known as the Program Counter Low register or PCL, is available for program control and is a readable and writable register. By transferring data directly into this register, a short pro- gram jump can be executed directly, however, as only this low byte is available for manipulation, the jumps are limited to the present page of memory, that is 256 loca- tions. When such program jumps are executed it should also be noted that a dummy cycle will be inserted. As the Program Memory is stored in two Banks, the Bank selection is under the control of bit 5 of the Bank Pointer. It is this Bank Pointer bit that controls the highest address bit of the Program Counter as shown in the diagram. Program Memory The program memory is used to store the program in- structions, which are to be executed. It also contains data, table, and interrupt entries, and is organized into a format of 32768 ´16 bits, which are addressed by the PC and table pointer. The Program Memory is divided into two banks, Bank0 and Bank1. Each bank has a capacity of 8192 ´16 bits and is selected using bits BP.5 and PB.6 in the the bank pointer register. With BP = 000XXXXXB, Bank 0 is selected and with BP = 001XXXXXB, Bank 1 is selected, Bank 2 is selected and with BP = 010xxxxxB; Bank 3 is selected and with BP = 011xxxxxB. The JMP and CALL instructions provide only 13 bits of address to allow branching within any 8K program memory bank. When executing a JMP or CALL instruction, the user must ensure that the bank pointer bit, BP.5, BP.6 is pro- grammed so that the desired program memory bank is addressed. If a return from a CALL instruction or inter- rupt is executed, the entire 14 bit PC is popped off the stack. Therefore, manipulation of the BP.5 is not re- quired when the RET or RETI instructions are executed. Certain locations in the Program Memory are reserved for special usage: · Location 000H Location 000H is reserved for program initialisation. After a device reset, the program will jump to this loca- tion and begin execution. · Location 004H Location 004H is reserved for the external interrupt or the A/D converter interrupt, selected via configuration option. If the INT0 input pin is activated or if an A/D conversion has completed, the interrupt is enabled, and the stack is not full, the program begins execution at location 004H. · Location 008H Location 008H is also reserved for the external inter- rupt service program or serial interface interrupt, se- lected via configuration option. If the INT1 input pin is activated, or 8-bit data have been received/transmit- ted successful from serial interface, the interrupt is en- abled, and the stack is not full, the program will jump to this location and begin execution. · Location 00CH Location 00CH is reserved for the Timer/Event Coun- ter 0 interrupt service program. If a timer interrupt re- sults from a Timer/Event Counter 0 overflow, and if the interrupt is enabled and the stack is not full, the pro- gram will jump to this location and begin execution. Instruction(s) Table Location *14~*8 *7 *6 *5 *4 *3 *2 *1 *0 TABRDC [m] TBHP @7 @6 @5 @4 @3 @2 @1 @0 TABRDL [m] 1111111 @7 @6 @5 @4 @3 @2 @1 @0 Table Location Note: *14~*0: Table location bits TBHP: Table pointer higher-order bits @7~@0: Table pointer lower-order bits (TBLP) 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 E x t e r n a l i n t e r r u p t 0 s u b r o u t i n e / A / D C o n v e r t e r I n t e r r u p t 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 P r o g r a m M e m o r y ( 8 1 9 2 ´ 4 B a n k ) L o o k - u p t a b l e ( 2 5 6 w o r d s ) N o t e : n r a n g e s f r o m 0 t o 1 F E x t e r n a l I n t e r r u p t 1 S u b r o u t i n e o r S e r i a l I n t e r f a c e I n t e r r u p t U A R T B u s I n t e r r u p t o r S e r i a l I n t e r f a c e I n t e r r u p t M u l t i - F u n c t i o n I n t e r r u p t L o o k - u p t a b l e ( 2 5 6 w o r d s ) 1 6 b i t s 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 0 0 0 H 0 0 4 H 0 0 8 H 0 1 4 H 1 F F F H 0 1 8 H 0 0 C H n 0 0 H n F F H 0 1 0 H 1 F 0 0 H Program Memory |
|
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 |