Fujitsu 8FX Hardware Manual page 475

8-bit microcontroller new 8fx family
Table of Contents

Advertisement

MB95630H Series
LOOP:
;-------Interrupt program-------------------------------------------------------------------------------------
WARI:
CODE ENDS
;-------Vector setting------------------------------------------------------------------------------------------
VECT
VECT ENDS
MN702-00009-2v0-E
MOVW PCNT1,A
MOVW A,#0103H
MOVW OPCR,A
MOVW A,#0009H
MOVW OPDBR0,A
SETI
MOV
A,#00H
MOV
A,#01H;
JMP
LOOP;
CLRB
WTIF
; ;
; User processing
; :
RETI
CSEG
ABS
ORG
0FFDAH
DW WARI
ORG
0FFFCH
DW 0000H
DW START
END
START
END
FUJITSU SEMICONDUCTOR LIMITED
CHAPTER 21 MULTI-PULSE GENERATOR
21.8 Sample Program for Multi-pulse Generator
;Enables PPG output in normal polarity
;Enables 16-bit PPG timer
;Software triggers PPG
;Select PWM mod
;Clears interrupt flag, and starts counter
;Enable OPT0 and OPT1 output
;Sets OPDBRH0/OPDBRL0 write method for data
transfer
;Enable write timing interrupt
;Clears interrupt flag
;Sets OPT0 pin as PPG output
;Sets OPT1 pin as inverted PPG output
;Starts data transfer
;Interrupt enable
;Endless loop
;Clears interrupt request flag
;Returns from interrupt
;Sets vector for interrupt #16 (0x10)
;Sets reset vector
;Sets single-chip mode
453

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95630h series

Table of Contents