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 directly (bit, Rn or bit, An). Use bit, Rn to specify a bit in a
data register (Rn); use bit, An to specify a bit in an address register (An).
The bits in each register are assigned bit numbers from 0 to 15, from LSB to MSB. Therefore, bit, Rn
and bit, An can be used to specify a bit number from 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 the addressing modes used for memory bit specification. Table 1.7.1 lists the ad-
dress range in which bits can be specified 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 Specification Address Range
Addressing
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]
Rev.2.00 Oct 17, 2005
REJ09B0001-0200
Rn
b0
Absolute addressing
SB-based relative
addressing
FB-based relative
addressing
Address register-based indirect
addressing
Address register-based relative
addressing
Specification range
Lower Limit (Address)
Upper Limit (Address)
00000
01FFF
16
[SB]
[SB]+0001F
[SB]
[SB]+000FF
[SB]
[SB]+01FFF
[FB]–00010
[FB]+0000F
16
00000
01FFF
16
base:8
base:8+01FFF
base:16
base:16+01FFF
page 12 of 263
b15
bit,An
(bit: 0 to 15, n: 0 to 1)
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
16
The access range is 00000
16
The access range is 00000
16
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