beautypg.com

NEC PD75402A User Manual

Page 103

background image

92

CHAPTER 5. PERIPHERAL HARDWARE FUNCTIONS

(b) To transmit/receive MSB-first data using an external clock (slave operation).

P01/SCK

µ

PD75402A

SI

SO/SB0

SCK

SO

SI

Other Microcomputer

Main routine

MOV

XA, #80H

MOV

CSIM, XA

; Serial operation stopped, external clock specification

MOV

XA, TDATA

MOV

SIO, XA

; Transfer data setting & start of transfer

EI

IECSI

EI

Interrupt routine

MOV

XA, TDATA

XCH

XA, SIO

; Receive data

÷

send data & start of transfer

MOV

RDATA, XA

; Receive data save

RETI

This manual is related to the following products: