Renesas H8S/2111B Manual de usuario Pagina 240

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 582
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 239
Rev. 1.00, 05/04, page 206 of 544
10.4 Operation
10.4.1 Pulse Output
Figure 10.4 shows an example for outputting an arbitrary duty pulse.
1. Clear the CCLR1 bit in TCR to 0 so that TCNT is cleared according to the compare match of
TCORA, and then set the CCLR0 bit to 1.
2. Set the OS3 to OS0 bits in TCSR to B'0110 so that 1 is output according to the compare match
of TCORA and 0 is output according to the compare match of TCORB.
According to the above settings, the waveforms with the TCORA cycle and TCORB pulse width
can be output without the intervention of software.
TCNT
H'FF
Counter clear
TCORA
TCORB
H'00
TMO
Figure 10.4 Pulse Output Example
Vista de pagina 239
1 2 ... 235 236 237 238 239 240 241 242 243 244 245 ... 581 582

Comentarios a estos manuales

Sin comentarios