Fujitsu MB91460 SERIES FR60 User Manual page 882

32-bit microcontroller
Table of Contents

Advertisement

Chapter 42 Sound Generator
3.Registers
3.1 Register Details
■ Sound Control Register (SGCR)
Sound Control register
Address:
000198
Read/write
Initial value
Address:
000199
Read/write
Initial value
[bit 15] TST : Test bit
This bit is prepared for the device test. In any user application it should be set to "0".
[bits14 to12] S2 to S0 : Operation clock select bits
These bits specify the clock input signal for the Sound Generator.
S2
0
0
0
0
1
[bit 9] BUSY : Busy bit
This bit indicates whether the Sound Generator is in operation. This bit is set to "1" upon the
ST bit is set to "1". It is reset to "0" when the ST bit is reset to "0" and the operation is
completed at the end of one tone cycle. Any write instruction performed on this bit has no
effect.
[bit 8] DEC : Auto-decrement enable bit
The DEC bit is prepared for an automatic decrement of the sound in conjunction with the
Decrement Grade register.
If this bit is set to "1", the stored value in the Amplitude Data register is decremented by
1(one), every time when the Decrement counter counts the number of tone pulses from the
toggle flip-flop specified by the Decrement Grade register.
[bit 5] TONE : Tone output bit
When this bit is set to "1", the SGO signal becomes a simple square-waveform (tone pulses)
from the toggle flip-flop. Otherwise it is the mixed (AND logic) signal of the tone and PWM
pulses.
866
15
14
H
TST
S2
(R/W)
(R/W)
(0)
(0)
7
6
H
S1
S0
0
0
CLK
0
1
1/2 CLK
1
0
1/4 CLK
1
1
1/8 CLK
0
0
1/16 CLK
13
12
11
S1
S0
(R/W)
(R/W)
(0)
(0)
5
4
3
TONE
(R/W)
(0)
Clock input
10
9
8
BUSY
DEC
(R/W)
(R)
(0)
(0)
2
1
0
INTE
INT
ST
(R/W)
(R/W)
(R/W)
(0)
(0)
(0)
Bit number
SGCRH
Bit number
SGCRL

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr60Mb91460 series

Table of Contents