MB90420/5 (A) SERIES F
2
MC-16LX FAMILY 16-BIT MICROCONTROLLERS HARDWARE MANUAL
19-26
START
;
Stack pointer (SP), etc., already initialized
AND
CCR, #0BF
H
;
Interrupts disabled
MOV
ICR10, #08
H
;
Interrupt level = 0 (highest level), interrupt enable
MOV
BAPL, #00
H
;
Converted data store destination address set
MOV
BAPM, #06
H
;
(Addresses 600
H
to 60B
H
)
MOV
BAPH, #00
H
;
MOV
ISCS, #18
H
;
Word data transferred and then address incremented by
1
;
Transfer from I/O to memory
MOV
IOAL, #22
H
;
Analog data register address set
MOV
IOAH, #00
H
;
as transfer source address pointer
MOV
DCTL, #06
H
;
Data transferred to EI
2
OS six times, 3 ch
×
2 transfers
MOV
DDR6, #00000000
B
;
Pins P60 to P67 set as input pins
MOV
ADER, #00111000
B
;
Pins P63/AN3 to P65/AN5 set as analog input pins
MOV
DCTH, #00
H
;
MOV
ADCSL, #9D
H
;
Start in continuous mode, and convert AN3 to AN5
channels
MOV
ADCSH, #0A8
H
;
16-bit reload timer started, A/D conversion started, and
interrupts enabled
MOVW
TMRLR1L, #0320
H
;
Timer value set to 800 (320
H
); 100
µ
s
MOV
TMCSR1H, #00
H
;
Clock source set to 125 ns, and external trigger disabled
MOV
TMCSR1L, #12
H
;
Timer output disabled, interrupts disabled, and reload
enabled
MOV
TMSCR1L, #13
H
;
16-bit timer started
MOV
ILM, #07
H
;
ILM in PS set to level 7
OR
CCR, #40
H
;
Interrupts enabled
LOOP:
MOV
A, #00
H
;
Endless loop
MOV
A, #01
H
BRA
LOOP
;----------Interrupt program-------------------------------------------------
-----------
ED_INT1:
MOV
I:ADCSH, #80
H
;
A/D conversion not stopped, interrupt flag cleared and
interrupts disabled
RETI
;
Return from interrupt
CODE
ENDS
;----------Vector setting----------------------------------------------------
--------------
VECT
CSEG
ABS=0FF
H
ORG
0FF7C
H
;
Vector set to interrupt #32 (20
H
)
DSL
ED_INT1
ORG
0FFDC
H
;
Reset vector set
DSL
START
DB
00
H
;
Single-chip mode set
VECT
ENDS
END
START
Содержание MB90420/5 (A) Series
Страница 2: ...ii ...
Страница 24: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 1 2 ...
Страница 42: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 2 2 ...
Страница 76: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 2 36 ...
Страница 78: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 3 2 ...
Страница 90: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 4 2 ...
Страница 102: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 4 14 ...
Страница 104: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 5 2 ...
Страница 126: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 5 24 ...
Страница 128: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 6 2 ...
Страница 165: ...7 1 Mode Setting 7 3 7 2 Mode Pins MD2 to MD0 7 4 7 3 Mode Data 7 5 7 MODE SETTING ...
Страница 166: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 7 2 ...
Страница 172: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 8 2 ...
Страница 224: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 9 2 ...
Страница 244: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 10 2 ...
Страница 270: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 11 2 ...
Страница 286: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 12 2 ...
Страница 326: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 13 2 ...
Страница 338: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 14 2 ...
Страница 353: ...LCD CONTROLLER DRIVER 14 17 ...
Страница 365: ...LCD CONTROLLER DRIVER 14 29 ...
Страница 367: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 15 2 ...
Страница 377: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 16 2 ...
Страница 397: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 17 2 ...
Страница 400: ...18 1 Overview of Timepiece Timer 18 3 18 2 Timepiece Timer Registers 18 4 18 TIMEPIECE TIMER ...
Страница 401: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 18 2 ...
Страница 409: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 19 2 ...
Страница 436: ...20 1 Overview of Sound Generator 20 3 20 2 Sound Generator Registers 20 4 20 SOUND GENERATOR ...
Страница 437: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 20 2 ...
Страница 445: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 20 10 ...
Страница 446: ...21 1 Overview of ROM Correction 21 3 21 2 Application Example of ROM Correction 21 6 21 ROM CORRECTION ...
Страница 447: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 21 2 ...
Страница 455: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 21 10 ...
Страница 457: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 22 2 ...
Страница 461: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 23 2 ...
Страница 503: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 23 44 ...
Страница 505: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 24 2 ...
Страница 513: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 24 10 ...
Страница 515: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 25 2 ...
Страница 541: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 26 2 ...