Renesas R8C/17 Guide de l'utilisateur Page 80

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 97
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 79
73
SmartBook for Renesas R8C/Tiny Microcontrollers
www.MightyMicons.com
Now, we discuss the operation of this timer
using Timer C as reference.
As you know well, Timer C is based on 16
bit counter running from zero with the selected
input clock signal. The content of this timer is
compared with the contents of TM0 register for
every count. When the match is identified, timer
output line changes its level. But the counting of
timer continuous further and the counter contents are
continuously in check for the match with the contents
of other compare register, TM1. When there is a match,
again timer output pin changes its level and at the same time
timer contents are initialized to zero and then the operation continues
further.
Hence, the timer output gets both high and low levels alternatively and a square
waveform is generated.
Apart from the changes at the output pin, interrupts can also be generated for the
content matches of both compare circuits along with the Timer C overflow.
D
a
t
a
4
D
e
s
i
g
n
For every match with
the compare register,
timer output pin
changes its level and
at the same time
timer contents are initialized to zero
and then the operation continues
further. Hence, the timer output
gets both high and low levels
alternatively and a square
waveform is gener-
ated.
Vue de la page 79
1 2 ... 75 76 77 78 79 80 81 82 83 84 85 ... 96 97

Commentaires sur ces manuels

Pas de commentaire