English
Language : 

W681307DG Datasheet, PDF (46/160 Pages) Winbond – USB1.1 CODEC Microprocessor Control Unit with 32KB Mask ROM and 4KB RAM.
W681307
8.3.3
Sounder Tone Register Definition
The registers SounderTone1 and SounderTone2 set the output frequency of the corresponding tone generator.
Each 8-bit register has a range of 1 to 255 (decimal) corresponding to an output frequency range of 105Hz to 27KHz, with a 10%
tolerance.
8.3.4
Sounder Volume Register Definition
The registers SounderVol1 and SounderVol2 set the mark to space register of the corresponding tone generator.
Bit 4
0
0
0
0
0
0
0
0
1
1
Bit 3
0
0
0
0
0
0
0
0
1
1
Table 8-1: SounderVol1 and SounderVol2 pulse generation ratio.
Bit 2
Bit 1
Bit 0
Mark
Space
0
0
0
No output (permanent low)
0
0
1
1
31
0
1
0
2
30
0
1
1
3
29
1
0
0
4
28
1
0
1
5
27
1
1
0
6
26
1
1
1
7
25
…………
1
1
0
30
2
1
1
1
31
1
8.3.5
Example of use
In order to generate a 794Hz frequency output from tone source one with a mark to space ratio of 1:1. Program the SounderTone1 register
with 00100010 (÷ n = 35) and program the SounderVol1 register with 10000.
To give a 1350Hz frequency output from tone source one with a mark to space ratio of 7:25. Program the SounderTone1 register with
00010100 (÷ n = 21) and program the SounderVol1 register with 00111.
- 46 -
Publication Release Date: May, 2007
Revision 1.3