CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Sound Generator)

4.12.7 I/O memory of sound generator

Table 4.12.7.1 shows the I/O addresses and the control bits for the sound generator.

 

 

 

 

 

 

Table 4.12.7.1

Control bits of sound generator

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Address

 

 

Register

 

 

 

 

 

 

 

 

 

Comment

 

 

 

 

D3

 

D2

D1

D0

Name

Init 1

 

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R03HIZ

R02HIZ

R01HIZ

R00HIZ

R03HIZ

0

 

Hi-Z

Output

 

R03 (FOUTE=0)/FOUT (FOUTE=1) Hi-z control

 

 

FF30H

 

 

 

 

 

R02HIZ

0

 

Hi-Z

Output

 

R02 (PTOUT=0)/TOUT (PTOUT=1) Hi-z control

 

 

 

 

R/W

 

R01HIZ

0

 

Hi-Z

Output

 

R01 (BZOUT=0)/BZ (BZOUT=1) Hi-z control

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R00HIZ

0

 

Hi-Z

Output

 

R00 (XBZOUT=0)/XBZ (XBZOUT=1) Hi-z control

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R03

 

R02

R01

R00

R03

1

 

High

Low

 

R03 output port data (FOUTE=0) Fix at "1" when FOUT is used.

FF31H

(FOUT)

 

(TOUT)

(BZ)

(XBZ)

R02

1

 

High

Low

 

R02 output port data (PTOUT=0) Fix at "1" when TOUT is used.

 

 

R/W

 

R01

1

 

High

Low

 

R01 output port data (BZOUT=0) Fix at "1" when BZ is used.

 

 

 

 

 

 

 

 

 

 

 

 

R00

1

 

High

Low

 

R00 output port data (XBZOUT=0) Fix at "1" when XBZ is used.

 

 

 

 

 

 

 

 

 

 

 

0

 

0

BZOUT

XBZOUT

0 3

2

 

 

 

 

Unused

 

 

 

 

 

 

 

 

 

0 3

2

 

 

 

 

Unused

 

 

 

 

 

 

FF65H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R

 

R/W

BZOUT

0

 

BZ

DC

 

R01 output selection (R01 should be fixed at "1".)

 

 

 

 

 

 

 

 

 

 

 

 

XBZOUT

0

 

XBZ

DC

 

R00 output selection (R00 should be fixed at "1".)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ENRTM

 

ENRST

ENON

BZE

ENRTM

0

 

1sec

0.5sec

 

Envelope releasing time selection

 

 

 

 

 

 

 

 

ENRST3

Reset

 

Reset

Invalid

 

Envelope reset (writing)

 

 

 

 

 

FF6CH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R/W

 

W

R/W

ENON

0

 

On

Off

 

Envelope On/Off

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BZE

0

 

Enable

Disable

 

Buzzer output enable

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

BZSTP

BZSHT

SHTPW

0 3

2

 

 

 

 

Unused

 

 

 

 

 

 

 

 

 

BZSTP3

0

 

Stop

Invalid

 

1-shot buzzer stop (writing)

 

 

 

 

 

FF6DH

 

 

 

 

 

BZSHT

0

 

Trigger

Invalid

 

1-shot buzzer trigger (writing)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R

 

W

R/W

 

 

 

Busy

Ready

 

1-shot buzzer status (reading)

 

 

 

 

 

 

 

 

SHTPW

0

 

125msec

31.25msec

 

1-shot buzzer pulse width setting

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

BZFQ2

BZFQ1

BZFQ0

0 3

2

 

 

 

 

Unused

[BZFQ2, 1, 0]

0

1

2

3

 

 

 

 

BZFQ2

0

 

 

 

 

 

Buzzer

 

FF6EH

 

 

 

 

 

 

 

 

 

 

Frequency (Hz) 4096.0

3276.8

2730.7

2340.6

 

 

 

 

 

 

BZFQ1

0

 

 

 

 

 

frequency

 

 

 

R

 

 

R/W

 

 

 

 

 

 

[BZFQ2, 1, 0]

4

5

6

7

 

 

 

 

 

 

BZFQ0

0

 

 

 

 

 

selection

Frequency (Hz) 2048.0

1638.4

1365.3

1170.3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

BDTY2

BDTY1

BDTY0

0 3

2

 

 

 

 

Unused

 

 

 

 

 

 

FF6FH

 

BDTY2

0

 

 

 

 

 

Buzzer signal duty ratio selection

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BDTY1

0

 

 

 

 

 

 

 

 

 

 

 

 

R

 

 

R/W

 

 

 

 

 

 

(refer to main manual)

 

 

 

 

 

 

 

 

 

 

BDTY0

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*1 Initial value at initial reset

*2 Not set in the circuit

*3 Constantly "0" when being read

R00HIZ, R01HIZ: R00, R01 port high impedance control register (FF30H•D0, D1)

Controls high impedance output of the output port.

When "1" is written: High impedance

When "0" is written: Data output

Reading: Valid

When using the BZ and XBZ outputs, fix the registers at "0". R01HIZ corresponds to the BZ output and R00HIZ corresponds to the XBZ output.

At initial reset, these registers are set to "0".

R00, R01: R00, R01 output port data register (FF31H• D0, D1)

Set the output data for the output ports.

When "1" is written: High level output

When "0" is written: Low level output

Reading: Valid

When using the BZ and XBZ outputs, fix the registers at "1". R01 corresponds to the BZ output and R00 corresponds to the XBZ output.

At initial reset, these registers are all set to "1".

S1C63558 TECHNICAL MANUAL

EPSON

105