771
Chapter 18
AFCAN Controller
User’s Manual U16580EE3V1UD00
18.6 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.
•
CANn global control register (CnGMCTRL)
•
CANn global automatic block transmission control register (CnGMABT)
•
CANn module control register (CnCTRL)
•
CANn module interrupt enable register (CnIE)
•
CANn module interrupt status register (CnINTS)
•
CANn module receive history list register (CnRGPT)
•
CANn module transmit history list register (CnTGPT)
•
CANn module time stamp register (CnTS)
•
CANn message control register (CnMCTRLm)
All the 16 bits in the above registers can be read via the usual method. Use the procedure described in
Figure 18-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 (refer to the bit status after set/clear operation is specified in <~Reference>Figure 18-26). Figure
18-23 shows how the values of set bits or clear bits relate to set/clear/no change operations in the cor-
responding register.
Figure 18-23:
Example of bit setting/clearing operations
0
0
0
0
0
0
0
0
1
1
0
1
0
0
0
1
0
0
0
0
1
0
1
1
1
1
0
1
1
0
0
0
set
0
0
0
0
1
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
clear
1
1
0
1
1
0
0
0
Set
No change
Clear
Bit status
Register’s current value
Write value
Register’s value after
write operation
Clear
Clear
No change
No change
Set
Содержание MuPD70F3187
Страница 6: ...6 Preface User s Manual U16580EE3V1UD00 ...
Страница 16: ...16 User s Manual U16580EE3V1UD00 ...
Страница 28: ...28 User s Manual U16580EE3V1UD00 ...
Страница 32: ...32 User s Manual U16580EE3V1UD00 ...
Страница 84: ...84 Chapter 2 Pin Functions User s Manual U16580EE3V1UD00 MEMO ...
Страница 144: ...144 Chapter 3 CPU Functions User s Manual U16580EE3V1UD00 MEMO ...
Страница 192: ...192 Chapter 5 Memory Access Control Function μPD70F3187 only User s Manual U16580EE3V1UD00 MEMO ...
Страница 312: ...312 Chapter 9 16 Bit Timer Event Counter P User s Manual U16580EE3V1UD00 MEMO ...
Страница 534: ...534 Chapter 11 16 bit Timer Event Counter T User s Manual U16580EE3V1UD00 ...
Страница 969: ...969 Chapter 20 Port Functions User s Manual U16580EE3V1UD00 MEMO ...
Страница 970: ...970 Chapter 20 Port Functions User s Manual U16580EE3V1UD00 ...
Страница 976: ...976 Chapter 22 Internal RAM Parity Check Function User s Manual U16580EE3V1UD00 MEMO ...
Страница 984: ...984 Chapter 23 On Chip Debug Function OCD User s Manual U16580EE3V1UD00 MEMO ...
Страница 1006: ...1006 Chapter 24 Flash Memory User s Manual U16580EE3V1UD00 MEMO ...
Страница 1036: ...1036 Chapter 27 Recommended Soldering Conditions User s Manual U16580EE3V1UD00 MEMO ...
Страница 1046: ...1046 Appendix A Index User s Manual U16580EE3V1UD00 MEMO ...
Страница 1052: ...1052 User s Manual U16580EE3V1UD00 ...
Страница 1053: ......