Fujitsu F2MC-8L F202RA Hardware Manual page 130

F2mc-8l 8-bit microcontroller
Hide thumbs Also See for F2MC-8L F202RA:
Table of Contents

Advertisement

CHAPTER 4 I/O PORTS
● Coding example
PDR0 EQU 0000H
DDR0 EQU 0001H
PDR3 EQU 000CH
DDR3 EQU 000DH
;------------------------------Main program-----------------------------------------------------------------------
;---------------------------------------------------------------------------------------------------------------------
114
CSEG
:
CLRB PDR0:0
MOV PDR3,#11111111B
MOV DDR0,#11111111B
MOV DDR3,#11111111B
:
ENDS
END
; Address of port 0 data register
; Address of port 0 data direction register
; Address of port 3 data register
; Address of port 3 data direction register
; [CODE SEGMENT]
; Set P00 at "L" level.
; Set all pins of port 3 at "H" level.
; Set P00 to function as an output port by coding
#XXXXXXX1B.
; Set all bits of DDR3 such that all pins of port 3 function
as an output port.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-8l mb89202Mb89202/f202ra series

Table of Contents