beautypg.com

Attiny28l/v – Rainbow Electronics ATtiny28L User Manual

Page 31

background image

31

ATtiny28L/V

1062E–10/01

Figure 23. The Hardware Modulator

Figure 24 to Figure 27 show examples on output from the Modulator. Figure 24 also
shows the timing for the enable setting signal and for the count enable signal to
Timer/Counter0.

Figure 24. Modulation with ONTIM = 3, MCONF = 010.

Note:

1. Clock frequency: 455 kHz; modulation frequency: 38 kHz; duty-cycle: 33%

Figure 25. Modulation with ONTIM = 5, MCONF = 001

Note:

Clock frequency: 455 kHz; modulation frequency: 38 kHz; duty-cycle: 50%

DISABLE

MODUALTOR

PA2

0

1

D

Q

IPORTA2

FROM

PORTA2

ENABLE SETTING

MODULATOR

STATE

MACHINE

COUNT ENABLE

TO TIMER/COUNTER0

IONTIM

IMCONF

5

ONTIM

MCONF

3

RM

WM

8

5

3

5

3

/

/

/

/

/

/

/

WM: WRITE MODCR

RM: READ MODCR

CLK

PA2

COUNT

ENABLE

ENABLE

SETTING

CLK

PA2