CR16MCS5VJI8 Datasheet

  • CR16MCS5VJI8

  • Family of 16-bit CAN-enabled CompactRISC Microcontrollers

  • 713.21KB

  • 156页

  • NSC

扫码查看芯片数据手册

上传产品规格书

PDF预览

15.5
TIMER REGISTERS
The following CPU-accessible registers are used to control
the Multi-Function Timers:
鈥?/div>
鈥?/div>
鈥?/div>
鈥?/div>
鈥?/div>
鈥?/div>
鈥?/div>
鈥?/div>
鈥?/div>
Clock Prescaler Register (TnPRSC)
Clock Unit Control Register (TnCKC)
Timer/Counter I Register (TnCNT1)
Timer/Counter II Register (TnCNT2)
Reload/Capture A Register (TnCRA)
Reload/Capture B Register (TnCRB)
Timer Mode Control Register (TnCTRL)
Timer Interrupt Control Register (TnICTL)
Timer Interrupt Clear Register (TnICLR)
Clock Prescaler Register (TnPRSC)
* Operation of the slow clock is determined by the CRC-
TRL.SCLK control bit, as described in Section12.6.1.
15.5.3
Timer/Counter I Register (TnCNT1)
The Timer/Counter I (TnCNT1) register is a word-wide, read/
write register that holds the current count value for Timer/
Counter I. The register contents are not affected by a reset
and are unknown upon power-up.
15.5.4
Timer/Counter II Register (TnCNT2)
15.5.1
The Timer/Counter II (TnCNT2) register is a word-wide, read/
write register that holds the current count value for Timer/
Counter II. The register contents are not affected by a reset
and are unknown upon power-up.
15.5.5
Reload/Capture A Register (TnCRA)
The Clock Prescaler (TnPRSC) register is a byte-wide, read/
write register that holds the current value of the 5-bit clock
prescaler (CLKPS). This register is cleared upon reset. The
register format is shown below.
7
6
5
Reserved
4
3
2
CLKPS
1
0
The Reload/Capture A (TnCRA) register is a word-wide,
read/write register that holds the reload or capture value for
Timer/Counter I. The register contents are not affected by a
reset and are unknown upon power-up.
15.5.6
Reload/Capture B Register (TnCRB)
CLKPS
Clock Prescaler. When the timer is configured
to use the prescaled clock, the system clock is
divided by CLKPS+1 to produce the timer
clock. Thus, the system clock divide-by factor
can range from 1 to 32.
Clock Unit Control Register (TnCKC)
The Reload/Capture B (TnCRB) register is a word-wide,
read/write register that holds the reload or capture value for
Timer/Counter II. The register contents are not affected by a
reset and are unknown upon power-up.
15.5.7
Timer Mode Control Register (TnCTRL)
15.5.2
The Clock Unit Control (TnCKC) register is a byte-wide, read/
write register that selects the clock source for each timer/
counter. Selecting the clock source also starts the counter.
This register is cleared upon reset, which disables the timer/
counters. The register format is shown below.
7
6
Reserved
C1CSEL
5
4
C2CSEL
3
2
1
C1CSEL
0
The Timer Mode Control (TnCTRL) register is a byte-wide,
read/write register that sets the operating mode of the timer/
counter and the TnA and TnB pins. This register is cleared
upon reset. The register format is shown below.
7
6
5
TnBEN
4
TnAEN
3
2
1
MDSEL
0
Reserved TnAOUT
TnBEDG TnAEDG
MDSEL
Mode Select. This 2-bit field sets the operating
mode of the timer/counter as follows:
00 = Mode 1: PWM plus system timer
01 = Mode 2: Dual Input Capture plus system
timer
10 = Mode 3: Dual Timer/Counter
11 = Mode 4: Single Input Capture and Single
Timer
TnA Edge Polarity. When cleared (0), input pin
TnA is sensitive to falling edges (high to low
transitions). When set (1), input pin TnA is sen-
sitive to rising edges (low to high transitions).
TnB Edge Polarity. When cleared (0), input pin
TnB is sensitive to falling edges (high to low
transitions). When set (1), input pin TnB is sen-
sitive to rising edges (low to high transitions). In
pulse accumulate mode, when this bit is set (1),
the counter is enabled only when TnB is high;
when this bit is cleared (0), the counter is en-
abled only when TnB is low.
TnA Enable. When set (1), the TnA pin is en-
abled to operate as a preset input or as a PWM
output, depending on the timer operating
mode. In Mode 2 (Dual Input Capture), a tran-
sition on the TnA pin presets the TnCNT1
counter to FFFF hex. In the other modes, TnA
functions as a PWM output. When this bit is
www.national.com
Counter I Clock Select. This 3-bit field defines
the clock mode for Timer/Counter I as follows:
000 = no clock (timer/counter I stopped)
001 = prescaled system clock
010 = external event on TnB (modes 1 and 3
only)
011 = pulse accumulate mode based on TnB
(modes 1 and 3 only)
100 = slow clock *
other values = undefined
Counter II Clock Select. This 3-bit field defines
the clock mode for Timer/Counter II as follows:
000 = no clock (Timer/Counter II stopped
modes 1, 2, and 3 only)
001 = prescaled system clock
010 = external event on TnB (modes 1 and 3
only)
011 = pulse accumulate mode based on TnB
(modes 1 and 3 only)
100 = slow clock *
other values = undefined
TnAEDG
TnBEDG
C2CSEL
TnAEN
56

