Holtek HT48RA5 Technical Document

Remote type 8-bit mcu

Advertisement

Quick Links

Technical Document
·
Tools Information
·
FAQs
·
Application Note
-
HA0016E Writing and Reading to the HT24 EEPROM with the HT48 MCU Series
-
HA0018E Controlling the HT1621 LCD Controller with the HT48 MCU Series
-
HA0041E Using the HT48CA0 to Generate the HT6221 Output Signals
-
HA0075E MCU Reset and Oscillator Circuits Application Note
-
HA0076E HT48RAx/HT48CAx Software Application Note
-
HA0082E HT48xA0-1 and HT48xA0-2 Power-on Reset Timing
Features
·
Operating voltage: 2.0V~5.5V
·
23 bidirectional I/O lines (max.)
·
1 interrupt input shared with an I/O line
·
8-bit programmable timer/event counter with
overflow interrupt and 8-stage prescaler (TMR0)
·
16-bit programmable timer/event counter and
overflow interrupts (TMR1)
·
On-chip crystal and RC oscillator
·
Watchdog Timer
·
40K´16 program memory (8K´16 bits´5 banks)
·
224´8 data memory RAM
·
PFD supported
General Description
The HT48RA5/HT48CA5 are 8-bit high performance,
RISC architecture microcontroller devices specifically
designed for multiple I/O control product applications.
The data ROM can be used to store remote control
codes. The mask version HT48CA5 is fully pin and func-
tionally compatible with the OTP version HT48RA5 de-
vice.
Rev. 1.40
HT48RA5/HT48CA5
Remote Type 8-Bit MCU
·
HALT function and wake-up feature reduce power
consumption
·
8-level subroutine nesting
·
Up to 1ms instruction cycle with 4MHz system clock at
V
=3V
DD
·
Bit manipulation instruction
·
16-bit table read instruction
·
63 powerful instructions
·
All instructions in one or two machine cycles
·
Low voltage reset function
·
28-pin SOP/SSOP (209mil) package
The advantages of low power consumption, I/O flexibil-
ity, timer functions, oscillator options, watchdog timer,
programmable frequency divider, HALT and wake-up
functions, as well as low cost, enhance the versatility of
these devices to suit a wide range of application possi-
bilities such as industrial control, consumer products,
subsystem controllers, and particularly suitable for use
in products such as universal remote controller (URC).
1
May 22, 2009

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HT48RA5 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Holtek HT48RA5

  • Page 1 The mask version HT48CA5 is fully pin and func- these devices to suit a wide range of application possi- tionally compatible with the OTP version HT48RA5 de- bilities such as industrial control, consumer products, vice.
  • Page 2: Block Diagram

    HT48RA5/HT48CA5 Block Diagram T M R 1 C S Y S P F 0 / I N T P C 5 / T M R 1 T M R 1 I n t e r r u p t C i r c u i t...
  • Page 3: Pin Description

    HT48RA5/HT48CA5 Pin Description ROM Code Pin Name Description Option Bidirectional 8-bit input/output port. Each bit can be configured as a wake-up in- Wake-up* put by a option. Software instructions determine the CMOS output or Schmitt trig- PA0~PA7 Pull-high*** ger input with/without pull-high resistor. The pull-high resistor of each input/output line is also optional.
  • Page 4 HT48RA5/HT48CA5 D.C. Characteristics Ta=25°C Test Conditions Symbol Parameter Min. Typ. Max. Unit Conditions ¾ ¾ ¾ Operating Voltage ¾ No load, f =4MHz Operating Current ¾ Operating Current ¾ No load, f =8MHz (Crystal OSC, RC OSC) ¾ Standby Current (WDT Enabled and...
  • Page 5: Power-On Reset Characteristics

    HT48RA5/HT48CA5 A.C. Characteristics Ta=25°C Test Conditions Symbol Parameter Min. Typ. Max. Unit Conditions ¾ ¾ 2.0V~5.5V 4000 System Clock (Crystal OSC) SYS1 ¾ ¾ 3.3V~5.5V 8000 ¾ ¾ 2.0V~5.5V 4000 System Clock (RC OSC) SYS2 ¾ ¾ 3.3V~5.5V 8000 ¾...
  • Page 6: Functional Description

    HT48RA5/HT48CA5 Functional Description Execution Flow incremented by one. The program counter then points to the memory word containing the next instruction code. The system clock for the MCU is derived from either a crystal or an RC oscillator. The system clock is internally When executing a jump instruction, conditional skip ex- divided into four non-overlapping clocks.
  • Page 7 HT48RA5/HT48CA5 Program Memory - ROM 0 0 0 H 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 The program memory is used to store the program in- 0 0 4 H structions which are to be executed.
  • Page 8 HT48RA5/HT48CA5 I n d i r e c t A d d r e s s i n g R e g i s t e r 0 0 0 H sequently executed, stack overflow occurs and the first M P 0...
  • Page 9 HT48RA5/HT48CA5 Status Register - STATUS rupt requires servicing within the service routine, the EMI bit and the corresponding bit of the INTC may be This 8-bit register (0AH) contains the zero flag (Z), carry set to allow interrupt nesting. If the stack is full, the inter-...
  • Page 10 HT48RA5/HT48CA5 Oscillator Configuration During the execution of an interrupt subroutine, other in- terrupt acknowledge signals are held until the ²RETI² in- There are 2 oscillator circuits implemented in the struction is executed or the EMI bit and the related microcontroller.
  • Page 11 HT48RA5/HT48CA5 Watchdog Timer - WDT The WDT overflow under normal operation will initialize ²chip reset² and set the status bit ²TO². But in the HALT The WDT clock source is implemented by a dedicated mode, the overflow will initialize a ²warm reset² and only RC oscillator (WDT oscillator), instruction clock (system the program counter and SP are reset to zero.
  • Page 12 HT48RA5/HT48CA5 The port A wake-up and interrupt methods can be con- The functional unit chip reset status are shown below. sidered as a continuation of normal execution. Each bit Program Counter 000H in port A can be independently selected to wake up the...
  • Page 13 HT48RA5/HT48CA5 The states of the registers is summarized in the table. Reset WDT Time-out RES Reset RES Reset WDT Time-out Register (Power On) (Normal Operation) (Normal Operation) (HALT) (HALT)* xxxx xxxx uuuu uuuu uuuu uuuu uuuu uuuu uuuu uuuu xxxx xxxx...
  • Page 14 HT48RA5/HT48CA5 Timer/Event Counter 0 preload register and issues the interrupt request just like the other two modes. Two timer/event counters (TMR0, TMR1) are imple- mented in the device. The Timer/Event Counter 0 con- To enable the counting operation, the timer ON bit tains an 8-bit programmable count-up counter and the (T0ON;...
  • Page 15 HT48RA5/HT48CA5 There are 3 registers related to Timer/Event Counter 1; In pulse width measurement mode with the T1ON and TMR1H(0FH), TMR1L(10H), TMR1C(11H). Writing T1E bits are equal to one, once the TMR1 has received TMR1L will only put the written data to an internal...
  • Page 16 HT48RA5/HT48CA5 Timer/Event Counter 1 preload register. The Input/Output Ports Timer/Event Counter 1 will still operate until the overflow There are 23 bi-directional input/output lines in the mi- occurs (a Timer/Event Counter 1 reloading will occur at cro-controller, labeled from PA to PC and PF, which are the same time).
  • Page 17 HT48RA5/HT48CA5 After a chip reset, these input/output lines stay at high When calling a subroutine or an interrupt event occur- levels (pull-high options) or floating state (non-pull-high ring, the contents of the program counter are save into options). Each bit of these input/output latches can be stack registers.
  • Page 18 HT48RA5/HT48CA5 5 . 5 V L V R D e t e c t V o l t a g e L V R 0 . 9 V R e s e t S i g n a l R e s e t...
  • Page 19: Application Circuits

    HT48RA5/HT48CA5 Application Circuits V D D R e s e t 1 0 0 k W C i r c u i t R C S y s t e m O s c i l l a t o r...
  • Page 20 HT48RA5/HT48CA5 Example V D D P A 0 R e s e t 1 0 0 k W C i r c u i t P A 1 0 . 1 m F P A 2 R E S P A 3 0 .
  • Page 21: Instruction Set

    For easier understanding of the various instruction The standard logical operations such as AND, OR, XOR codes, they have been subdivided into several func- and CPL all have their own instruction within the Holtek tional groupings. microcontroller instruction set. As with the case of most...
  • Page 22 In addition to the above functional instructions, a range of other instructions also exist such as the ²HALT² in- ory is an extremely flexible feature of all Holtek microcontrollers. This feature is especially useful for struction for Power-down operations and instructions to...
  • Page 23 HT48RA5/HT48CA5 Mnemonic Description Cycles Flag Affected Rotate RRA [m] Rotate Data Memory right with result in ACC None Note RR [m] Rotate Data Memory right None RRCA [m] Rotate Data Memory right through Carry with result in ACC Note RRC [m]...
  • Page 24: Instruction Definition

    HT48RA5/HT48CA5 Instruction Definition ADC A,[m] Add Data Memory to ACC with Carry Description The contents of the specified Data Memory, Accumulator and the carry flag are added. The result is stored in the Accumulator. ACC ¬ ACC + [m] + C...
  • Page 25 HT48RA5/HT48CA5 CALL addr Subroutine call Description Unconditionally calls a subroutine at the specified address. The Program Counter then in- crements by 1 to obtain the address of the next instruction which is then pushed onto the stack. The specified address is then loaded and the program continues execution from this new address.
  • Page 26 HT48RA5/HT48CA5 CPL [m] Complement Data Memory Description Each bit of the specified Data Memory is logically complemented (1¢s complement). Bits which previously contained a 1 are changed to 0 and vice versa. [m] ¬ [m] Operation Affected flag(s) CPLA [m]...
  • Page 27 HT48RA5/HT48CA5 INC [m] Increment Data Memory Description Data in the specified Data Memory is incremented by 1. [m] ¬ [m] + 1 Operation Affected flag(s) INCA [m] Increment Data Memory with result in ACC Description Data in the specified Data Memory is incremented by 1. The result is stored in the Accumu- lator.
  • Page 28 HT48RA5/HT48CA5 OR A,x Logical OR immediate data to ACC Description Data in the Accumulator and the specified immediate data perform a bitwise logical OR op- eration. The result is stored in the Accumulator. ACC ¬ ACC ²OR² x Operation Affected flag(s)
  • Page 29 HT48RA5/HT48CA5 RLC [m] Rotate Data Memory left through Carry Description The contents of the specified Data Memory and the carry flag are rotated left by 1 bit. Bit 7 replaces the Carry bit and the original carry flag is rotated into bit 0.
  • Page 30 HT48RA5/HT48CA5 SBC A,[m] Subtract Data Memory from ACC with Carry Description The contents of the specified Data Memory and the complement of the carry flag are sub- tracted from the Accumulator. The result is stored in the Accumulator. Note that if the result of subtraction is negative, the C flag will be cleared to 0, otherwise if the result is positive or zero, the C flag will be set to 1.
  • Page 31 HT48RA5/HT48CA5 SIZ [m] Skip if increment Data Memory is 0 Description The contents of the specified Data Memory are first incremented by 1. If the result is 0, the following instruction is skipped. As this requires the insertion of a dummy instruction while the next instruction is fetched, it is a two cycle instruction.
  • Page 32 HT48RA5/HT48CA5 SWAP [m] Swap nibbles of Data Memory Description The low-order and high-order nibbles of the specified Data Memory are interchanged. [m].3~[m].0 « [m].7 ~ [m].4 Operation Affected flag(s) None SWAPA [m] Swap nibbles of Data Memory with result in ACC Description The low-order and high-order nibbles of the specified Data Memory are interchanged.
  • Page 33 HT48RA5/HT48CA5 XOR A,[m] Logical XOR Data Memory to ACC Description Data in the Accumulator and the specified Data Memory perform a bitwise logical XOR op- eration. The result is stored in the Accumulator. ACC ¬ ACC ²XOR² [m] Operation Affected flag(s)
  • Page 34: Package Information

    HT48RA5/HT48CA5 Package Information 28-pin SOP (300mil) Outline Dimensions · MS-013 Dimensions in mil Symbol Min. Nom. Max. ¾ ¾ ¾ ¾ C¢ ¾ ¾ ¾ ¾ ¾ ¾ ¾ ¾ 0° 8° Rev. 1.40 May 22, 2009...
  • Page 35 HT48RA5/HT48CA5 28-pin SSOP (209mil) Outline Dimensions · MO-150 Dimensions in mm Symbol Min. Nom. Max. ¾ 7.40 8.20 ¾ 5.00 5.60 ¾ 0.22 0.33 ¾ 9.90 10.50 C¢ ¾ 2.00 ¾ ¾ 0.65 ¾ ¾ 0.05 ¾ 0.55 0.95 ¾...
  • Page 36: Product Tape And Reel Specifications

    HT48RA5/HT48CA5 Product Tape and Reel Specifications Reel Dimensions SOP 28W (300mil) Symbol Description Dimensions in mm Reel Outer Diameter 330.0±1.0 Reel Inner Diameter 100.0±1.5 +0.5/-0.2 13.0 Spindle Hole Diameter Key Slit Width 2.0±0.5 +0.3/-0.2 24.8 Space Between Flange Reel Thickness 30.2±0.2...
  • Page 37 HT48RA5/HT48CA5 Carrier Tape Dimensions R e e l H o l e I C p a c k a g e p i n 1 a n d t h e r e e l h o l e s a r e l o c a t e d o n t h e s a m e s i d e .
  • Page 38 Copyright Ó 2009 by HOLTEK SEMICONDUCTOR INC. The information appearing in this Data Sheet is believed to be accurate at the time of publication. However, Holtek as- sumes no responsibility arising from the use of the specifications described. The applications mentioned herein are used...

This manual is also suitable for:

Ht48ca5

Table of Contents