| 数据搜索系统,热门电子元器件搜索 |
|
ST6391 数据表(PDF) 14 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST6391 数据表(HTML) 14 Page - STMicroelectronics |
|
14 / 68 page ![]() MEMORY SPACES The MCUs operate in three different memory spaces: Stack Space, Program Space, and Data Space. A description of these spaces is shown in Figure 11. Stack Space The stack space consists of six 12 bit registers that are used for stacking subroutine and interrupt return addressesplus the current program counterregister. Program Space The program space is physically implemented in the ROM and includes all the instructions that are to be executed, as well as the data required for the immediate addressing mode instructions, the re- served test area and user vectors. It is addressed thanks to the 12-bit Program Counter register (PC register) and so, the ST639x Core can directly ad- dress up to 4K bytes of Program Space. Neverthe- less, the Program Space can be extended by the addition of 2-Kbyte ROM banks as it is shown in Figure 13 in which a 20K bytes memory is de- scribed. These banks are addressed by pointing to the 000h-7FFh locations of the Program Space thanks to the Program Counter, and by writing the appropriate code in the Program ROM Page Reg- ister (PRPR) located at the CAh address of the Data Space. Because interrupts and common sub- routines should be available all the time only the lower 2K byte of the 4K program space are bank switched while the upper 2K byte can be seen as static space. Table 3 gives the different codes that allows the selection of the corresponding banks. Note that, from the memory point of view, the Page 1 and the Static Page represent the same physical memory: it is only a different way of addressing the same location. On the ST6392,95,97, a total of 2048, bytes of ROM have been implemented; 20140 are available as user ROM while 340 are re- served for testing. PROGRAM SPACE VR001568 IN TER RU PT & R ESET VEC TOR S ACCUMULATOR WR EGI STER RAM DATA ROM WI NDO W R AM / E EPROM BAN KI NG AR EA DATA SPACE DATA RAM BAN K SELEC T DATA ROM WI N D OW SELEC T V RE GI STER Y R EGI STER X RE GI STER 0-63 00 00h 07FFh 08 00h 0FF0h 0FFFh 000h 03Fh 040h 070h 080h 081h 082h 083h 084h 0FFh 0C0 h ROM ROM STACK LEVE L 1 STACK LEVE L 2 STACK LEVE L 3 STACK LEVE L 4 STACK LEVE L 5 STACK LEVE L 6 PROGRAM COUNTER STACK SPACE Figure 11. ST639x Memory Addressing Description Diagram Program counter space 0000h 4FFFh 0FFFh Static Page Page 1 0800h 07FFh Page 0 Page 1 Static Page Page 9 0000h Figure 12. ST639x 20K Bytes Program Space Addressing Description ® ST6391,92,93,95,97,99 10/64 |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |