Fujitsu MB90420/5 (A) Series Hardware Manual page 435

F2mc-16lx family 16-bit microcontrollers
Table of Contents

Advertisement

MB90420/5 (A) SERIES F
START
AND
CCR, #0BF
MOV
ICR10, #08
MOV
BAPL, #00
MOV
BAPM, #06
MOV
BAPH, #00
MOV
ISCS, #19
MOV
IOAL, #22
MOV
IOAH, #00
MOV
DCTL, #0C
MOV
DCTH, #00
MOV
DDR6, #00000000
MOV
ADER, #00001000
MOV
ADCSL, #0DB
MOV
ADCSH, #0A8
MOVW
TMRLR1L, #0320
MOV
TMCSR1H, #00
MOV
TMCSR1L, #12
MOV
TMSCR1L, #13
MOV
ILM, #07
OR
CCR, #40
LOOP:
MOV
A, #00
MOV
A, #01
BRA
LOOP
;----------Interrupt program-------------------------------------------------
-----------
ED_INT1:
MOV
I:ADCSH, #80
RETI
CODE
ENDS
;----------Vector setting----------------------------------------------------
--------------
VECT
CSEG
ABS=0FF
ORG
0FF7C
DSL
ED_INT1
ORG
0FFDC
DSL
START
DB
00
VECT
ENDS
END
START
2
MC-16LX FAMILY 16-BIT MICROCONTROLLERS HARDWARE MANUAL
; Stack pointer (SP), etc., already initialized
; Interrupts disabled
H
; Interrupt level = 0 (highest)
H
; Converted data store destination address set
H
; (Addresses 600
H
;
H
; Word data transferred and then address incremented by
H
; Transfer from I/O to memory, end for resource request
; Analog data register address set
H
; as transfer source address pointer
H
; Data transferred to EI
H
;
H
; Pins P60 to P67 set as input pins
B
; Pin P63/AN3 set as analog input pins
B
; Start in stop mode, and convert AN3 channels
H
; 16-bit reload timer started, A/D conversion started, and
H
; Timer value set to 800 (320
H
; Clock source set to 125 ns, and external trigger disabled
H
; Timer output disabled, interrupts disabled, and reload
H
; 16-bit timer started
H
; ILM in PS set to level 7
H
; Interrupts enabled
H
; Endless loop
H
H
; A/D conversion stopped, interrupt flag cleared and
H
; Return from interrupt
H
; Vector set to interrupt #32 (20
H
; Reset vector set
H
; Single-chip mode set
H
to 617
H
1
2
interrupts enabled
enabled
interrupts disabled
19-28
)
H
OS 12 times, 3 channels only
); 100 µs
H
)
H

Advertisement

Table of Contents
loading

Table of Contents