NEC PD754144 User Manual page 185

4-bit single-chip microcontrollers
Table of Contents

Advertisement

Example For serial output of the 16-bit data of BUFF1, 2 from bit 0 of port 3
CLR1
MOV
MOV
MOV
MOV
MOV
LOOP0:
SKT
BR
NOP
SET1
BR
LOOP1:
CLR1
NOP
NOP
LOOP2:
INCS
BR
RET
CHAPTER 6 PERIPHERAL HARDWARE FUNCTION
MBE
XA, BUFF1
BSB0, XA
; Sets BSB0, 1
XA, BUFF2
BSB2, XA
; Sets BSB2, 3
L, #0
BSB0, @L
; Tests specified bit of BSB
LOOP1
; Dummy (to adjust timing)
PORT3.0
; Sets bit 0 of port 3
LOOP2
PORT3.0
; Clears bit 0 of port 3
; Dummy (to adjust timing)
; L ← L + 1
L
LOOP0
User's Manual U10676EJ3V0UM
185

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd754244

Table of Contents