
ML62Q1000 Series User's Manual
Chapter 15 Buzzer
FEUL62Q1000
15-7
15.2.3 Buzzer 0 Mode Register (BZ0MOD)
BZ0MOD is a special function register (SFR) used to set the buzzer output waveform.
Address:
0xF0C2 (BZ0MOD/ BZ0MODL), 0xF0C3(BZ0MODH)
Access:
R/W
Access size: 8/16bit
Initial value:
0x0000
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Word
BZ0MOD
Byte
BZ0MODH
BZ0MODL
-Bit
-
-
-
BZ0INI BZ0D3 BZ0D2 BZ0D1 BZ0D0
-
BZ0F2 BZ0F1 BZ0F0
-
-
BZ0MD
1
BZ0MD
0
R/W
R
R
R
R/W
R/W
R/W
R/W
R/W
R
R/W
R/W
R/W
R
R
R/W
R/W
Initial
value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Bit
No.
Bit symbol
name
Description
15 to
13
-
Reserved bit
12
BZ0INI
This bit is used to choose the output logic of the buzzer output pins.
0: The output of buzzer pin (BZ0P, BZ0N) has positive logic (Initial)
1: The output of buzzer pin (BZ0P, BZ0N) has negative logic
11 to 8
BZ0D3 to
BZ0D0
These bits are used to choose duty of the buzzer output. The volume of the buzzer sound
changes by changing the duty.
Buzzer Frequency 4.096kHz
Buzzer Frequency other than 4.096kHz
0000:
Duty is 1/8 (12.5%) (Initial)
Duty is 1/16 (6.25%) (Initial)
small
0001:
Duty is 1/8 (12.5%)
Duty is 1/16(6.25%)
0010:
Duty is 1/8 (12.5%)
Duty is 2/16(12.5%
)
0011:
Duty is 1/8 (12.5%)
Duty is 3/16(18.75%)
0100:
Duty is 2/8 (25%)
Duty is 4/16(25%)
0101:
Duty is 2/8 (25%)
Duty is 5/16 (31.25%)
0110:
Duty is 3/8 (37.5%)
Duty is 6/16 (37.5%)
0111:
Duty is 3/8 (37.5%)
Duty is 7/16 (43.75%)
1000:
Duty is 4/8 (50%)
Duty is 8/16 (50%)
1001:
Duty is 4/8 (50%)
Duty is 9/16 (56.25%)
1010:
Duty is 5/8 (62.5%)
Duty is 10/16 (62.5%)
1011:
Duty is 5/8 (62.5%)
Duty is 11/16 (68.75%)
1100:
Duty is 6/8 (75%)
Duty is 12/16 (75%)
1101:
Duty is 6/8 (75%)
Duty is 13/16 (81.25%)
1110:
Duty is 7/8 (87.5%)
Duty is 14/16 (87.5%)
1111:
Duty is 7/8 (87.5%)
Duty is 15/16 (93.75%)
large
7
-
Reserved bit
6 to 4
BZ0F2 to
BZ0F0
These bits are used to choose the frequency of the buzzer output.
The pitch of the buzzer sound changes by changing the frequency.
000:
4.096kHz (Initial)
High
001:
2.048kHz
010:
1.024kHz
011:
683Hz
100:
512Hz
101:
410Hz
110:
341Hz
111:
293Hz
Low
3, 2
-
Reserved bit
Volume
Pitch
Summary of Contents for ML62Q1000 Series
Page 17: ...Chapter 1 Overview...
Page 112: ...Chapter 2 CPU and Memory Space...
Page 154: ...Chapter 3 Reset Function...
Page 166: ...Chapter 4 Power Management...
Page 196: ...Chapter 5 Interrupts...
Page 248: ...Chapter 6 Clock generation Circuit...
Page 274: ...Chapter 7 Low Speed Time Base Counter...
Page 291: ...Chapter 8 16 Bit Timer...
Page 320: ...Chapter 9 Functional Timer FTM...
Page 382: ...Chapter 10 Watchdog Timer...
Page 402: ...Chapter 11 Serial Communication Unit...
Page 456: ...Chapter 12 I2 C Bus Unit...
Page 491: ...Chapter 13 I2 C Master...
Page 512: ...Chapter 14 DMA Controller...
Page 531: ...Chapter 15 Buzzer...
Page 550: ...Chapter 16 Simplified RTC...
Page 559: ...Chapter 17 GPIO...
Page 594: ...Chapter 18 External Interrupt Function...
Page 612: ...Chapter 19 CRC Generator...
Page 632: ...Chapter 20 Analog Comparator...
Page 644: ...Chapter 21 D A Converter...
Page 655: ...Chapter 22 Voltage Level Supervisor...
Page 676: ...Chapter 23 Successive Approximation Type A D Converter...
Page 709: ...Chapter 24 Regulator...
Page 714: ...Chapter 25 Flash Memory...
Page 743: ...Chapter 26 Code Option...
Page 750: ...Chapter 27 LCD Driver...
Page 788: ...Chapter 28 On Chip Debug Function...
Page 795: ...Chapter 29 Safety Function...
Page 813: ...Appendix A...
Page 881: ...Revision History...