HT48RAx/HT48CAx Software Application
|
|
- Benedict Terry
- 6 years ago
- Views:
Transcription
1 HT48RAx/HT48CAx Software Application Note D/N: HA0076E Introduction CALL and JUMP will load the BP to program counter. Interrupt will store the contents of program counter into stack. RETI/RET will load the contents of stack into program counter. Jump Between Different Banks (a) To locate a code section to a bank (definition) Use ROMBANK directive: ROMBANK n codesec; n= 0~4 (b) Load the bank number of the destination address into BP Use BANK directive: BANK label (c) Jump to the destination address (d) Example ROMBANK 0 codesec0; definition ROMBANK 1 codesec1; definition ROMBANK 2 codesec2; definition codesec0.section at 000h code ; BANK 0 org 0000h clr bp jmp strt 1
2 strt: mov a,bank label1 ; label1 is located in BANK 1 ; load bank number of label1 to BP jmp label1 ; jump to label1 label0: ; label0 is located in BANK 0 codesec1.section at 000h code ; BANK 1 label1: mov a,bank label2 ; label2 is located in BANK 2 ; load bank number of label2 to BP jmp label2 ; jump to label2 codesec2.section at 000h code ; BANK 2 label2: mov a,bank label0 ; label0 is located in BANK 0 ; load bank number of label0 to BP jmp label0 ; jump to label0 end 2
3 Interrupt Service Routines (a) Accumulator backup (b) Move BP to accumulator (c) Clear BP (d) Jump a label located in bank 0 (e) BP backup (f) Other registers backup (g) Example include ht48ca3.inc ; use HT48CA3 MCU body accbuf0 db? statusbuf0 db? bpbuf0 db? accbuf1 db? statusbuf1 db? bpbuf1 db? accbuf2 db? statusbuf2 db? bpbuf2 db? ROMBANK 0 codesec0; definition ROMBANK 1 codesec1; definition ROMBANK 2 codesec2; definition codesec0.section at 000h code ; BANK 0 org 0004h mov accbuf0,a mov a,bp clr bp jmp labelbank00 ; labelbank00 should be located in BANK 0 org 0008h mov accbuf1,a mov a,bp clr bp 3
4 mov labelbank01 ; labelbank01 should be located in BANK 0 org 000ch mov accbuf2,a mov a,bp clr bp jmp labelbank02 ; labelbank02 should be located in BANK 0 labelbank00: ; located in BANK 0 mov bpbuf0,a ; backup BP mov a,status mov statusbuf0,a ; can call/jump to different banks labels ; BP should be managed mov a,statusbuf0 ; restore registers mov status,a mov a,bpbuf0 mov a,accbuf0 reti labelbank01: ; located in BANK 0 mov bpbuf1,a ; backup BP mov a,status mov statusbuf1,a ; can call/jump to different banks labels ; BP should be managed mov a,statusbuf1 ; restore registers mov status,a mov a,bpbuf1 mov a,accbuf1 reti 4
5 labelbank02: ; located in BANK 0 mov bpbuf2,a ; backup BP mov a,status mov statusbuf2,a ; can call/jump to different banks labels ; BP should be managed mov a,statusbuf2 ; restore registers mov status,a mov a,bpbuf2 mov a,accbuf2 reti codesec1.section at 000h code ; BANK 1 labelbank10: codesec2.section at 000h code ; BANK 2 labelbank20: end Call Between Different Banks Subroutines (a) To locate a code section to a bank (definition) Use ROMBANK directive: ROMBANK n codesec ; n= 0~4 (b) Backup BP (c) Load the bank number of the destination address into BP Use BANK directive: BANK label (d) Call the destination address 5
6 (e) Load current bank number to BP (f) (g) Nesting: from (b) to (j) (h) (i) RET (j) Restore BP (k) Example include ht48ca3.inc ; use HT48CA3 MCU body accbuf0 db? statusbuf0 db? bpbuf0 db? accbuf1 db? statusbuf1 db? bpbuf1 db? accbuf2 db? statusbuf2 db? bpbuf2 db? ROMBANK 0 codesec0; definition ROMBANK 1 codesec1; definition ROMBANK 2 codesec2; definition codesec0.section at 000h code ; BANK 0 org 0000h clr bp jmp strt strt: mov a,bp ; backup BP mov bpbuf0,a mov a,bank label1 ; label1 is located in BANK 1 6
7 ; load bank number of label1 to BP call label1 ; jump to label1 mov a,bpbuf0 ; restore BP label0: ; label0 is located in BANK 0 mov a,bank label0 ; new BP ret codesec1.section at 000h code ; BANK 1 label1: mov a,bank label1 ; new BP mov a,bp ; BP backup mov bpbuf1,a mov a,bank label2 ; label2 is located in BANK 2 ; load bank number of label2 to BP call label2 ; jump to label2 mov a,bpbuf1 ret codesec2.section at 000h code ; BANK 2 label2: mov a,bank label2 ; new BP 7
8 mov a,bp ; BP backup mov bpbuf2,a mov a,bank label0 ; label0 is located in BANK 0 ; load bank number of label0 to BP call label0 ; jump to label0 mov a,bpbuf2 ret end Generate PFD/Carrier Signal (Not Synchronized) and Remote Output (a) PB0 selects the PFD output (mask option). (b) Timer/event counter 0 is used to generate PFD/carrier signal (c) Disable timer/event counter 0. (d) Disable timer/event counter 0 overflow interrupt. (e) Load the preload value to TMR0, f PFD =f SYS /(2(n+1) (256-m)), n= prescaler stage (1~8), m= 0~255. (f) Enable timer/event counter 0 counting. (g) Clear PBC.0 to enable the PB.0 output function (h) Set PB.0 (PB.0 = 1) to enable the PFD output. (PB0 = carrier output) (i) Clear PB.0 (PB.0 = 0) to disable the PFD output. (PB0 = 0) (j) (k) Timer/event counter 1 is used to control the timing of bit streams and time interval between successive bit stream frame (l) It is suggested that all programs are located in bank 0 and data can be located in bank 0, 1 and 2. (BP backup/restore can be ignored) 8
9 Example 1: Pulse are Not Synchronized (All Programs are Located in Bank 0) f CARRIER =38kHz, f SYS =4MHz, preload value= /(2 38)=230 Timer/Event Counter 0 prescaler stage n=1, f PFD =38.46kHz Transmission sequence: MSB first lead frame: carrier=2.4ms Bit 1 : low=600 s, carrier=1200 s Bit 0 : low=600 s, carrier=600 s Bit stream frame=50ms Timer/Event Counter 1 overflow period=600 s 50ms/600 s 83 unit (per unit=600 s) 2.4ms/600 s=4 unit (per unit=600 s) include ht48ca3.inc accbuf2 db? statusbuf2 db? bitcount db? bitno db? frame db? leadframe db? bith1 db? byte1 db question byte0 db question txflag dbit org 0000h clr bp jmp strt org 0008h reti org 000ch mov accbuf2,a mov a,status mov statusbuf2,a jmp label2 strt: ; use HT48CA3 MCU body ; Tx data high byte ; Tx data low byte 9
10 ; scan key ; read table to and datah ; decode transmission format clr leadframe clr frame clr bith1 clr tmr0c mov a,17 mov bitno,a ; bit number=16 bits+1(leadframe) mov a,230 ; f PFD =38.46kHz=4000/(4 ( ))kHz mov tmr0,a mov a,098h mov tmr0c,a clr tmr1c mov a,168 ; Timer/Event Counter 1 overflow time unit mov tmr1l,a ; =65536-( ) s=600 s mov a,253 mov tmr1h,a mov a,098h mov tmr1c,a mov a,09h ; disable TMR0 interrupt mov intc,a ; enable TMR1 interrupt mov a,datal ; datal is read from ROM table (TABRDC) mov byte0,a mov a,datah ; datah is read from ROM table (TABRDC) mov byte1,a set txflag ; enable IR data transmission clr bitcount ; reset IR data bit-count label2: mov a,bitcount xor a,bitno sz status.2 clr txflag snz txflag jmp stoptx sz bitcount jmp txing 10
11 txstart: clr pbc.0 set pb.0 inc leadframe snz leadframe.2 jmp endtxbit inc bitcount clr leadframe jmp endtxbit txing: inc bith1 mov a,bithl xor a,01h snz status.2 jmp chk23 clr pbc.0 clr pb.0 jmp endtxbit chk23: mov a,bithl xor a,02h snz status.2 jmp chk3 clr pbc.0 set pb.0 sz byte1.7 jmp endtxbit inc bitcount chk230: rlc byte0 rlc byte1 clr bith1 jmp endtxbit chk3: clr pbc.0 set pb.0 jmp chk230 chk3: clr pbc.0 ; generate leadframe ; leadframe=2.4ms ; clear leadframe timer ; transmit bit data ; first: low pulse=600 s ; second: high pulse=600 s ; third for 0 : high pulse=none ; third for 1 : high pulse=600 s ; all bits are transmitted 11
12 clr pb.0 endtxbit: inc frame mov a,frame sub a,83 snz status.0 jmp endframe set txflag clr bitcount mov a,datal mov byte0,a mov a,datah mov byte1,a clr bith1 clr frame endframe: mov a,statusbuf2 mov status,a mov a,accbuf2 reti ; frame timer ; frame time-out re-send code ; reload data to related registers ; clear frame timer Example 2: Pulses are Synchronized (All Programs are Located in Bank 0) f CARRIER =38kHz, f SYS =4MHz, preload value= /(2 38)=230 Timer/Event Counter 0 prescaler stage n=1, f PFD =38.46kHz Transmission sequence: MSB first lead frame: carrier=2.4ms=88 pulses (counted by INT) bit 1 : low=600 s, carrier=44 pulses (counted by INT) bit 0 : low=600 s, carrier=22 pulses (counted by INT) bit stream frame=50ms Timer/Event Counter 1 overflow period=600 s 50ms/600 s 83 unit (per unit=600 s) 2.4ms/600 s=4 unit (per unit=600 s) 12
13 include ht48ca3.inc ; use HT48CA3 body accbuf1 db? statusbuf1 db? bitcount db? bitno db? frame db? leadframe db? bith1 db? byte1 db? ; data high byte byte0 db? ; data low byte intcntcom db? txflag dbit pulsetxing dbit enpulse dbit bittxing dbit ; bit is transmitting org 0000h clr bp jmp strt org 0004h ; PB0/PFD connected to PF0/INT sdz intcntcom reti clr pb.0 reti org 0008h reti org 000ch mov accbuf2,a mov a,status mov statusbuf2,a jmp label2 strt: ; scan key ; read table to data1 and datah ; decode transmission format 13
14 clr leadframe clr frame clr bith1 clr intcntcom clr tmr0c mov a,17 mov bitno,a mov a,230 mov tmr0,a mov a,088h mov tmr0c,a clr tmr1c mov a,168 mov tmr1l,a mov a,253 mov tmr1h,a mov a,098h mov tmr1c,a mov a,09h mov intc,a mov a,datal mov byte0,a mov a,datah mov byte1,a set txflag clr pulsetxing clr bitcount clr enpulse clr bittxing clr pbc.0 label2: mov a,bitcount xor a,bitno sz status.2 clr txflag snz txflag jmp stoptx sz bitcount ; bit number=16 bits+1 (leadframe) ; Timer/Event Counter 1 overflow time unit ; = ( ) ms=600 s ; enable TMR1 interrupt ; datal is read from ROM table (TABRDC) ; datah is read from ROM table (TABRDC) 14
15 jmp txing txstart: mov a,88 mov intcntcom,a set intc.1 clr intc.4 clr intc.3 set intc.0 clr tmr0c mov a,230 mov tmr0,a mov a,098h mov tmr0c,a set pb.0 clr pbc.0 txstart0: sz pb.0 jmp txstart1 clr.1 txstart1: snz intc.6 jmp txstart2 clr intc.6 inc leadframe inc frame txstart2: snz leadframe.2 jmp txstart0 inc bitcount clr leadframe jmp endtxbit txing: inc bith1 mov a,bithl xor a,01h snz status.2 jmp chk23 clr pbc.0 clr pb.0 jmp endtxbit ; leadframe interrupt number ; enable external interrupt ; clear external interrupt request flag ; disable Timer/Event Counter 1 interrupt ; enable global interrupt ; Timer/Event Counter 0 synchronized ; enable carrier output ; check leadframe pulses transmitted ; leadframe pulses transmitted ; leadframe=2.4ms and 88 pulses ; reset leadframe timer ; transmit bit data ; first: low pulse=600 s 15
16 chk23: mov a,bithl xor a,02h snz status.2 jmp chk3 mov a,22 sz byte1.7 add a,22 mov intcntcom,a set.1 clr.4 clr.3 set.0 clr tmr0c mov a,230 mov tmr0,a mov a,098h mov tmr0c,a set pb.0 clr pbc.0 txbit0: sz Pb.0 jmp txbit1 clr intc.1 txbit1: snz intc.6 jmp txbit0 clr intc.6 inc frame sz pb.0 jmp txbit0 txbit2: inc bitcount rlc byte0 rlc byte1 clr bith1 jmp label2 stoptx: clr pb.0 clr pbc.0 ; bit=0 22 pulses ; bit=1 44 pulses ; enable external interrupt ; clear external interrupt request flag ; disable Timer/Event Counter 1 interrupt ; enable global interrupt ; Timer/Event Counter 0 synchronized ; enable carrier output ; check leadframe pulses transmitted ; leadframe pulses transmitted ; all bits are transmitted 16
17 endtxbit: mov a,frame sub a,83 snz status.0 jmp endframe set txflag clr bitcount mov a,datal mov byte0,a mov a,datah mov byte1,a clr bith1 clr frame endframe: set intc.3 mov a,statusbuf2 mov status,a mov a,accbuf2 reti ; frame time-out re-send code ; reload data to related registers ; clear frame timer Synchronize the PFD Pulse (Generate the Desired Number of Pulses) Method 1: Synchronization by Using Timer/Event Counter 0 Generate PFD by using Timer/Event Counter 0 2 Timer/Event Counter 0 interrupt period will generate a PFD pulse Timer/Event Counter 0 interrupt should be enabled Timer/Event Counter 0 start counting from desired preload value to synchronize with PFD output and then enable Timer/Event Counter 0 counting Count the desired pulse in the Timer/Event Counter 0 interrupt service routine and then disable the PFD output by clearing PB.0 17
18 Method 2: Synchronization by Using External Interrupt Generate PFD by using Timer/Event Counter 0 Connect external PF0/INT pin to PB0 pin 1 PFD pulse will generate an external interrupt Timer/Event Counter 0 counting should be enabled External interrupt should be enabled to detect and count the PFD pulse number Count the desired pulse in the external interrupt service routine and then disable the PFD output by clearing PB.0 and the external interrupt Method 3: Generate Pulses by Using Software Instructions Generate pulses by using software instructions Pulse number can be controlled by using software counting Carrier output period can be controlled by timer/event counters Read Table from Program ROM (a) To locate a code section to a bank (definition) Use ROMBANK directive: ROMBANK n codesec ; n=0~4 (b) Load the bank number of the destination address into BP Use BANK directive: BANK label (c) Load high-order byte (with BANK) of table address in a bank to TBHP MOV A,HIGH table MOV TBHP,A (d) Load the lower-order byte of table address to TBLP MOV A,LOW table MOV TBLP,A (e) Use TABRDC to read table contents (f) 18
19 Example include ht48ca3.inc ; use HT48CA3 MCU body tablowbyte db? ; table low byte buffer ROMBANK 0 codesec0; definition ROMBANK 1 codesec1; definition ROMBANK 2 codesec2; definition codesec0.section at 000h code ; BANK 0 org 0000h clr bp jmp strt strt: mov a,high table0 ; get bank and high byte address mov tbhp,a mov a,low table0 ; get table 0 low byte address mov tblp,a tabrdc tablowbyte ; table read instruction mov a,high table1 ; get bank and high byte address mov tbhp,a mov a,low table1 ; get table 1 low byte address mov tblp,a tabrdc tablowbyte ; table read instruction mov a,high table2 ; get bank and high byte address mov tbhp,a mov a,low table2 ; get table 2 low byte address mov tblp,a tabrdc tablowbyte ; table read instruction talbe0: ; table0 is located in BANK 0 dc 0a55ah, 05aa5h ; bank 0 table 19
20 codesec1.section at 000h code ; BANK 1 table1: ; table 1 is located in BANK 1 dc 09669h, 06996h ; bank 1 table codesec2.section at 000h code ; BANK 2 table2: ; table 2 is located in BANK 2 02dd2h,0d22dh ; bank 2 table end Carrier Frequency (f CARRIER ) Calculation f PFD =f SYS /(2 t TMR0OV )=f CARRIER t TMR0OV =2 (PSC2~PSC0+1) (256-[TMR0]) 20
21 Crystal Oscillator Configuration t INTD : internal delay time and oscillator setting time t WU : crystal/resonator warm-up time (500 s~5ms), dependent on crystal/resonator quality/ capacitor (C1 and C2) t SST : system start-up time, f OSC / f OSC Ceramic Resonator Quartz Crystal C1 C2 C1 C2 393kHz 300pF 300pF 400kHz 300pF 300pF 455kHz 300pF 300pF 480kHz 300pF 300pF 600kHz 300pF 300pF 1MHz 120pF 120pF 0pF 0pF 2MHz 0pF 0pF 0pF 0pF 3.58MHz 0pF 0pF 0pF 0pF 3.82MHz 0pF 0pF 0pF 0pF 4MHz 0pF 0pF 0pF 0pF 4.2MHz 0pF 0pF 0pF 0pF Note Crystal/resonator oscillator bias resistor is built-in OSC1 and OSC2 capacitors (25pF and 30pF) are built-in 21
HT46RU26/HT46CU26 A/D Type 8-Bit MCU with UART
A/D Type 8-Bit MCU with UART Technical Document Tools Information FAQs Application Note HA0003E Communicating between the HT48 & HT46 Series MCUs and the HT93LC46 EEPROM HA0049E Read and Write Control
More informationRead and Write Control of the HT1380
Read and Write Control of the HT1380 D/N HA0049E Introduction Driver Description This application note applies to the HT48XXX and HT46XXX MCU devices. The HT1380/HT1381 is a standard Holtek device which
More informationUsing the HT45R36 and HT45R38 to implement Touch Switches
Using the HT45R36 and HT45R38 to implement Touch Switches D/N: HA0115E Introduction This example uses the C/R to F internal feature of the HT45R36 and HT45R38 to implement a Touch Switch. It is one way
More informationHT48R30A-1/HT48C30-1 I/O Type 8-Bit MCU
I/O Type 8-Bit MCU Features Operating voltage: f SYS =4MHz: 2.2V~5.5V f SYS =8MHz: 3.3V~5.5V Low voltage reset function 25 bidirectional I/O lines (max.) interrupt input shared with an I/O line 8-bit programmable
More informationHT1380 HT driver READ_ driver WRITE_1380
HA0049s HT1380/HT1381 MCU 32K HT1380/HT1381 DRIVER driver driver rw_ht1380.asm I/O.section data equ driver 1 driver READ_1380 none acc time_temp, time_count 2 driver WRITE_1380 acc none time_temp, time_count
More informationRead and Write Control of the HT1380/HT1381
Read and Write Control of the HT1380/HT1381 D/N:AN0049E Introduction Driver Description This application note applies to the HT48xxx and HT46xxx MCU devices. The HT1380/ HT1381 is a standard Holtek device
More informationPin Assignment 2 ) # 2 ) % 2 ) $ 2 )! 2 ) 6 2 ) 2 )! " 4 # $ % /, & ' ' & % $ # "! 2 ) " : /, * ) 6 8,, * $ * 2 ) # 2 ) %
RF One Channel Mouse 8-bit OTP MCU Technical Document Tools Information FAQs Application Note HA0075E MCU Reset and Oscillator Circuits Application Note Features Operating voltage: f SYS = 27MHz: 2.0V~3.3V
More informationHT48R05A-1/HT48C05/ HT48R06A-1/HT48C06/HT48R08A-1 Cost-Effective I/O Type 8-Bit MCU
HT48R5A-/HT48C5/ HT48R6A-/HT48C6/HT48R8A- Cost-Effective I/O Type 8-Bit MCU Technical Document Tools Information FAQs Application Note HA3E Communicating between the HT48 & HT46 Series MCUs and the HT93LC46
More informationHT46R46/C46/R47/C47/R48A/C48A/R49 Cost-Effective A/D Type 8-Bit MCU
Cost-Effective A/D Type 8-Bit MCU Features Operating voltage: f SYS =4MHz: 2.2V~5.5V f SYS =8MHz: 3.3V~5.5V 13 to 23 bidirectional I/O lines External interrupt input shared with an I/O line 8-bit programmable
More informationHT49R10A-1/HT49C10-1 LCD Type 8-Bit MCU
LCD Type 8-Bit MCU Technical Document Tools Information FAQs Application Note HA007E Controlling the Read/Write Function of the HT24 Series EEPROM Using the HT49 Series MCUs HA0024E Using the RTC in the
More informationHT48F06E/HT48F10E/HT48F30E I/O Flash Type MCU with EEPROM
I/O Flash Type MCU with EEPROM Features Operating voltage: f SYS =4MHz: 2.2V~5.5V f SYS =8MHz: 3.3V~5.5V f SYS =12MHz: 4.5V~5.5V Multi-programmable Flash Type Program Memory EEPROM data memory: 128 8 From
More informationHT46R46-H Cost-Effective A/D Type 8-Bit OTP MCU
Cost-Effective A/D Type 8-Bit OTP MCU Technical Document Tools Information FAQs Application Note HA0003E Communicating between the HT48 & HT46 Series MCUs and the HT93LC46 EEPROM HA0009E HT48 & HT46 MCU
More informationHT48R10A-1/HT48C10-1 I/O Type 8-Bit MCU
I/O Type 8-Bit MCU 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
More informationHT47R20A-1/HT47C20-1 R-F Type 8-Bit MCU
R-F Type 8-Bit MCU Technical Document Tools Information FAQs Application Note HA0029E Using the Time Base Function in the HT47R20A- HA0030E Using the RTC in the HT47R20A- HA0034E Using the Buzzer Function
More informationHT45R0072 I/O 8-Bit MCU with USB Interface
I/O 8-Bit MCU with USB Interface Features Operating voltage: f SYS =6M/2MHz: 3.6V~5.5V (VBUS) Low voltage reset function 34 bidirectional I/O lines (max.) 8-bit programmable timer/event counter with overflow
More informationHT49RU80/HT49CU80 LCD Type 8-Bit MCU
Crystalfontz Thiscontrolerdatasheetwasdownloadedfrom htp:/www.crystalfontz.com/controlers/ HT49RU80/HT49CU80 LCD Type 8-Bit MCU Technical Document Tools Information FAQs Application Note HA007E Controlling
More informationHT46R53A/HT46R54A A/D Type 8-Bit OTP MCU
A/D Type 8-Bit OTP MCU Features Low-power fully static CMOS design Operating voltage: f SYS =4MHz: 2.2V~5.5V f SYS =8MHz: 3.3V~5.5V Program Memory: 2K5 OTP (HT46R53A) 4K5 OTP (HT46R54A) Data memory: 928
More informationHT82K70E-L/HT82K70A-L/HT82K76E-L I/O Type 8-Bit MCU
I/O Type 8-Bit MCU Features Operating voltage: 1.8V~5.5V 43 bidirectional I/O lines Program Memory: 4K16 -- HT82K70E-L/HT82K70A-L 8K16 -- HT82K76E-L 2168 Data RAM One external interrupt input shared with
More informationHT48F70E I/O Flash Type MCU with EEPROM
I/O Flash Type MCU with EEPROM Features Operating voltage: f SYS =4MHz: 2.2V~5.5V f SYS =8MHz: 3.3V~5.5V f SYS =12MHz: 4.5V~5.5V Multi-programmable Flash Type Program Memory: 819216 EEPROM Data Memory:
More informationSmall Package 8-Bit OTP MCU HT48R005/HT46R005
Small Package 8-Bit OTP MCU HT48R005/HT46R005 Revision: 1.00 November 29, 2011 Table of Contents Features...5 CPU Features...5 Peripheral Features...5 General...5 Selection Table...6 Block Diagram...6
More informationHT46R652 A/D with LCD Type 8-Bit OTP MCU
A/D with LCD Type 8-Bit OTP MCU Features Operating voltage: f SYS =4MHz: 2.2V~5.5V f SYS =2MHz: 3.3V~5.5V 32 bidirectional I/O lines Two external interrupt inputs Two 6-bit programmable timer/event counters
More informationHT46F46E/HT46F47E/HT46F48E/HT46F49E. Cost-Effective A/D Flash Type 8-Bit MCU with EEPROM. Technical Document. Features. General Description
Cost-Effective A/D Flash Type 8-Bit MCU with EEPROM Technical Document Tools Information FAQs Application Note HA0052E Microcontroller Application - Battery Charger HA0075E MCU Reset and Oscillator Circuits
More informationHT48R06A-1/HT48C06. 8-Bit Cost-Effective I/O Type MCU. Features. General Description. Block Diagram
8-Bit Cost-Effective I/O Type MCU Features Operating voltage: f SYS =4MHz: 2.2V~5.5V f SYS =8MHz: 3.3V~5.5V 3 bidirectional I/O lines An interrupt input shared with an I/O line 8-bit programmable timer/event
More informationHT82B40R/HT82B40A I/O 8-Bit MCU with USB Interface
I/O 8-Bit MCU with USB Interface Features Operating voltage: f SYS =6M/2MHz: 3.3V~5.5V Low voltage reset function 34 bidirectional I/O lines (max.) 8-bit programmable timer/event counter with overflow
More informationHT46R47/HT46R47-H Cost-Effective A/D Type 8-Bit OTP MCU
Cost-Effective A/D Type 8-Bit OTP MCU Technical Document Tools Information FAQs Application Note HA0003E Communicating between the HT48 & HT46 Series MCUs and the HT93LC46 EEPROM HA0009E HT48 & HT46 MCU
More informationHT45R36 C/R to F Type 8-Bit OTP MCU
C/R to F Type 8-Bit OTP MCU Technical Document Tools Information FAQs Application Note Features Operating voltage: f SYS =4MHz: 2.2V~5.5V f SYS =8MHz: 3.3V~5.5V 25 bidirectional I/O lines Two external
More informationHT49R70A-1/HT49C70-1/HT49C70L LCD Type 8-Bit MCU
LCD Type 8-Bit MCU Features Operating voltage: f SYS =4MHz: 2.2V~5.5V for HT49R70A-/HT49C70- f SYS =8MHz: 3.3V~5.5V for HT49R70A-/HT49C70- f SYS =500kHz:.2V~2.2V for HT49C70L 8 input lines 6 bidirectional
More informationHT46R47/HT46C47 A/D Type 8-Bit MCU
A/D Type 8-Bit MCU Features Operating voltage: f SYS =4MHz: 2.2V~5.5V f SYS =8MHz: 3.3V~5.5V 3 bidirectional I/O lines (max.) interrupt input shared with an I/O line 8-bit programmable timer/event counter
More informationHT48F10E. I/O Type 8-Bit Flash MCU With EEPROM. Technical Document. Features. General Description. Tools Information FAQs Application Note
I/O Type 8-Bit Flash MCU With EEPROM Technical Document Tools Information FAQs Application Note Features Operating voltage: f SYS =4MHz: 2.2V~5.5V f SYS =8MHz: 3.3V~5.5V Low voltage reset function 9 bidirectional
More informationHT48R32 8-bit OTP Microcontrollers
8-bit OTP Microcontrollers Features Operating voltage: 3.0V~5.2V 22 bidirectional I/O lines An interrupt input An 8-bit programmable timer/event counter with overflow interrupt On-chip crystal and RC oscillator
More informationHT49R50A-1/HT49C50-1/HT49C50L LCD Type 8-Bit MCU
LCD Type 8-Bit MCU Technical Document Tools Information FAQs Application Note HA007E Controlling the Read/Write Function of the HT24 Series EEPROM Using the HT49 Series MCUs HA0024E Using the RTC in the
More informationHT36A4 Music Synthesizer 8-Bit MCU
Music Synthesizer 8-Bit MCU Technical Document Tools Information FAQs Application Note Features Operating voltage: 2.4V~5.0V Operating frequency: 3.58MHz~2MHz (typ. 8MHz) 8 bidirectional I/O lines Two
More informationHT95R22 I/O Type Phone 8-bit MCU
I/O Type Phone 8-bit MCU Features Operating voltage at f SYS = 3.58MHz: 2.2V~5.5V 4K6 OTP type Program Memory 5768 Data Memory 8 bidirectional I/Os with pull-high options 2 NMOS output-only lines External
More informationHT48R05A-1 8-Bit OTP Microcontroller
8-Bit OTP Microcontroller Features Operating voltage: f SYS =4MHz: 3.3V~5.5V f SYS =8MHz: 4.5V~5.5V 3 bidirectional I/O lines An interrupt input shared with an I/O line 8-bit programmable timer/event counter
More informationHT46R01/HT46R02/HT46R03
1-Pin MSOP A/D Type 8-Bit OTP MCU Technical Document Tools Information FAQs Application Note HA3E Communicating between the HT48 & HT46 Series MCUs and the HT93LC46 EEPROM HA16E Writing and Reading to
More informationHT48R11 8-bit OTP Microcontrollers
8-bit OTP Microcontrollers Features Operating voltage: 3.0V~5.2V 8 bidirectional I/O lines Interrupt input 8-bit programmable timer/event counter with overflow interrupt On-chip crystal and RC oscillator
More informationHT49R30A-1/HT49C30-1/HT49C30L LCD Type 8-Bit MCU
Crystalfontz Thiscontrolerdatasheetwasdownloadedfrom htp:/www.crystalfontz.com/controlers/ HT49R30A-/HT49C30-/HT49C30L LCD Type 8-Bit MCU Technical Document Tools Information FAQs Application Note HA007E
More informationHTG Bit 320 Pixel Dot Matrix LCD MCU Series. Features. General Description
8-Bit 320 Pixel Dot Matrix LCD MCU Series Features Operating voltage: 2.4V~3.6V 6K6 bits program ROM 928 bits data RAM 8~2 bidirectional I/O lines 8 common33~40 segment LCD driver One 6-bit programmable
More informationHT48F50E. I/O Type 8-Bit Flash MCU With EEPROM. Technical Document. Features. General Description. Tools Information FAQs Application Note
I/O Type 8-Bit Flash MCU With EEPROM Technical Document Tools Information FAQs Application Note Features Operating voltage: f SYS =4MHz: 2.2V~5.5V f SYS =8MHz: 3.3V~5.5V Low voltage reset function 33 bidirectional
More informationHT46R64/HT46C64 A/D with LCD Type 8-Bit MCU
A/D with LCD Type 8-Bit MCU Features Operating voltage: f SYS =4MHz: 2.2V~5.5V f SYS =8MHz: 3.3V~5.5V 24 bidirectional I/O lines Two external interrupt input One 8-bit and one 6-bit programmable timer/event
More informationEnhanced I/O Type 8-Bit OTP MCU HT48R063B/HT48R064B HT48R065B/HT48R066B
Enhanced I/O Type 8-Bit OTP MCU HT48R063B/HT48R064B HT48R065B/HT48R066B Revision: 1.20 Date: June 3, 2013 Table of Contents General...6 Features...6 CPU Features...6 Peripheral Features...6 Technical Document...6
More informationHT49R70A-1/HT49C70-1/HT49C70L LCD Type 8-Bit MCU
Crystalfontz Thiscontrolerdatasheetwasdownloadedfrom htp:/www.crystalfontz.com/controlers/ HT49R70A-/HT49C70-/HT49C70L LCD Type 8-Bit MCU Technical Document Tools Information FAQs Application Note HA007E
More informationHT48R50A-1/HT48C50-1 I/O Type 8-Bit MCU
I/O Type 8-Bit MCU Features Operating voltage: f SYS =4MHz: 2.2V~5.5V f SYS =8MHz: 3.3V~5.5V Low voltage reset function 35 bidirectional I/O lines (max.) interrupt input shared with an I/O line 8-bit programmable
More informationHT46R32/HT46R34 A/D Type 8-Bit OTP MCU with OPA
A/D Type 8-Bit OTP MCU with OPA Technical Document Tools Information FAQs Application Note HA0003E Communicating between the HT48 & HT46 Series MCUs and the HT93LC46 EEPROM HA0049E Read and Write Control
More informationUsing General I/O Ports to Drive LCD Displays
Using General I/O Ports to Drive LCD Displays D/N:HA0092E Introduction In certain special cases, where it is required to reduce costs and where demand on the I/Os are low, users often require to use standard
More informationI/O Type 8-Bit OTP MCU with High Current LED Driver
I/O Type 8-Bit OTP MCU with 66 High Current LED Driver Features Operating voltage: f SYS =32768Hz: 2.2V~5.5V f SYS =4MHz: 2.2V~5.5V f SYS =8MHz: 3.3V~5.5V 2k4 program memory ROM 888 data memory RAM 8 bidirectional
More informationHT49R30A-1/HT49C30-1/HT49C30L 8-Bit LCD Type MCU
8-Bit LCD Type MCU Features Operating voltage: 2.2V~5.5V for HT49R30A-/HT49C30-.2V~2.2V for HT49C30L 6 input lines 8 bidirectional I/O lines Two external interrupt input One 8-bit programmable timer/event
More informationHT48R70A-1/HT48C Bit I/O Type MCU
8-Bit I/O Type MCU Features Operating voltage: f SYS =4MHz: 2.2V~5.5V f SYS =8MHz: 3.3V~5.5V Low voltage reset function 56 bidirectional I/O lines (max.) interrupt input 26-bit programmable timer/event
More informationHT82K95E/HT82K95A USB Multimedia Keyboard Encoder 8-Bit MCU
USB Multimedia Keyboard Encoder 8-Bit MCU Features Operating voltage: f SYS =6M/2MHz: 3.3V~5.5V Low voltage reset function 32 bidirectional I/O lines (max.) 8-bit programmable timer/event counter with
More informationHT49RA0/HT49CA0 Remote Type 8-Bit MCU with LCD
Remote Type 8-Bit MCU with LCD Features Operating voltage: 2.0V~3.6V 8 bidirectional I/O lines and 8 input lines Two external interrupt input One 8-bit programmable timer/event counter LCD driver with
More informationHT46R47. 8-Bit OTP Battery Charger Controller. Features. General Description
8-Bit OTP Battery Charger Controller Features Operating voltage: f SYS =4MHz: 3.3V~5.5V f SYS =8MHz: 4.5V~5.5V 3 bidirectional I/O lines (max.) interrupt input shared with an I/O line 8-bit programmable
More informationHT48RA0-2/HT48CA0-2 Remote Type 8-Bit MCU
Remote Type 8-Bit MCU Technical Document Tools Information FAQs Application Note HA006E Writing and Reading to the HT24 EEPROM with the HT48 MCU Series HA008E Controlling the HT62 LCD Controller with the
More informationHT46R14A A/D Type 8-Bit OTP MCU
A/D Type 8-Bit OTP MCU Technical Document Tools Information FAQs Application Note HA4E HT48 & HT46 MCU UART Software Implementation Method HA5E Controlling the I^2C bus with the HT48 & HT46 MCU Series
More informationHT46R22/HT46C22 8-Bit A/D Type MCU
8-Bit A/D Type MCU Features Operating voltage: f SYS =4MHz: 2.2V~5.5V f SYS =8MHz: 4.5V~5.5V 9 bidirectional I/O lines (max.) interrupt input shared with an I/O line 8-bit programmable timer/event counter
More informationHT46R47 8-Bit A/D Type OTP MCU
8-Bit A/D Type OTP MCU Features Operating voltage: f SYS =4MHz: 3.3V~5.5V f SYS =8MHz: 4.5V~5.5V 3 bidirectional I/O lines (max.) interrupt input shared with an I/O line 8-bit programmable timer/event
More informationHT46R14 A/D Type 8-Bit OTP MCU
A/D Type 8-Bit OTP MCU Technical Document Tools Information FAQs Application Note HA0004E HT48 & HT46 MCU UART Software Implementation Method HA0005E Controlling the I2C bus with the HT48 & HT46 MCU Series
More informationHALT function and wake-up feature reduce power consumption Six-level subroutine nesting Bit manipulation instructions Crystal or RC oscillator
8-Bit Multimedia Keyboard Encoder OTP MCU Features Operating voltage: 2.4V~5.5V 32/34 bidirectional I/O lines One 8-bit programmable timer counter with overflow interrupts HALT function and wake-up feature
More informationControlling the HT1621 LCD Controller With the HT48 MCU Series
Controlling the HT1621 LCD Controller With the HT48 MCU Series D/N HA0018E Introduction The HT1621 is a 128-bit multi-function LCD controller device with internal RAM memory mapping. The software configuration
More informationEnhanced A/D Type 8-Bit OTP MCU HT46R064B/HT46R065B/HT46R066B
Enhanced A/D Type 8-Bit OTP MCU HT46R064B/HT46R065B/HT46R066B Revision: 1.10 Date : October 23, 2012 Contents Table of Contents General...6 Features...6 CPU Features...6 Peripheral Features...6 Technical
More informationHT46RU24 A/D Type 8-Bit OTP MCU with UART
A/D Type 8-Bit OTP MCU with UART Features Operating voltage: f SYS =4MHz: 2.2V~5.5V f SYS =8MHz: 3.3V~5.5V 40 bidirectional I/O lines (max.) interrupt input shared with an I/O line One 8-bit and Two 6-bit
More informationHT82K96E. 8-Bit USB Multimedia Keyboard Encoder OTP MCU. Features. General Description
8-Bit USB Multimedia Keyboard Encoder OTP MCU Features Operating voltage: f SYS =6M/2MHz: 4.4V~5.5V Low voltage reset function 32 bidirectional I/O lines (max.) 8-bit programmable timer/event counter with
More informationBlock Diagram 2 H C H = 4 I J H K? J E 4 A C E I J A H 2 H C H = + K J A H 2 7: 5 6 ) + J A H H K F J + E H? K E J 6 +, = J = A H O , 6 4
Dual Slope A/D Type MCU with LCD Technical Document Tools Information FAQs Application Note Features Operating voltage: f SYS = 4MHz: 2.2V~5.5V f SYS = 8MHz: 3.3V~5.5V 0 bidirectional I/O lines and two
More informationHT56R67/HT56R668/HT56R678 TinyPower TM A/D Type with LCD 8-Bit OTP MCU
TinyPower TM A/D Type with LCD 8-Bit OTP MCU Technical Document Application Note HA0075E MCU Reset and Oscillator Circuits Application Note Features Operating voltage: f SYS =100kHz: 2.2V~5.5V f SYS =4MHz:
More informationHT46R63/HT46C63 A/D with LCD Type 8-Bit MCU
A/D with LCD Type -Bit MCU Technical Document Tools Information FAQs Application Note HA0003E Communicating between the HT4 & HT46 Series MCUs and the HT93LC46 EEPROM HA0004E HT4 & HT46 MCU UART Software
More informationHT48RA0-5 Remote Type 8-Bit OTP MCU
Remote Type 8-Bit OTP MCU Features Operating voltage: f SYS =4MHz at V DD =2.0V~3.6V (LVR enabled) f SYS =4MHz at V DD =.8V~3.6V (LVR disabled) Oscillator types: External high frequency Crystal -- HXT
More informationHT48 & HT46 MCU UART Software Implementation Method
HT48 & HT46 MCU UART Software Implementation Method HT48 & HT46 MCU UART Software Implementation Method D/NHA0004E Introduction With low power consumption and high performance, Holtek s 8-bit microcontrollers
More informatione-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Interrupt Handling Module No: CS/ES/13 Quadrant 1 e-text
e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Interrupt Handling Module No: CS/ES/13 Quadrant 1 e-text 1. Interrupt An interrupt is the occurrence of a condition--an event --
More informationHT95R54/HT95R55 CID Phone 8-Bit MCU
CID Phone 8-Bit MCU Features Operating voltage: f SYS =3.58MHz: 2.2V~5.5V f SYS =7.16MHz: 3.0V~5.5V f SYS =10.74MHz: 3.0V~5.5V f SYS =14.32MHz: 4.5V~5.5V Program Memory: 8K16 (HT95R54) 16K16 (HT95R55)
More informationHT36A2 8-Bit Music Synthesizer MCU
8-Bit Music Synthesizer MCU Features Operating voltage: 2.4V~5.0V Operating frequency: 3.58MHz~12MHz (typ. 8MHz) 20 bidirectional I/O lines Two 8-bit programmable timer with 8 stage prescaler Watchdog
More informationEEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture
Department of Electrical Engineering Lecture 4 The 8051 Architecture 1 In this Lecture Overview General physical & operational features Block diagram Pin assignments Logic symbol Hardware description Pin
More informationUsing the Data EEPROM in the HT66Fxx
Using the Data EEPROM in the HT66Fxx D/N: AN0191E Introduction The HT66Fxx series device contains an area of internal EEPROM Data Memory. The following gives a description about the EEPROM Data Memory
More information8051 Microcontroller Interrupts
8051 Microcontroller Interrupts There are five interrupt sources for the 8051, which means that they can recognize 5 different events that can interrupt regular program execution. Each interrupt can be
More informationHT46RU66/HT46CU66 A/D Type 8-Bit MCU with LCD
A/D Type 8-Bit MCU with LCD 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
More informationHT49R50A-1 Using a thermistor to implement a thermometer
HT49R50A-1 Using a thermistor to implement a thermometer D/:HA0098E Introduction This application note uses the HT49R50A-1 microcontroller. The pins PC.0, PC.1 and PC.2 are used to read the value on a
More informationA/D Type 8-Bit OTP MCU HT45R2W
HT45R2W Revision: 1.00 Date: February 08, 2012 Table of Contents Features... 5 CPU Features... 5 Peripheral Feature... 5 General... 6 Block Diagram... 6 Pin Assignment... 6 Pin... 7 Absolute Maximum Ratings...
More informationDepartment of EIE / Pondicherry Engineering College. Timer/Counters. Department of EIE / Pondicherry Engineering College 1
Timer/Counters Department of EIE / Pondicherry Engineering College 1 The 8051 has two internal sixteen bit hardware Timer/Counters. Each Timer/Counter can be configured in various modes, typically based
More informationEnhanced Flash MCU with EEPROM HT66F016/HT66F017 HT68F016/HT68F017 HT66F016R/HT66F017R HT68F016R/HT68F017R
Enhanced Flash MCU with EEPROM HT66F016/HT66F017 HT68F016/HT68F017 HT66F016R/HT66F017R HT68F016R/HT68F017R Revision: 1.40 Date: November 22, 2016 Table of Contents General Description...7 Features...7
More informationChapter 09. Programming in Assembly
Chapter 09 Programming in Assembly Lesson 05 Programming Examples for Timers Programming TMOD Register 3 Write instructions to run T0 in Mode 0, external count inputs, internal start/stop control ANL TMOD,
More information8051 I/O and 8051 Interrupts
8051 I/O and 8051 Interrupts Class 7 EE4380 Fall 2002 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Agenda 8051 I/O Interfacing Scanned LED displays LCD displays
More informationHT82A834R USB Audio MCU
USB Audio MCU Features Operating voltage: f SYS = 6M/2MHz: 3.3V~5.5V 24 bidirectional I/O lines (max.) Two 6-bit programmable timer/event counters and overflow interrupts 40965 program memory ROM 928 data
More informationSH69P55A EVB. Application Note for SH69P55A EVB SH69P55A EVB SH69V55A
Application Note for SH69P55A EVB SH69P55A EVB The SH69P55A EVB is used to evaluate the SH69P55A chip's function for the development of application program. It contains of a SH69V55A chip to evaluate the
More informationIntroduction To MCS-51
Introduction To MCS-51 By Charoen Vongchumyen Department of Computer Engineering Faculty of Engineering KMITLadkrabang 8051 Hardware Basic Content Overview Architechture Memory map Register Interrupt Timer/Counter
More information~: Simple Programs in 8051 assembly language :~
~: Simple Programs in 8051 assembly language :~ Here some simple programs of 8051 are given to understand the operation of different instructions and to understand the logic behind particular program.
More informationCoE3DJ4 Digital Systems Design. Chapter 5: Serial Port Operation
CoE3DJ4 Digital Systems Design Chapter 5: Serial Port Operation Serial port 8051 includes an on-chip serial port Hardware access to the port is through TXD and RXD (Port 3 bits 1 and 0) Serial port is
More information8051 Timers and Serial Port
8051 Timers and Serial Port EE4380 Fall 2001 Class 10 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Timer: Mode 1 Operation (recap) 16 bit counter. Load the
More informationCPEG300 Embedded System Design. Lecture 8 Timer
CPEG300 Embedded System Design Lecture 8 Timer Hamad Bin Khalifa University, Spring 2018 Review 8051 port and port schematic Internal read/write data path Serial communication vs. parallel communication
More informationCPEG300 Embedded System Design. Lecture 6 Interrupt System
CPEG300 Embedded System Design Lecture 6 Interrupt System Hamad Bin Khalifa University, Spring 2018 Correction Lecture 3, page 18: Only direct addressing mode is allowed for pushing or popping the stack:
More informationThree criteria in Choosing a Microcontroller
The 8051 Microcontroller architecture Contents: Introduction Block Diagram and Pin Description of the 8051 Registers Some Simple Instructions Structure of Assembly language and Running an 8051 program
More informationInterrupts. EE4380 Fall 2001 Class 9. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas
8051 - Interrupts EE4380 Fall 2001 Class 9 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Polling Vs Interrupts Polling: MCU monitors all served devices continuously,
More informationMCS-51 Serial Port A T 8 9 C 5 2 1
MCS-51 Serial Port AT89C52 1 Introduction to Serial Communications Serial vs. Parallel transfer of data Simplex, Duplex and half-duplex modes Synchronous, Asynchronous UART Universal Asynchronous Receiver/Transmitter.
More informationELEG3923 Microprocessor Ch.9 Timer Programming
Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.9 Timer Programming Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Programming 8051 Timers Counter programming Timer programming
More informationMicroprocessors & Interfacing
Lecture Overview Microprocessors & Interfacing Interrupts (I) Lecturer : Dr. Annie Guo Introduction to Interrupts Interrupt system specifications Multiple sources of interrupts Interrupt priorities Interrupts
More informationChapter 6 Interrupts. (I. Scott Mackenzie) By: Masud-ul-Hasan
Chapter 6 Interrupts (I. Scott Mackenzie) 1 Interrupts An interrupt is the occurrence of an event that causes a temporary suspension of a program while the condition is serviced by another program. It
More informationVidyalankar T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution
1. (a) 1. (b) T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution Priority modes. 1) Fully Nested Mode : It is a general purpose mode. IR 0 highest priority IR 1 lowest
More informationInterrupts (I) Lecturer: Sri Notes by Annie Guo. Week8 1
Interrupts (I) Lecturer: Sri Notes by Annie Guo Week8 1 Lecture overview Introduction to Interrupts Interrupt system specifications Multiple Sources of Interrupts Interrupt Priorities Interrupts in AVR
More informationHT8 UL60730 Safety Library -- Program Counter Register Test
HT8 UL60730 Safety Library -- Program Counter Register Test D/N: AN0385E Introduction In general, the UL/CSA 60730 safety standard applies to automatic electrical controls for use in, on, or in association
More informationContents 8051 Instruction Set BY D. BALAKRISHNA, Research Assistant, IIIT-H Chapter I : Control Transfer Instructions Lesson (a): Loop Lesson (b): Jump (i) Conditional Lesson (c): Lesson (d): Lesson (e):
More information8051 Serial Communication
8051 Serial Communication Basics of serial communication Parallel: transfers eight bits of data simultaneously over eight data lines expensive - short distance fast Serial : one bit at a time is transferred
More informationCoE3DJ4 Digital Systems Design. Chapter 6: Interrupts
CoE3DJ4 Digital Systems Design Chapter 6: Interrupts Interrupts An interrupt is the occurrence of an event that causes a temporary suspension of a program while the condition is serviced by another program.
More informationMod-3: Interrupts,Timer operation,serial communication 1
Mod-3: Interrupts,Timer operation,serial communication 1 Module-3 Contents: Interrupts - interrupt sources - interrupt handling programming examples. Timers operation different modes waveform generation-
More information