beautypg.com

Api4000m, Integrated, Series – Rainbow Electronics API4000M User Manual

Page 8: Circuits inc. voice otp module, D. input & output data

background image

INTEGRATED

API4000M

SERIES

CIRCUITS INC. VOICE OTP MODULE

8

D. Input & Output Data

By the 2 Instruction INPUT and OUTPUT, Data can pass inside API4000M, or connect with outside. The

following is the description about each Data Port’s act.

1. Input Data Port

(1) PA ﹕Input Data Port A is a value consists of Input Pin PIO3 ~ PIO0 and PI3 ~ PI0, Following is their

correspondent.

PA

bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0

Input

Pin PIO3 PIO2 PIO1 PIO0 PI3 PI2 PI1 PI0

PS ﹕If PIO3 ~ PIO0 or PI2 ~ PI0 are set to Out Pin, bit7 ~ bit4 or bit2 ~ bit0 will be Unknown State.

(2) PB ﹕Input Data Port B can make Melody change Channel code of instrument and Instrument Code,

Each bit of PB has following act.

PB

bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0

Item

-

C1 C0 Inst4 Inst3 Inst2 Inst1 Inst0

PS﹕

(1). Inst4~Inst0 ﹕Code of Instrument, 0 ~ 31 total 32 type, set as Melody Compiling.
(2). C1,C0 ﹕Code of Channel﹔

C1=1,C0=1 is CH1 ﹔
C1=0,C0=0 is CH2 ﹔
C1=0,C0=1 is CH3 ﹔
C1=1,C0=0 is CH4 ﹔


(3) PC ﹕Input Data Port C is display End State of each channel, each pin of PC has following act.

PC

bit7 Bit6 bit5 bit4 bit3 bit2 bit1 bit0

Item - - - -

Sn4

Sn3

Sn2

Sn1

PS﹕ (1). Sn4 , Sn3 , Sn2 and Sn1 displayed Channel CH4 , CH3 , CH2 and CH1 if had happen Sound End,

state 1 means Soind End.



2. Output Data Port

(1) PA ﹕Output Data Port A consists of Output Pin PIO3 ~ PIO0 and PO3 ~ PO0, each bit of PA after

API4000M

power on, the initial state is 0, each pin of PA has following act.

PA

bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0

Output

Pin PIO3 PIO2 PIO1 PIO0 PO3 PO2 PO1 PO0

PS ﹕If PIO3 ~ PIO0 are set to Input Pin, bit7 ~ bit4 will not affect PIO3 ~ PIO0 of state.