datasheetbank_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

NJU3504FA1 View Datasheet(PDF) - Japan Radio Corporation

Part Name
Description
View to exact match
NJU3504FA1
JRC
Japan Radio Corporation  JRC
NJU3504FA1 Datasheet PDF : 60 Pages
First Prev 21 22 23 24 25 26 27 28 29 30 Next Last
NJU3504
(2) PROGRAMMABLE INPUT/OUTPUT PORT OPERATION
a. The output operation example
PB0 and PB1 of PORTB output “H”, and PB2 and PB3 of PORTB output “L”.
:
SRPC
;
LDI
Y,0
; Peripheral table is
LDI
A,%0001
;
set as the table1
TAP
;
LDI
Y,2
;PHY18 is pointed
LDI
A,%0011
;"0011" is stored into Accumulator
TAP
;Data in Accumulator is transmitted to PHY18
; (PORTB output register)
LDI
Y,13
;PHY29 is pointed
LDI
A,%0010
;"0001" is stored into Accumulator
TAP
;Data in Accumulator is transmitted to PHY29
:
PORTB is
set as the output
b. The input operation example
Accumulator gets the input data from PORTB.
:
SRPC
;
LDI
Y,0
; Peripheral table is
LDI
A,%0001
; set as the table1
TAP
;
LDI
Y,13
;PHY29 is pointed
LDI
A,%0000
;"0000" is stored into Accumulator
PORTB is
set as the input
TAP
;Data in Accumulator is transferred to PHY29
LDI
Y,2
;PHY18 is pointed
TPA
;The input data from PHY18 is transferred to Accumulator
:
The signal from PB0 terminal is stored into the LSB of Accumulator, the signal from PB1 terminal is stored
into the b1 of Accumulator, the signal from PB2 terminal is stored into the b2 of Accumulator, and the signal
from PB3 terminal is stored into the b3 of Accumulator.
- 22 -

Share Link: 

datasheetbank.com [ Privacy Policy ] [ Request Datasheet ] [ Contact Us ]