HT48C50A-1 Holtek Semiconductor, HT48C50A-1 Datasheet
HT48C50A-1
Related parts for HT48C50A-1
HT48C50A-1 Summary of contents
Page 1
Technical Document Tools Information FAQs Application Note HA0003E Communicating between the HT48 & HT46 Series MCUs and the HT93LC46 EEPROM HA0004E HT48 & HT46 MCU UART Software Implementation Method HA0013E HT48 & HT46 LCM Interface Design HA0021E Using the I/O ...
Page 2
Block Diagram www.DataSheet4U.com Rev. 2.00 HT48R50A-1/HT48C50-1 2 March 8, 2006 ...
Page 3
Pin Assignment www.DataSheet4U.com Pin Description Pin Name I/O PA0~PA7 I/O PB0/BZ PB1/BZ I/O PB2~PB7 PD0~PD7 I/O VSS PG0/INT I/O TMR0 I PC0~PC7 I/O TMR1 I Rev. 2.00 Options Pull-high* Bidirectional 8-bit input/output port. Each bit can be configured as a ...
Page 4
Pin Name I/O RES I ¾ VDD OSC1/PG1 I OSC2/PG2 O www.DataSheet4U.com Note: * The pull-high resistors of each I/O port (PA, PB, PC, PD, PG) are controlled by options. Absolute Maximum Ratings Supply Voltage ...........................V Input Voltage..............................V Note: These ...
Page 5
Symbol I I/O Port Source Current OH R Pull-high Resistance PH A.C. Characteristics Symbol www.DataSheet4U.com f System Clock (Crystal OSC) SYS1 f System Clock (RC OSC) SYS2 System Clock f SYS3 (Internal RC OSC) f Timer I/P Frequency (TMR) TIMER ...
Page 6
Functional Description Execution Flow The system clock for the microcontroller is derived from either a crystal oscillator. The system clock is internally divided into four non-overlapping clocks. One instruction cycle consists of four system clock cycles. Instruction ...
Page 7
Certain locations in the program memory are reserved for special usage: Location 000H This area is reserved for program initialization. After chip reset, the program always begins execution at lo- cation 000H. Location 004H This area is reserved for ...
Page 8
If the stack is full and a non-masked interrupt takes place, the interrupt request flag will be recorded but the acknowledge signal will be inhibited. When the stack pointer is decremented (by RET or RETI), the interrupt will be serviced. ...
Page 9
Status Register - STATUS This 8-bit register (0AH) contains the zero flag (Z), carry flag (C), auxiliary carry flag (AC), overflow flag (OV), power down flag (PDF), and watchdog time-out flag (TO). It also records the status information and controls ...
Page 10
Bit No. Label 0 EMI 1 EEI 2 ET0I 3 ET1I 4 EIF 5 T0F 6 T1F 7 www.DataSheet4U.com During the execution of an interrupt subroutine, other in- terrupt acknowledge signals are held until the RETI in- struction is executed ...
Page 11
OSC). Also, the frequencies of the internal RC oscillator can be 3.2MHz, 1.6MHz, 800kHz and 400kHz (depends on the options). The WDT oscillator is a free running on-chip RC oscillator, and no external components are required. Even if the sys- ...
Page 12
All of the I/O ports maintain their original status. The PDF flag is set and the TO flag is cleared. The system can leave the HALT mode by means of an external reset, an interrupt, an external falling edge sig- ...
Page 13
The functional unit chip reset status are shown below. Program Counter Interrupt Prescaler WDT Timer/Event Counter Input/Output Ports Stack Pointer The states of the registers is summarized in the table. Register www.DataSheet4U.com TMR0 TMR0C TMR1H TMR1L TMR1C Program Counter MP0 ...
Page 14
Timer/Event Counter Two timer/event counters (TMR0, TMR1) are imple- mented in the microcontroller. The Timer/Event Counter 0 contains an 8-bit programmable count-up counter and the clock may come from an external source or from the system clock or RTC. The ...
Page 15
There are 3 registers related to Timer/Event Counter 1; TMR1H (0FH), TMR1L (10H), TMR1C (11H). Writing TMR1L will only put the written data to an internal lower-order byte buffer (8 bits) and writing TMR1H will transfer the specified data and ...
Page 16
Timer/Event Counter 0/1 reloading will occur at the same time). When the Timer/Event Counter 0/1 (reading TMR0/TMR1) is read, the clock will be blocked to avoid errors. As clock blocking may results in a counting ...
Page 17
The I/O functions of PB0/PB1 are shown below. PB0 I/O PB1 I/O PB0 Mode PB1 Mode PB0 Data PB1 Data PB0 Pad Status PB1 Pad Status Note: I input, O output buzzer option BZ, x ...
Page 18
Options The following table shows all kinds of options in the microcontroller. All of the options must be defined to ensure proper system functioning. Items 1 WDT clock source: WDT oscillator CLRWDT instructions instructions ...
Page 19
Application Circuits www.DataSheet4U.com Note: The resistance and capacitance for reset circuit should be designed to ensure that the VDD is stable and re- mains in a valid range of the operating voltage before bringing RES high. * Make the length ...
Page 20
Instruction Set Summary Mnemonic Arithmetic ADD A,[m] Add data memory to ACC ADDM A,[m] Add ACC to data memory ADD A,x Add immediate data to ACC ADC A,[m] Add data memory to ACC with carry ADCM A,[m] Add ACC to ...
Page 21
Mnemonic Branch JMP addr Jump unconditionally SZ [m] Skip if data memory is zero SZA [m] Skip if data memory is zero with data movement to ACC SZ [m].i Skip if bit i of data memory is zero SNZ [m].i ...
Page 22
Instruction Definition ADC A,[m] Description Operation Affected flag(s) ADCM A,[m] www.DataSheet4U.com Description Operation Affected flag(s) ADD A,[m] Description Operation Affected flag(s) ADD A,x Description Operation Affected flag(s) ADDM A,[m] Description Operation Affected flag(s) Rev. 2.00 Add data memory and carry ...
Page 23
AND A,[m] Description Operation Affected flag(s) AND A,x Description www.DataSheet4U.com Operation Affected flag(s) ANDM A,[m] Description Operation Affected flag(s) CALL addr Description Operation Affected flag(s) CLR [m] Description Operation Affected flag(s) Rev. 2.00 Logical AND accumulator with data memory Data ...
Page 24
CLR [m].i Description Operation Affected flag(s) CLR WDT Description Operation www.DataSheet4U.com Affected flag(s) CLR WDT1 Description Operation Affected flag(s) CLR WDT2 Description Operation Affected flag(s) CPL [m] Description Operation Affected flag(s) Rev. 2.00 Clear bit of data memory The bit ...
Page 25
CPLA [m] Description Operation Affected flag(s) DAA [m] Description www.DataSheet4U.com Operation Affected flag(s) DEC [m] Description Operation Affected flag(s) DECA [m] Description Operation Affected flag(s) Rev. 2.00 Complement data memory and place result in the accumulator Each bit of the ...
Page 26
HALT Description Operation Affected flag(s) www.DataSheet4U.com INC [m] Description Operation Affected flag(s) INCA [m] Description Operation Affected flag(s) JMP addr Description Operation Affected flag(s) MOV A,[m] Description Operation Affected flag(s) Rev. 2.00 Enter power down mode This instruction stops program ...
Page 27
MOV A,x Description Operation Affected flag(s) MOV [m],A Description Operation www.DataSheet4U.com Affected flag(s) NOP Description Operation Affected flag(s) OR A,[m] Description Operation Affected flag(s) OR A,x Description Operation Affected flag(s) ORM A,[m] Description Operation Affected flag(s) Rev. 2.00 Move immediate ...
Page 28
RET Description Operation Affected flag(s) RET A,x Description Operation www.DataSheet4U.com Affected flag(s) RETI Description Operation Affected flag(s) RL [m] Description Operation Affected flag(s) RLA [m] Description Operation Affected flag(s) Rev. 2.00 Return from subroutine The program counter is restored from ...
Page 29
RLC [m] Description Operation Affected flag(s) RLCA [m] www.DataSheet4U.com Description Operation Affected flag(s) RR [m] Description Operation Affected flag(s) RRA [m] Description Operation Affected flag(s) RRC [m] Description Operation Affected flag(s) Rev. 2.00 Rotate data memory left through carry The ...
Page 30
RRCA [m] Description Operation Affected flag(s) www.DataSheet4U.com SBC A,[m] Description Operation Affected flag(s) SBCM A,[m] Description Operation Affected flag(s) SDZ [m] Description Operation Affected flag(s) SDZA [m] Description Operation Affected flag(s) Rev. 2.00 Rotate right through carry and place result ...
Page 31
SET [m] Description Operation Affected flag(s) SET [m]. i Description Operation www.DataSheet4U.com Affected flag(s) SIZ [m] Description Operation Affected flag(s) SIZA [m] Description Operation Affected flag(s) SNZ [m].i Description Operation Affected flag(s) Rev. 2.00 Set data memory Each bit of ...
Page 32
SUB A,[m] Description Operation Affected flag(s) SUBM A,[m] Description www.DataSheet4U.com Operation Affected flag(s) SUB A,x Description Operation Affected flag(s) SWAP [m] Description Operation Affected flag(s) SWAPA [m] Description Operation Affected flag(s) Rev. 2.00 Subtract data memory from the accumulator The ...
Page 33
SZ [m] Description Operation Affected flag(s) SZA [m] Description www.DataSheet4U.com Operation Affected flag(s) SZ [m].i Description Operation Affected flag(s) TABRDC [m] Description Operation Affected flag(s) TABRDL [m] Description Operation Affected flag(s) Rev. 2.00 Skip if data memory ...
Page 34
XOR A,[m] Description Operation Affected flag(s) XORM A,[m] Description www.DataSheet4U.com Operation Affected flag(s) XOR A,x Description Operation Affected flag(s) Rev. 2.00 Logical XOR accumulator with data memory Data in the accumulator and the indicated data memory perform a bitwise logical ...
Page 35
Package Information 28-pin SKDIP (300mil) Outline Dimensions www.DataSheet4U.com Symbol Rev. 2.00 HT48R50A-1/HT48C50-1 Dimensions in mil Min. Nom. 1375 278 125 125 16 50 100 295 330 0 35 Max. 1395 298 ...
Page 36
SOP (300mil) Outline Dimensions www.DataSheet4U.com Symbol Rev. 2.00 HT48R50A-1/HT48C50-1 Dimensions in mil Min. Nom. 394 290 14 697 Max. 419 300 20 713 ...
Page 37
SSOP (300mil) Outline Dimensions www.DataSheet4U.com Symbol Rev. 2.00 HT48R50A-1/HT48C50-1 Dimensions in mil Min. Nom. 395 291 8 613 Max. 420 299 12 637 ...
Page 38
Product Tape and Reel Specifications Reel Dimensions www.DataSheet4U.com SOP 28W (300mil) Symbol A Reel Outer Diameter B Reel Inner Diameter C Spindle Hole Diameter D Key Slit Width T1 Space Between Flange T2 Reel Thickness SSOP 48W Symbol A Reel ...
Page 39
Carrier Tape Dimensions www.DataSheet4U.com SOP 28W (300mil) Symbol W Carrier Tape Width P Cavity Pitch E Perforation Position F Cavity to Perforation (Width Direction) D Perforation Diameter D1 Cavity Hole Diameter P0 Perforation Pitch P1 Cavity to Perforation (Length Direction) ...
Page 40
SSOP 48W Symbol W Carrier Tape Width P Cavity Pitch E Perforation Position F Cavity to Perforation (Width Direction) D Perforation Diameter D1 Cavity Hole Diameter P0 Perforation Pitch P1 Cavity to Perforation (Length Direction) A0 Cavity Length B0 ...
Page 41
... SEG Plaza, Shen Nan Zhong Road, Shenzhen, China 518031 Tel: 0755-8346-5589 Fax: 0755-8346-5590 ISDN: 0755-8346-5591 Holtek Semiconductor Inc. (Beijing Sales Office) Suite 1721, Jinyu Tower, A129 West Xuan Wu Men Street, Xicheng District, Beijing, China 100031 Tel: 010-6641-0030, 6641-7751, 6641-7752 Fax: 010-6641-0125 Holmate Semiconductor, Inc ...