參數(shù)資料
型號: R5F3650MDFB
元件分類: 微控制器/微處理器
英文描述: MICROCONTROLLER, PQFP100
封裝: 14 X 14 MM, 0.50 MM PITCH, LQFP-100
文件頁數(shù): 11/81頁
文件大小: 879K
代理商: R5F3650MDFB
109
4317K–AVR–03/2013
AT90PWM2/3/2B/3B
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;
}
相關(guān)PDF資料
PDF描述
R5F3650NDFB MICROCONTROLLER, PQFP100
R5F3650RNFB MICROCONTROLLER, PQFP100
R5F3651ENFC MICROCONTROLLER, PQFP128
R5F3651KDFC MICROCONTROLLER, PQFP128
R5F21217KFP 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP48
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
R5F3650MDFB#30 制造商:Renesas Electronics Corporation 功能描述:IC MCU 16BIT 512KB FLASH 100QFP 制造商:Renesas Electronics Corporation 功能描述:M16C Series 16 Bit 512 kB Flash 31 kB Ram SMT Microcontroller - LQFP-100
R5F3650MDFB#U0 功能描述:MCU 4KB FLASH 512/16K 100-LQFP RoHS:是 類別:集成電路 (IC) >> 嵌入式 - 微控制器, 系列:M16C™ M16C/60/65 標(biāo)準(zhǔn)包裝:96 系列:PIC® 16F 核心處理器:PIC 芯體尺寸:8-位 速度:20MHz 連通性:I²C,SPI 外圍設(shè)備:欠壓檢測/復(fù)位,POR,PWM,WDT 輸入/輸出數(shù):11 程序存儲(chǔ)器容量:3.5KB(2K x 14) 程序存儲(chǔ)器類型:閃存 EEPROM 大小:- RAM 容量:128 x 8 電壓 - 電源 (Vcc/Vdd):2.3 V ~ 5.5 V 數(shù)據(jù)轉(zhuǎn)換器:A/D 8x10b 振蕩器型:內(nèi)部 工作溫度:-40°C ~ 125°C 封裝/外殼:14-TSSOP(0.173",4.40mm 寬) 包裝:管件
R5F3650MDFB#V2 制造商:Renesas Electronics Corporation 功能描述:M16C65 FL 512/31 100QFP 2.7-5. 制造商:Renesas Electronics Corporation 功能描述:M16C65 FL 512/31 100QFP 2.7-5.5V -40/85C - Trays 制造商:Renesas Electronics Corporation 功能描述:MCU 32BIT 512KB FLASH 100QFP
R5F3650MNFA 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:This MCU consumes low power, and supports operating modes
R5F3650MNFB 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:This MCU consumes low power, and supports operating modes