English
Language : 

UPD70F3786GJ-GAE-AX Datasheet, PDF (1112/1817 Pages) Renesas Technology Corp – RENESAS MCU V850ES/Jx3-E Microcontrollers
V850ES/JH3-E, V850ES/JJ3-E
CHAPTER 21 CAN CONTROLLER
21.7 Bit Set/Clear Function
The CAN control registers include registers whose bits can be set or cleared via the CPU and via the CAN interface.
An operation error occurs if the following registers are written directly. Do not write any values directly via bit manipulation,
read/modify/write, or direct writing of target values.
• CAN0 global control register (C0GMCTRL)
• CAN0 global automatic block transmission control register (C0GMABT)
• CAN0 module control register (C0CTRL)
• CAN0 module interrupt enable register (C0IE)
• CAN0 module interrupt status register (C0INTS)
• CAN0 module receive history list register (C0RGPT)
• CAN0 module transmit history list register (C0TGPT)
• CAN0 module time stamp register (C0TS)
• CAN0 message control register (C0MCTRLm)
Remark m = 00 to 31
All the 16 bits in the above registers can be read via the usual method. Use the procedure described in Figure 21-25
below to set or clear the lower 8 bits in these registers.
Setting or clearing of lower 8 bits in the above registers is performed in combination with the higher 8 bits (refer to the
bit status after set/clear operation is specified in Figure 21-26). Figure 21-25 shows how the values of set bits or clear bits
relate to set/clear/no change operations in the corresponding register.
Figure 21-25. Example of Bit Setting/Clearing Operations
Register’s current value
0000000011010001
Write value
0000101111011000
set 0 0 0 0 1 0 1 1
clear 1 1 0 1 1 0 0 0
Register’s value after
write operation
0000000000000011
R01UH0290EJ0300 Rev.3.00
Sep 19, 2011
Page 1112 of 1817