datasheetbank_Logo
전자부품 반도체 검색엔진( 무료 PDF 다운로드 ) - 데이터시트뱅크

NJU3503L 데이터 시트보기 (PDF) - Japan Radio Corporation

부품명
상세내역
일치하는 목록
NJU3503L
JRC
Japan Radio Corporation  JRC
NJU3503L Datasheet PDF : 60 Pages
First Prev 11 12 13 14 15 16 17 18 19 20 Next Last
NJU3503
(2) PROGRAMMABLE INPUT/OUTPUT PORT OPERATION
a. The output operation example
PA0 and PA1 of PORTA output “H”, and PA2 and PA3 of PORTA output “L”.
:
SRPC
;
LDI Y,0
LDI A,%0001
TAP
; Peripheral table is
;
set as the table1
;
LDI Y,1
;PHY17 is pointed
LDI A,%0011
;"0011" is stored into Accumulator
TAP
;Data in Accumulator is transmitted to PHY17
; (PORTA output register)
LDI Y,8
LDI A,%1111
TAP
;PHY24 is pointed
;"1111" is stored into Accumulator
;Data in Accumulator is transmitted to PHY24
PORTA is
set as the output
:
b. The input operation example
Accumulator gets the input data from PORTA.
:
SRPC
;
LDI Y,0
LDI A,%0001
TAP
; Peripheral table is
;
set as the table1
;
LDI Y,8
LDI A,%0000
TAP
;PHY24 is pointed
;"0000" is stored into Accumulator
;Data in Accumulator is transferred to PHY24
PORTA is
set as the input
LDI Y,1
;PHY17 is pointed
TPA
;The input data from PHY17 is transferred to Accumulator
:
The signal from PA0 terminal is stored into the LSB of Accumulator, the signal from PA1 terminal is
stored into the b1 of Accumulator, the signal from PA2 terminal is stored into the b2 of Accumulator,
and the signal from PA3 terminal is stored into the b3 of Accumulator.
- 19 -

Share Link: 

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