Bits - Renesas R8C/Tiny Series Software Manual

16-bit single-chip microcomputer
Hide thumbs Also See for R8C/Tiny Series:
Table of Contents

Advertisement

Chapter 1 Overview

1.7.3 Bits

Register bits
Figure 1.7.3 shows register bit specification.
Register bits can be specified by register direct (bit, Rn or bit, An). Use bit, Rn to specify a bit in data
register (Rn); use bit, An to specify a bit in address register (An).
Bits in each register are assigned bit numbers 0-15, from LSB to MSB. For bit in bit, Rn and bit, An, you
can specify a bit number in the range of 0 to 15.
b15
bit,Rn
(bit: 0 to 15, n: 0 to 3)
Figure 1.7.3 Register bit specification
Memory bits
Figure 1.7.4 shows addressing modes used for memory bit specification. Table 1.7.1 lists the address
range in which you can specify bits in each addressing mode. Be sure to observe the address range in
Table 1.7.1 when specifying memory bits.
Addressing modes
Figure 1.7.4 Addressing modes used for memory bit specification
Table 1.7.1 Bit-Specifying Address Range
Addressing
Lower limit (address)
bit,base:16
00000
bit,base:8[SB]
[SB]
bit,base:11[SB]
[SB]
bit,base:16[SB]
[SB]
bit,base:8[FB]
[FB]–00010
[An]
00000
base:8[An]
base:8
base:16[An]
base:16
Rn
b0
Absolute addressing
SB-based relative
addressing
FB-based relative
addressing
Address register-based indirect
addressing
Address register-based relative
addressing
Specification range
Upper limit (address)
01FFF
16
16
[SB]+0001F
[SB]+000FF
[SB]+01FFF
[FB]+0000F
16
01FFF
16
16
base:8+01FFF
base:16+01FFF
b15
bit,An
(bit: 0 to 15, n: 0 to 1)
The access range is 00000
16
The access range is 00000
16
The access range is 00000
16
The access range is 00000
16
The access range is 00000
16
The access range is 00000
16
12
1.7 Data Types
An
b0
bit,base:8
bit,base:16
bit,base:16
bit,base:8[SB]
bit,base:11[SB]
bit,base:16[SB]
bit,base:8[FB]
[An]
base:8[An]
base:16[An]
Remarks
to 0FFFF
16
to 0FFFF
16
to 0FFFF
16
to 0FFFF
16
to 020FE
16
to 0FFFF
16
.
16
.
16
.
16
.
16
.
16
.
16

Advertisement

Table of Contents
loading

Table of Contents