参数资料
型号: PIC16C433T-I/SO
厂商: Microchip Technology
文件页数: 4/126页
文件大小: 0K
描述: IC MCU CMOS 8BIT 10MHZ 2K 18SOIC
标准包装: 1,100
系列: PIC® 16C
核心处理器: PIC
芯体尺寸: 8-位
速度: 10MHz
连通性: LIN(本地互连网络)
外围设备: POR,WDT
输入/输出数: 5
程序存储器容量: 3.5KB(2K x 14)
程序存储器类型: OTP
RAM 容量: 128 x 8
电压 - 电源 (Vcc/Vdd): 4.5 V ~ 5.5 V
数据转换器: A/D 4x8b
振荡器型: 内部
工作温度: -40°C ~ 85°C
封装/外壳: 18-SOIC(0.295",7.50mm 宽)
包装: 带卷 (TR)
101
4378C–AVR–09/08
AT90PWM1
The following code examples show how to do an atomic write of the TCNTn Register contents.
Writing any of the OCRnx or ICRn Registers can be done by using the same principle.
Note:
1. The example code assumes that the part specific header file is included.
For I/O Registers located in extended I/O map, “IN”, “OUT”, “SBIS”, “SBIC”, “CBI”, and “SBI”
instructions must be replaced with instructions that allow access to extended I/O. Typically
“LDS” and “STS” combined with “SBRS”, “SBRC”, “SBR”, and “CBR”.
The assembly code example requires that the r17:r16 register pair contains the value to be writ-
ten to TCNTn.
15.2.1
Reusing the Temporary High Byte Register
If writing to more than one 16-bit register where the high byte is the same for all registers written,
then the high byte only needs to be written once. However, note that the same rule of atomic
operation described previously also applies in this case.
15.3
Timer/Counter Clock Sources
The Timer/Counter can be clocked by an internal or an external clock source. The clock source
is selected by the Clock Select logic which is controlled by the Clock Select (CSn2:0) bits
located in the Timer/Counter control Register B (TCCRnB). For details on clock sources and
TABLE 5.
Assembly Code Example(1)
TIM16_WriteTCNT
n:
; Save global interrupt flag
in
r18,SREG
; Disable interrupts
cli
; Set TCNT
n to r17:r16
out
TCNT
nH,r17
out
TCNT
nL,r16
; Restore global interrupt flag
out
SREG,r18
ret
C Code Example
void
TIM16_WriteTCNT
n( unsigned int i )
{
unsigned char
sreg;
unsigned int
i;
/* Save global interrupt flag */
sreg = SREG;
/* Disable interrupts */
_CLI();
/* Set TCNT
n to i */
TCNT
n = i;
/* Restore global interrupt flag */
SREG = sreg;
}
相关PDF资料
PDF描述
PIC16C773T-E/SO IC MCU OTP 4KX14 A/D PWM 28SOIC
PIC16CE623T-30/SO IC MCU OTP 512X14 EE COMP 18SOIC
PIC16F1825-E/ML MCU PIC 14K FLASH 1K RAM 16QFN
PIC16F1828-I/SO IC PIC MCU 8BIT 14KB FLSH 20SOIC
PIC16F688-I/SL IC PIC MCU FLASH 4KX14 14SOIC
相关代理商/技术参数
参数描述
PIC16C505/JW 功能描述:8位微控制器 -MCU 1.5KB 72 RAM 12 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16C505-04/P 功能描述:8位微控制器 -MCU 1.5KB 72 RAM 12 I/O 4MHz PDIP14 RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16C505-04/P 制造商:Microchip Technology Inc 功能描述:IC 8BIT CMOS MCU (TUBE 30) 16C505 制造商:Microchip Technology Inc 功能描述:IC 8BIT CMOS MCU 16C505 DIP14
PIC16C505-04/SL 功能描述:8位微控制器 -MCU 1.5KB 72 RAM 12 I/O 4MHz SOIC14 RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16C505-04/SL 制造商:Microchip Technology Inc 功能描述:8BIT CMOS MCU SMD 16C505 SOIC14