Fujitsu MB90335 Series Hardware Manual page 450

16-bit microcontroller
Table of Contents

Advertisement

MB90335 Series
LOOP:
;----------Interrupt Program------------------------------------------------------------
WARI:
;
;
;
CODE
;----------Vector Settings------------------------------------------------------------------
VECT
VECT
CM44-10137-6E
MOV
I:SCR0, #00110011B
MOV
I:SSR0, #00000010B
MOV
I:SODR0, #13H
MOV
ILM, #07H
OR
CCR, #40H
MOV
A,#00H
MOV
A,#01H
BRA
LOOP
MOV
A, SIDR0
CLRB
I:REC
:
User processing
:
RETI
ENDS
CSEG
ABS=0FFH
ORG
0FF60H
DSL
WARI
ORG
0FFDCH
DSL
START
DB
00H
ENDS
FUJITSU MICROELECTRONICS LIMITED
18.9 Example of UART Programming
; Parity none and stop bit 2 bits
; Data length 8 bits and reception clear error flag
; Enables the transmission/reception operation
; sending interrupt disabled, receiving interrupt
; enabled
; Transmission data writing
; Sets ILM in PS to level 7
; Interruption permission
; infinite loop
; Reading receive data
; The reception interrupt request flag is clear.
; Returns from interrupt.
; The vector is set in interruption #39(27
; Reset vector setting
; Set to Single-chip mode
CHAPTER 18 UART
).
H
429

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16lxMb90v330aMb90f337Mb90337

Table of Contents