ST6225C STMicroelectronics, ST6225C Datasheet - Page 14

no-image

ST6225C

Manufacturer Part Number
ST6225C
Description
8 Bit ST6 Microcontroller with 16x8-bitADC 1x8-bit TIMER
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST6225C

Clock Sources
crystal/ceramic resonator or RC network, external clock, backup oscillator (LFAO)
2 Power Saving Modes
Wait and Stop

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ST6225CB6/HIU
Manufacturer:
ST
0
Part Number:
ST6225CM1/MOP/TR
Manufacturer:
ST
0
Part Number:
ST6225CM6
Manufacturer:
ST
0
Part Number:
ST6225CM6/H1M
Manufacturer:
ST
0
Part Number:
ST6225CM6/HIL/F
Manufacturer:
ST
0
ST6215C ST6225C
MEMORY MAP (Cont’d)
3.1.6.2 Data ROM Window memory addressing
In cases where some data (look-up tables for ex-
ample) are stored in program memory, reading
these data requires the use of the Data ROM win-
dow mechanism. To do this:
1. The DRWR register has to be loaded with the
64-byte block number where the data are located
(in program memory). This number also gives the
start address of the block.
2. Then, the offset address of the byte in the Data
ROM Window (corresponding to the offset in the
64-byte block in program memory) has to be load-
ed in a register (A, X,...).
When the above two steps are completed, the
data can be read.
To understand how to determine the DRWR and
the content of the register, please refer to the ex-
ample shown in
Figure 6. Data read-only memory Window Memory Addressing
14/105
1
OFFSET
DATA address in Program memory : 421h
DRWR content : 421h / 3Fh (64) = 10H data is located in 64-bytes window number 10h
64-byte window start address : 10h x 3Fh = 400h
Register (A, X,...)content : Offset = (421h - 400h) + 40h ( Data ROM Window start address in data space) = 61h
0000h
0400h
0421h
07FFh
PROGRAM SPACE
Figure
64 bytes
DATA
6. In any case the calcula-
tion is automatically handled by the ST6 develop-
ment tools.
Please refer to the user manual of the correspod-
ing tool.
3.1.6.3 Recommendations
Care is required when handling the DRWR regis-
ter as it is write only. For this reason, the DRWR
contents should not be changed while executing
an interrupt service routine, as the service routine
cannot save and then restore the register’s previ-
ous contents. If it is impossible to avoid writing to
the DRWR during the interrupt service routine, an
image of the register must be saved in a RAM lo-
cation, and each time the program writes to the
DRWR, it must also write to the image register.
The image register must be written first so that, if
an interrupt occurs between the two instructions,
the DRWR is not affected.
DATA SPACE
10h
DATA
DRWR
0FFh
07Fh
000h
040h
061h
OFFSET
21h

Related parts for ST6225C