参数资料
型号: ST6200CM6/XXX
厂商: STMICROELECTRONICS
元件分类: 微控制器/微处理器
英文描述: 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDSO16
封装: 0.300 INCH, ROHS COMPLIANT, PLASTIC, SOP-16
文件页数: 6/100页
文件大小: 3849K
代理商: ST6200CM6/XXX
ST6200C ST6201C ST6203C
Doc ID 4563 Rev 5
13/100
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. 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.
Figure 6. Data ROM Window Memory Addressing
DATA
PROGRAM SPACE
DATA SPACE
0000h
0400h
0421h
07FFh
64 bytes
OFFSET
000h
040h
061h
07Fh
OFFSET
21h
0FFh
DRWR
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
10h
DATA
1
相关PDF资料
PDF描述
ST6203CN3/XXX 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDSO16
ST6209CB1/XXX 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDIP20
ST6220CB3/XXX 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDIP20
ST6220CB6/XXX 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDIP20
ST6208CB1/XXX 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDIP20
相关代理商/技术参数
参数描述
ST6200CM-AUTO 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:8-BIT MCUs WITH A/D CONVERTER, TWO TIMERS, OSCILLATOR SAFEGUARD & SAFE RESET
ST6200FNL 制造商:Pulse Electronics Corporation 功能描述:TRANSFORMER - Bulk 制造商:Pulse Electronics Corporation 功能描述:XFRMR 1:1 SONET/SDH E4/STM-1 SMD
ST6200FNLT 制造商:Pulse Electronics Corporation 功能描述:TRANSFORMER - Tape and Reel 制造商:Pulse Electronics Corporation 功能描述:XFRMR 1:1 SONET/SDH E4/STM-1 SMD
ST6200L 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:LOW VOLTAGE 8-BIT ROM MCUs WITH A/D CONVERTER,AND 16 PINS
ST6200LB1 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:LOW VOLTAGE 8-BIT ROM MCUs WITH A/D CONVERTER,AND 16 PINS