7.0 Timers (Continued) the PMW outputs are useful in controlling motors, triacs, the intensity of displ" />
參數(shù)資料
型號: COP8-PGMA-28CSP
廠商: National Semiconductor
文件頁數(shù): 15/62頁
文件大小: 0K
描述: PROGRAMMING ADAPTER
標準包裝: 1
附件類型: 編程適配器
適用于相關(guān)產(chǎn)品: Cop 8
7.0 Timers (Continued)
the PMW outputs are useful in controlling motors, triacs, the
intensity of displays, and in providing inputs for data acqui-
sition and sine wave generators.
In this mode, the timer T1 counts down at a fixed rate of t
C.
Upon every underflow the timer is alternately reloaded with
the contents of supporting registers, R1A and R1B. The very
first underflow of the timer causes the timer to reload from
the register R1A. Subsequent underflows cause the timer to
be reloaded from the registers alternately beginning with the
register R1B.
The T1 Timer control bits, T1C3, T1C2 and T1C1 set up the
timer for PWM mode operation.
Figure 15 shows a block diagram of the timer in PWM mode.
The underflows can be programmed to toggle the T1A output
pin. The underflows can also be programmed to generate
interrupts.
Underflows from the timer are alternately latched into two
pending flags, T1PNDA and T1PNDB. The user must reset
these pending flags under software control. Two control
enable flags, T1ENA and T1ENB, allow the interrupts from
the timer underflow to be enabled or disabled. Setting the
timer enable flag T1ENA will cause an interrupt when a timer
underflow causes the R1A register to be reloaded into the
timer. Setting the timer enable flag T1ENB will cause an
interrupt when a timer underflow causes the R1B register to
be reloaded into the timer. Resetting the timer enable flags
will disable the associated interrupts.
Either or both of the timer underflow interrupts may be
enabled. This gives the user the flexibility of interrupting
once per PWM period on either the rising or falling edge of
the PWM output. Alternatively, the user may choose to inter-
rupt on both edges of the PWM output.
7.2.2 Mode 2. External Event Counter Mode
This mode is quite similar to the processor independent
PWM mode described above. The main difference is that the
timer, T1, is clocked by the input signal from the T1A pin. The
T1 timer control bits, T1C3, T1C2 and T1C1 allow the timer
to be clocked either on a positive or negative edge from the
T1A pin. Underflows from the timer are latched into the
T1PNDA pending flag. Setting the T1ENA control flag will
cause an interrupt when the timer underflows.
In this mode the input pin T1B can be used as an indepen-
dent positive edge sensitive interrupt input if the T1ENB
control flag is set. The occurrence of a positive edge on the
T1B input pin is latched into the T1PNDB flag.
Figure 16 shows a block diagram of the timer in External
Event Counter mode.
Note: The PWM output is not available in this mode since the T1A pin is
being used as the counter input clock.
DS012838-22
FIGURE 15. Timer in PWM Mode
DS012838-23
FIGURE 16. Timer in External Event Counter Mode
COP8SA
Family
www.national.com
21
相關(guān)PDF資料
PDF描述
GBM30DTBH CONN EDGECARD 60POS R/A .156 SLD
MAX6008AESA+T IC VREF SHUNT PREC 2.5V 8-SOIC
GBM30DTBD CONN EDGECARD 60POS R/A .156 SLD
GBM30DTAN CONN EDGECARD 60POS R/A .156 SLD
COP8-PGMA-28SO PROGRAMMING ADAPTER
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
COP8-PGMA-28DF1 制造商:NSC 制造商全稱:National Semiconductor 功能描述:8-Bit CMOS Flash Microcontroller with 8k Memory, Dual Op Amps, Virtual EEROM, Temperature Sensor,10-Bit A/D and Brownout Reset
COP8-PGMA-28SF1 制造商:NSC 制造商全稱:National Semiconductor 功能描述:8-Bit CMOS Flash Microcontroller with 8k Memory, Dual Op Amps, Virtual EEROM, Temperature Sensor,10-Bit A/D and Brownout Reset
COP8-PGMA-28SF2 功能描述:插座和適配器 COP8TA PROGR. ADAPTOR RoHS:否 制造商:Silicon Labs 產(chǎn)品:Adapter 用于:EM35x
COP8-PGMA-28SO 功能描述:PROGRAMMING ADAPTER RoHS:否 類別:編程器,開發(fā)系統(tǒng) >> 配件 系列:- 產(chǎn)品培訓(xùn)模塊:Lead (SnPb) Finish for COTS Obsolescence Mitigation Program RoHS指令信息:IButton RoHS Compliance Plan 標準包裝:1 系列:- 附件類型:USB 至 1-Wire? RJ11 適配器 適用于相關(guān)產(chǎn)品:1-Wire? 設(shè)備 產(chǎn)品目錄頁面:1429 (CN2011-ZH PDF)
COP8-PGMA-44CF2 功能描述:插座和適配器 COP8TA PROGR. ADAPTOR RoHS:否 制造商:Silicon Labs 產(chǎn)品:Adapter 用于:EM35x