Renesas R8C/Tiny Series Software Manual page 30

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

Advertisement

Chapter 1 Overview
(1) Bit specification by bit, base
Figure 1.7.5 shows the relationship between memory map and bit map.
Memory bits can be handled as an array of consecutive bits. Bits can be specified by a given combina-
tion of bit and base. Using bit 0 of the address that is set to base as the reference (= 0), set the desired
bit position to bit. Figure 1.7.6 shows examples of how to specify bit 2 of address 0000A
Address
b7
0
n-1
n
n+1
Memory map
Figure 1.7.5 Relationship between memory map and bit map
BSET
2,AH
;
BSET
10,9H
;
BSET
18,8H
;
BSET
82,0H
;
Figure 1.7.6 Examples of how to specify bit 2 of address 0000A
b0
n+1
nÅ{1
b7
Address 0000A
16
b7
b2
b0
Address 00009
b15
b10 b8b7
b23
b18 b16b15
b87
b82 b80b79
n
n
b0b7
b0b7
Bit map
16
b0
Address 00008
16
b8b7
b0
Address 00000
b72
b7
16
13
1.7 Data Types
n–1
nÅ|1
b0
b7
These specifica-
tion examples all
specify bit 2 of
address 0000A
16
b0
.
16
0
b0
.
16

Advertisement

Table of Contents
loading

Table of Contents