04.03.2013 Views

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Under development<br />

Preliminary document<br />

Specifications in this document are tentative and subject to change.<br />

<strong>RL78</strong>/<strong>D1A</strong> CHAPTER 14 CAN CONTROLLER<br />

14.6 Bit Set/Clear Function<br />

The CAN control registers include registers whose bits can be set or cleared via the CPU and via the CAN interface.<br />

An operation error occurs if the following registers are written directly. Do not write any values directly via bit manipulation,<br />

read/modify/write, or direct writing of target values.<br />

CAN global control register (C0GMCTRL, C1GMCTRL)<br />

CAN global automatic block transmission control register (C0GMABT, C1GMABT)<br />

CAN module control register (C0CTRL, C1CTRL)<br />

CAN module interrupt enable register (C0IE, C1IE)<br />

CAN module interrupt status register (C0INTS, C1INTS)<br />

CAN module receive history list register (C0RGPT, C1RGPT)<br />

CAN module transmit history list register (C0TGPT, C1TGPT)<br />

CAN module time stamp register (C0TS, C1TS)<br />

CAN message control register (C0MCTRLm, C1MCTRLm)<br />

Remark m = 0 to 15<br />

All the 16 bits in the above registers can be read via the usual method. Use the procedure described in figure 14-23<br />

below to set or clear the lower 8 bits in these registers.<br />

Setting or clearing of lower 8 bits in the above registers is performed in combination with the higher 8 bits (refer to the<br />

16-bit data after a write operation in Figure 14-24). Figure 14-23 shows how the values of set bits or clear bits relate to<br />

set/clear/no change operations in the corresponding register.<br />

Register’s current values<br />

Write values<br />

Register’s value after<br />

write operations<br />

Figure 14-23. Example of Bit Setting/Clearing Operations<br />

0 0 0 0 0 0 0 0 1 1 0 1 0 0 0 1<br />

0 0 0 0 1 0 1 1 1 1 0 1 1 0 0 0<br />

set 0 0 0 0 1 0 1 1<br />

clear 1 1 0 1 1 0 0 0<br />

0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1<br />

R01UH0317EJ0004 Rev. 0.04 841<br />

Feb. 22, 2013<br />

Bit status<br />

Clear<br />

Clear<br />

No change<br />

Clear<br />

No change<br />

No change<br />

Set<br />

Set

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!