
AN07-00200-03E
72
++++++++++
------------------
++++++++++
------------------
++++++++++++++++
---------------------------
++++++++++++++++
---------------------------
膨張
収縮
Figure 4-9 Principle of piezoelectric elements
In this way, a sound can be created by applying a voltage that changes in AC voltage or pulse voltage
to the piezoelectric buzzer. Here, the method outputs a pulse wave using the PPG timer that is built
into the microcontroller. PPG is an initialize for Programmable Pulse Generator, and as the name
implies, pulse outputs of various widths are obtained from the microcontroller by using programs.
Basically, pulse outputs using the PPG timer are enabled by setting the cycle, H width, and
operations clock. In reality, in addition to this pulse information, the PPG pin output enable settings
and PPG operations enable settings are also required.
Expansion
Contraction