CR16MCS5VJI8相关型号PDF文件下载

  • 型号
    版本
    描述
    厂商
    下载
  • 英文版
    TAD THICK FILM CHIP RESISTORS
    ETC
  • 英文版
    TAD THICK FILM CHIP RESISTORS
    ETC [ETC]
  • 英文版
    Current Regulator Diodes
    VISHAY
  • 英文版
    Current Regulator Diodes
    VISAY [Vis...
  • 英文版
    FIXED CARBON FILM RESISTORS
    ABCO
  • 英文版
    Manganese Dioxide Lithium Coin Batteries
    ETC
  • 英文版
    Manganese Dioxide Lithium Coin Batteries
    ETC [ETC]
  • 英文版
    LITHIUM MANGANESE DIOXIDE BATTERY
    SONY
  • 英文版
    LITHIUM MANGANESE DIOXIDE BATTERY
    SONY [Sony...
  • 英文版
    Energizer [3.0 Volts 1.8 grams (0.06 oz.) 0.5 cubic centime...
    ENERGIZER
  • 英文版
    Bi-directional Glass passivated junction
    LITTELFUSE
  • 英文版
    Bi-directional Glass passivated junction
    LITTELFUSE ...
  • 英文版
    Bi-directional Glass passivated junction
    LITTELFUSE
  • 英文版
    Bi-directional Glass passivated junction
    LITTELFUSE ...
  • 英文版
    Bi-directional Glass passivated junction
    LITTELFUSE
  • 英文版
    Bi-directional Glass passivated junction
    LITTELFUSE ...
  • 英文版
    Rectifiers, General Purpose
    CENTRAL
  • 英文版
    Rectifiers, General Purpose
    CENTRAL
  • 英文版
    Rectifiers, General Purpose
    CENTRAL
  • 英文版
    Family of 16-bit CAN-enabled CompactRISC Microcontrollers
    NSC

扫码下载APP,
一键连接广大的电子世界。

在线人工客服

买家服务:
卖家服务:

0571-85317607

客服在线时间周一至周五
9:00-17:30

关注官方微信号,
第一时间获取资讯。

建议反馈

联系人:

联系方式:

按住滑块,拖拽到最右边
>>
感谢您向阿库提出的宝贵意见,您的参与是维库提升服务的动力!意见一经采纳,将有感恩红包奉上哦!