Fujitsu F2MC-16LX Hardware Manual page 472

16-bit microcontroller mb90330 series
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

CHAPTER 19 8/10-BIT A/D CONVERTER
ADCS1
ADCR0
ADCR1
TMCSR0L
TMCSR0H
TMRLR0L
TMRLR0H EQU
;----------Main Program------------------------------------------------------------
CODE
START:
LOOP:
456
EQU
000041H
EQU
000042H
EQU
000043H
EQU
000062H
EQU
000063H
EQU
000064H
000065H
CSEG
AND
CCR,#0BFH
MOV
ICR12, #08H
MOV
BAPL, #00H
MOV
BAPM, #06H
MOV
BAPH, #00H
MOV
ISCS, #19H
MOV
IOAL, #42H
MOV
IOAH, #00H
MOV
DCTL, #0CH
MOV
DCTH, #00H
MOV
DDR7, #00000000B
MOV
ADER, #00001000B
MOV
ADMR, #033H
MOV
ADCS0, #0C0H
MOV
ADCS1, #0A8H
MOVW TMRLR0L, #0320H
MOV
TMCSR0H, #00H
MOV
TMCSR0L, #12H
MOV
TMCSR0L, #13H
MOV
ILM, #07H
OR
CCR, #40H
MOV
A,#00H
MOV
A,#01H
;
; A/D data register.
;
; Timer control status register 0 Low
;
; Reload Register 0
;
; Stack pointer (SP), etc. shall be initialized.
; Disables the interrupt.
; Interrupt levels (0 strength)
; Setting the converted data storage address
; (uses 600
to 617
).
H
H
;
; Transferring the word data, Transferred address +,
; I/O → Transfer to the memory, Termination at the
; resource request
; As forwarding former address pointer
; Setting analog data register address
2
; EI
OS transfer for 12 times, 3ch only
;
; P70 to P77 are set in the input
; P73/AN3 are set in the analog input
; AN3 CH is converted
; Stop mode
; Starting the 16-bit timer, Starting the A/D
; conversion, Interrupting permission
; Setting the timer value 800 (320
; Setting the clock source to 83 ns, External trigger
; Interdiction
; Disabling the timer output, Disabling the interrupt,
; Enabling the reload
; 16-bit timer startup
; Sets ILM in PS to level 7
; Interruption permission
; Infinite loop
) 66 ms
H

Advertisement

Table of Contents
loading

Table of Contents