Rainbow-electronics ATmega8HVD Manual de usuario Pagina 79

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 168
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 78
79
8052B–AVR–09/08
ATmega4HVD/8HVD
Figure 16-4. Input Capture Unit Block Diagram
The Output Compare Register OCRnA is a dual-purpose register that is also used as an 8-bit
Input Capture Register ICRn. In 16-bit Input Capture mode the Output Compare Register
OCRnB serves as the high byte of the Input Capture Register ICRn. In 8-bit Input Capture
mode the Output Compare Register OCRnB is free to be used as a normal Output Compare
Register, but in 16-bit Input Capture mode the Output Compare Unit cannot be used as there
are no free Output Compare Register(s). Even though the Input Capture register is called
ICRn in this section, it is referring to the Output Compare Register(s). For more information on
how to access the 16-bit registers refer to ”Accessing Registers in 16-bit Mode” on page 82.
When a change of the logic level (an event) occurs on the Input Capture pin (ICPx), and this
change confirms to the setting of the edge detector, a capture will be triggered. When a cap-
ture is triggered, the value of the counter (TCNTn) is written to the Input Capture Register
(ICRn). The Input Capture Flag (ICFn) is set at the same system clock as the TCNTn value is
copied into Input Capture Register. If enabled (TICIEn=1), the Input Capture Flag generates
an Input Capture interrupt. The ICFn flag is automatically cleared when the interrupt is exe-
cuted. Alternatively the ICFn flag can be cleared by software by writing a logical one to its I/O
bit location.
16.6.1 Input Capture Trigger Source
The default trigger source for the Input Capture unit is the I/O port PC0 in Timer/Counter0 and
the Battery Protection Interrupt in Timer/Counter1. Alternatively can the osi_posedge pin on
the Oscillator Sampling Interface in Timer/Counter0 and Voltage Regulator Interrupt in
Timer/Counter1 be used as trigger sources. The osi_posedge pin in Timer/Counter0 Control
Register A (TCCR0A) and the Voltage Regulator Interrupt bit in the Timer/Counter1 Control
Register A (TCCR1A) is selected as trigger sources by setting the Input Capture Select
(ICS0/1) bit. Be aware that changing trigger source can trigger a capture. The Input Capture
Flag must therefore be cleared after the change.
Both Input Capture inputs are sampled using the same technique. The edge detector is also
identical. However, when the noise canceler is enabled, additional logic is inserted before the
edge detector, which increases the delay by four system clock cycles. An Input Capture on
Timer/Counter0 can also be triggered by software by controlling the port of the PC0 pin.
ICFn (Int.Req.)
WRITE
ICRn (16-bit Register)
OCRnB (8-bit)
Noise
Canceler
ICPn0
Edge
Detector
TEMP (8-bit)
DATA BUS
(8-bit)
OCRnA (8-bit)
TCNTn (16-bit Counter)
TCNTnH (8-bit) TCNTnL (8-bit)
ICNCn ICESn
ICPn1
ICSn
Vista de pagina 78
1 2 ... 74 75 76 77 78 79 80 81 82 83 84 ... 167 168

Comentarios a estos manuales

Sin comentarios

Vanco 280715 (100ft wall plate) manuals

Owner’s manuals and user’s guides for Accessories for video Vanco 280715 (100ft wall plate).
We providing 1 pdf manuals Vanco 280715 (100ft wall plate) for download free by document types: User Manual






More products and manuals for Accessories for video Vanco

Models Document Type
280711 (3x1) User Manual   VANCO 280711 (3x1) User Manual, 12 pages
Rapid Link with Surge User Manual   VANCO Rapid Link with Surge User Manual, 2 pages
WMT2337 User Manual   VANCO WMT2337 User Manual, 2 pages
280535 User Manual   VANCO 280535 User Manual, 1 pages
ART4270 User Manual   VANCO ART4270 User Manual, 4 pages
VPW-280759 User Manual   VANCO VPW-280759 User Manual, 32 pages
VPW-280782 (1x2) User Manual   VANCO VPW-280782 (1x2) User Manual, 12 pages
280515 User Manual   VANCO 280515 User Manual, 1 pages
WM3665T User Manual   VANCO WM3665T User Manual, 4 pages
VPW-280709 (8X8) User Manual   VANCO VPW-280709 (8X8) User Manual, 20 pages
280341 User Manual   VANCO 280341 User Manual, 2 pages
VPW-280608 User Manual   VANCO VPW-280608 User Manual, 8 pages
SMA3000 User Manual     VANCO SMA3000 User Manual, 4 pages
WMT2342 User Manual   VANCO WMT2342 User Manual, 2 pages
WM1024 User Manual   VANCO WM1024 User Manual, 4 pages
280702 (1x2) User Manual   VANCO 280702 (1x2) User Manual, 12 pages
WM1024E User Manual   VANCO WM1024E User Manual, 4 pages
VPW-280754 User Manual   VANCO VPW-280754 User Manual, 20 pages
VPW-280781 User Manual   VANCO VPW-280781 User Manual, 8 pages
280531 User Manual   VANCO 280531 User Manual, 1 pages