R5F21334CNFP#U0 Renesas Electronics America, R5F21334CNFP#U0 Datasheet - Page 188

MCU 1KB FLASH 16K ROM 32-LQFP

R5F21334CNFP#U0

Manufacturer Part Number
R5F21334CNFP#U0
Description
MCU 1KB FLASH 16K ROM 32-LQFP
Manufacturer
Renesas Electronics America
Series
R8C/3x/33Cr
Datasheet

Specifications of R5F21334CNFP#U0

Core Processor
R8C
Core Size
16/32-Bit
Speed
20MHz
Connectivity
I²C, LIN, SIO, SSU, UART/USART
Peripherals
POR, PWM, Voltage Detect, WDT
Number Of I /o
27
Program Memory Size
16KB (16K x 8)
Program Memory Type
FLASH
Ram Size
1.5K x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 12x10b; D/A 2x8b
Oscillator Type
Internal
Operating Temperature
-20°C ~ 85°C
Package / Case
32-LQFP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
R5F21334CNFP#U0
Manufacturer:
Renesas Electronics America
Quantity:
135
Company:
Part Number:
R5F21334CNFP#U0R5F21334CNFP#V2
Manufacturer:
RENESAS
Quantity:
5 600
Company:
Part Number:
R5F21334CNFP#U0R5F21334CNFP#V2
Manufacturer:
Renesas Electronics America
Quantity:
10 000
Company:
Part Number:
R5F21334CNFP#U0R5F21334CNFP#X6
Manufacturer:
Renesas Electronics America
Quantity:
10 000
R8C/33C Group
REJ09B0570-0100 Rev.1.00 Dec. 14, 2009
Page 158 of 589
11.8.5
(a) The contents of the interrupt control register can be rewritten only while no interrupt requests
(b) When rewriting the contents of the interrupt control register after disabling the interrupt, be careful to
(c) When using the I flag to disable an interrupt, set the I flag as shown in the sample programs below. Refer to
Examples 1 to 3 shows how to prevent the I flag from being set to 1 (interrupts enabled) before the contents of
the interrupt control register are rewritten for the effects of the internal bus and the instruction queue buffer.
Example 1:
Example 2:
Example 3:
INT_SWITCH1:
INT_SWITCH2:
INT_SWITCH3:
corresponding to that register are generated. If an interrupt request may be generated, disable the interrupt
before rewriting the contents of the interrupt control register.
choose appropriate instructions.
Changing any bit other than the IR bit
If an interrupt request corresponding to the register is generated while executing the instruction, the IR bit
may not be set to 1 (interrupt requested), and the interrupt may be ignored. If this causes a problem, use one
of the following instructions to rewrite the contents of the register: AND, OR, BCLR, and BSET.
Changing the IR bit
Depending on the instruction used, the IR bit may not be set to 0 (no interrupt requested).
Use the MOV instruction to set the IR bit to 0.
(b) regarding rewriting the contents of interrupt control registers using the sample programs.
Rewriting Interrupt Control Register
FCLR
AND.B
NOP
NOP
FSET
FCLR
AND.B
MOV.W MEM,R0
FSET
PUSHC FLG
FCLR
AND.B
POPC
Use the NOP instructions to pause program until the interrupt control register is rewritten
Use a dummy read to delay the FSET instruction
Use the POPC instruction to change the I flag
I
I
I
#00H,0056H
I
#00H,0056H
I
#00H,0056H
FLG
; Disable interrupts
; Set the TRAIC register to 00h
;
; Enable interrupts
; Disable interrupts
; Set the TRAIC register to 00h
; Dummy read
; Enable interrupts
; Disable interrupts
; Set the TRAIC register to 00h
; Enable interrupts
11. Interrupts

Related parts for R5F21334CNFP#U0