Cautions On Bit Set/Clear Function - NEC V850E/IA1 mPD703116 User Manual

32-bit single-chip microcontrollers
Hide thumbs Also See for V850E/IA1 mPD703116:
Table of Contents

Advertisement

11.9 Cautions on Bit Set/Clear Function

The FCAN 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 to directly, so do not directly write (via bit
manipulation, read/modify/write, or direct writing of target values) values to them.
• CAN global status register (CGST)
• CAN global interrupt enable register (CGIE)
• CAN1 control register (C1CTRL)
• CAN1 definition register (C1DEF)
• CAN1 interrupt enable register (C1IE)
All 16 bits in the above registers can be read via the usual method. Use the procedure described in Figure 11-23
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 (see
Figure 11-24). Figure 11-23 shows how the values of set bits or clear bits relate to set/clear/no change operations in
the corresponding register.
Register's current values
Write values
Register's value after
write operations
CHAPTER 11 FCAN CONTROLLER
Figure 11-23. Example of Bit Setting/Clearing Operations
15 14 13 12 11 10
0
0
0
0
0
15 14 13 12 11 10
0
0
0
0
1
15 14 13 12 11 10
0
0
0
0
0
User's Manual U14492EJ3V0UD
9
8
7
6
5
4
0
0
0
1
1
0
1
9
8
7
6
5
4
0
1
1
1
1
0
1
set
0
0
0
0
clear 1
1
0
1
9
8
7
6
5
4
0
0
0
0
0
0
0
3
2
1
0
0
0
0
1
3
2
1
0
1
0
0
0
1
0
1
1
1
0
0
0
3
2
1
0
0
0
1
1
547

Advertisement

Table of Contents
loading

Table of Contents