欢迎访问ic37.com |
会员登录 免费注册
发布采购

C8051F339 参数 Datasheet PDF下载

C8051F339图片预览
型号: C8051F339
PDF下载: 下载PDF文件 查看货源
内容描述: 混合信号ISP功能的Flash MCU系列 [Mixed Signal ISP Flash MCU Family]
分类和应用:
文件页数/大小: 234 页 / 3348 K
品牌: SILICON [ SILICON ]
 浏览型号C8051F339的Datasheet PDF文件第196页浏览型号C8051F339的Datasheet PDF文件第197页浏览型号C8051F339的Datasheet PDF文件第198页浏览型号C8051F339的Datasheet PDF文件第199页浏览型号C8051F339的Datasheet PDF文件第201页浏览型号C8051F339的Datasheet PDF文件第202页浏览型号C8051F339的Datasheet PDF文件第203页浏览型号C8051F339的Datasheet PDF文件第204页  
C8051F336/7/8/9  
SFR Definition 24.8. TMR2CN: Timer 2 Control  
Bit  
7
6
5
4
3
2
1
0
Name  
Type  
Reset  
TF2H  
R/W  
TF2L  
R/W  
TF2LEN  
R/W  
TF2CEN T2SPLIT  
TR2  
R/W  
T2XCLK  
R/W  
R/W  
0
R/W  
0
R
0
0
0
0
0
0
SFR Address = 0xC8; Bit-Addressable  
Bit  
Name  
Function  
7
TF2H  
Timer 2 High Byte Overflow Flag.  
Set by hardware when the Timer 2 high byte overflows from 0xFF to 0x00. In 16 bit  
mode, this will occur when Timer 2 overflows from 0xFFFF to 0x0000. When the  
Timer 2 interrupt is enabled, setting this bit causes the CPU to vector to the Timer 2  
interrupt service routine. This bit is not automatically cleared by hardware.  
6
TF2L  
Timer 2 Low Byte Overflow Flag.  
Set by hardware when the Timer 2 low byte overflows from 0xFF to 0x00. TF2L will  
be set when the low byte overflows regardless of the Timer 2 mode. This bit is not  
automatically cleared by hardware.  
5
4
TF2LEN  
TF2CEN  
Timer 2 Low Byte Interrupt Enable.  
When set to ‘1’, this bit enables Timer 2 Low Byte interrupts. If Timer 2 interrupts are  
also enabled, an interrupt will be generated when the low byte of Timer 2 overflows.  
Timer 2 Low-Frequency Oscillator Capture Enable.  
When set to ‘1’, this bit enables Timer 2 Low-Frequency Oscillator Capture Mode. If  
TF2CEN is set and Timer 2 interrupts are enabled, an interrupt will be generated on  
a falling edge of the low-frequency oscillator output, and the current 16-bit timer  
value in TMR2H:TMR2L will be copied to TMR2RLH:TMR2RLL.  
3
2
T2SPLIT Timer 2 Split Mode Enable.  
When this bit is set, Timer 2 operates as two 8-bit timers with auto-reload.  
0: Timer 2 operates in 16-bit auto-reload mode.  
1: Timer 2 operates as two 8-bit auto-reload timers.  
TR2  
Timer 2 Run Control.  
Timer 2 is enabled by setting this bit to ‘1’. In 8-bit mode, this bit enables/disables  
TMR2H only; TMR2L is always enabled in split mode.  
1
0
UNUSED Unused. Read = 0b; Write = Don’t Care  
T2XCLK  
Timer 2 External Clock Select.  
This bit selects the external clock source for Timer 2. If Timer 2 is in 8-bit mode, this  
bit selects the external oscillator clock source for both timer bytes. However, the  
Timer 2 Clock Select bits (T2MH and T2ML in register CKCON) may still be used to  
select between the external clock and the system clock for either timer.  
0: Timer 2 clock is the system clock divided by 12.  
1: Timer 2 clock is the external clock divided by 8 (synchronized with SYSCLK).  
200  
Rev. 0.2  
 复制成功!