Rainbow-electronics T89C5115 Manual de usuario Pagina 70

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 105
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 69
70
T89C5115
4128A–8051–04/02
16-bit Software Timer
Mode
The PCA modules can be used as software timers by setting both the ECOM and MAT
bits in the modules CCAPMn register. The PCA timer will be compared to the module’s
capture registers and when a match occurs an interrupt will occur if the CCFn (CCON
SFR) and the ECCFn (CCAPMn SFR) bits for the module are both set.
Figure 33. PCA 16-bit Software Timer and High Speed Output Mode
CCAPnL
(8 bits)
CCAPnH
(8 bits)
- ECOMn0 0 MATn TOGn0 ECCFn
70
CCAPMn Register
(n = 0, 1)
CH
(8 bits)
CL
(8 bits)
16-Bit Comparator
Match
Enable
CCFn
CCON reg
PCA
Interrupt
Request
CEXn
Compare/Capture Module
PCA Counter
“0”
“1”
Reset
Write to
CCAPnL
WritetoCCAPnH
For software Timer mode, set ECOMn and MATn.
For high speed output mode, set ECOMn, MATn and TOGn.
Toggle
Vista de pagina 69
1 2 ... 65 66 67 68 69 70 71 72 73 74 75 ... 104 105

Comentarios a estos manuales

Sin comentarios