04.03.2013 Views

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Under development<br />

Preliminary document<br />

Specifications in this document are tentative and subject to change.<br />

<strong>RL78</strong>/<strong>D1A</strong> CHAPTER 17 SOUND GENERATOR<br />

(2) Control register (SG0CTL)<br />

The 8-bit SG0CTL register controls the operation of the Sound Generator.<br />

This register can be read/written in 8-bit or 1-bit units.<br />

This register is cleared by any reset.<br />

Address: F0287H After reset: 00H R/W<br />

Figure 17-3. Format of Control Register (SG0CTL)<br />

Symbol 7 6 5 4 3 2 1 0<br />

SG0CTL 0 0 0 SG0PWR 0 0 SG0OS SG0ALDS<br />

SG0PWR Power save mode selection<br />

0 Clock input switched off (the Sound Generator is disabled and does not operate).<br />

1 Clock input switched on (the Sound Generator is enabled and ready to use).<br />

SG0OS SG0 output mode selection<br />

0 Selects frequency output at SGO/SGOF.<br />

1 Selects frequency and amplitude mixed output at SGO/SGOF.<br />

SG0ALDS Automatic logarithmic decrement of amplitude<br />

0 Automatic logarithmic decrement deactivated.<br />

1 Automatic logarithmic decrement activated.<br />

Caution Change the contents of this register only when the sound is stopped (register SG0PWM cleared).<br />

R01UH0317EJ0004 Rev. 0.04 1002<br />

Feb. 22, 2013

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!