參數(shù)資料
型號(hào): MCP25050-I/P
元件分類: 微控制器/微處理器
英文描述: SPECIALTY MICROPROCESSOR CIRCUIT, PDIP14
封裝: 0.300 INCH, PLASTIC, DIP-14
文件頁數(shù): 32/64頁
文件大?。?/td> 1232K
代理商: MCP25050-I/P
MCP2502X/5X
DS21664C-page 38
2003 Microchip Technology Inc.
6.3.2
PWM DUTY CYCLE
The PWM duty cycle is specified by writing to the
PWMnDCH and TnCON registers. Up to 10-bit
resolution is available. The PWMnDCH contains the
eight MSb’s, while the TnCON register contains the two
LSb’s.
This
10-bit
value
is
represented
by
PWM1DCH:T1CON<1:0> for PWM Module 1 and
PWM2DCH:T2CON<1:0> for PWM Module 2.
The following equation is used to calculate the PMW
duty cycle:
PWMnDCH can be written to at any time, but the duty
cycle value is not latched into PWMnDBH until after a
match between PRn and TMRn occurs (i.e., the period
is complete).
The PWMnDBH register and 2-bit internal latch are
used to double-buffer the PWM duty cycle. This
double-buffering is essential for glitchless PWM
operation.
When the PWMnDBH and 2-bit latch match TMRn
concatenated with an internal 2-bit Q clock or 2 bits of
the TMRn prescaler, the PWM output pin is cleared.
Maximum PWM resolution (bits) for a given PWM
frequency is equal to:
In order to achieve higher resolution, the PWM
frequency must be decreased. In order to achieve
higher PWM frequency, the resolution must be
decreased. Table 6-1 lists example PWM frequencies
and resolutions for FOSC = 20 MHz. TMRn prescaler
and PRn values are also shown.
TABLE 6-1:
PWM FREQUENCIES AND RESOLUTIONS AT 20 MHZ
REGISTER 6-1:
PWM1 DUTY CYCLE REGISTER MSB (PWM1DCH)
REGISTER 6-2:
PWM2 DUTY CYCLE REGISTER MSB (PWM2DCH)
PWMDC
PWMnDC
()
=*TOSC*TMRn (prescale)
Note:
If the PWM duty cycle value is longer than
the PWM period (PWM duty cycle
= 100%), the PWM output pin will not be
cleared.
log FOSC
() Fpwm
()
() log 2
()bits
()
PWM Frequency
1.22 kHz
4.88 kHz
19.53 kHz
78.12 kHz 156.30 kHz 208.30 kHz
Timer Prescaler (1, 4, 16)
16
4
1
PRn Value
0xFF
0x3F
0x1F
0x17
Maximum Resolution (bits)
10
8
7
5.5
R/W-x
DC1B9
DC1B8
DC1B7
DC1B6
DC1B5
DC1B4
DC1B3
DC1B2
bit 7
bit 0
bit 7-0
DC1B9:DC1B2: Most Significant PWM0 Duty Cycle bits
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
- n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
x = Bit is unknown
R/W-x
DC2B9
DC2B8
DC2B7
DC2B6
DC2B5
DC2B4
DC2B3
DC2B2
bit 7
bit 0
bit 7-0
DC2B9:DC2B2: Most Significant PWM2 Duty Cycle bits
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
- n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
x = Bit is unknown
相關(guān)PDF資料
PDF描述
MCP25050T-I/SL SPECIALTY MICROPROCESSOR CIRCUIT, PDSO14
MSP430F412IPMR 16-BIT, FLASH, 8 MHz, RISC MICROCONTROLLER, PQFP64
MB90F548GLSPF 16-BIT, FLASH, 16 MHz, MICROCONTROLLER, PQFP100
M3727GM6-XXXSP 8-BIT, MROM, 8.1 MHz, MICROCONTROLLER, PDIP42
M32180F8VFP 32-BIT, FLASH, 64 MHz, RISC MICROCONTROLLER, PQFP240
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MCP25050T 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:CAN I/O Expander Family
MCP25050TE/P 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:CAN I/O Expander Family
MCP25050TE/SL 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:CAN I/O Expander Family
MCP25050T-E/SL 功能描述:網(wǎng)絡(luò)控制器與處理器 IC Mixed signal Expandr RoHS:否 制造商:Micrel 產(chǎn)品:Controller Area Network (CAN) 收發(fā)器數(shù)量: 數(shù)據(jù)速率: 電源電流(最大值):595 mA 最大工作溫度:+ 85 C 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:PBGA-400 封裝:Tray
MCP25050T-ESL 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:CAN I/O Expander Family