English
Language : 

MC80F0204 Datasheet, PDF (27/126 Pages) List of Unclassifed Manufacturers – 8-BIT SINGLE-CHIP MICROCONTROLLERS
Preliminary
MC80F0104/0204
Example: The usage software example of Vector address
for MC80F0204.
;Interrupt Vector Table
ORG 0FFE0H
DW BIT_TIMER
DW WDT
DW ADC
DW Not_used
DW TIMER3
DW TIMER2
DW TIMER1
DW TIMER0
DW SIO
DW TX
DW RX
DW INT3
DW INT2
DW INT1
DW INT0
DW RESET
; BIT
; WDT
; AD Converter
;
; Timer-3
; Timer-2
; Timer-1
; Timer-0
; Serial Interface
; UART Tx
; UART Rx
; Ext Int.3
; Ext Int.2
; Ext Int.1
; Ext Int.0
; Reset
ORG 0F000H
; 4K bytes ROM Start address
;*******************************************
;
MAIN
PROGRAM
*
;*******************************************
RESET:
DI
;Disable All Interrupt
;RAM Clear Routine
LDX
#0
RAM_Clear0:
LDA
#0
;Page0 RAM Clear(0000h ~ 00BFh)
STA
{X}+
CMPX
#0C0h
BNE
RAM_Clear0
LDM
SETG
RPR,#1
;Page Select
RAM_Clear1:
LDX
LDA
STA
CMPX
BNE
#0C0h
#0
{X}+
#00h
RAM_Clear1
RAM_Clear_Finish:
CLRG
LDX
TXSP
:
:
;Initialize IO
LDM
LDM
:
:
;Page0 Select
#0FFh
;Initial Stack Pointer
R0, #0
R0IO,#0FFH
;Normal Port R0
;Normal Port R0 Direction
Mar. 2005 Ver 0.2
23