| 전자부품 데이터시트 검색엔진 |
|
AN1076 데이터시트(PDF) 14 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1076 데이터시트(HTML) 14 Page - STMicroelectronics |
|
14 / 15 page ![]() 14/15 ST9 EXTERNAL MEMORY INTERFACE CONFIGURATION 5 SOFTWARE EXAMPLE The code below shows a software example of a Large Memory Model interface (x150, x250 microcontrollers) with an external memory located in segment 24 of memory (and pointed to by DPR3). spp #21 ld R245, #082h ;EMR1 register: Normal mode & high-speed buffers ld R246, #050h; ;EMR2 register: zero wait states & (Bit 4)=1 spp #0 ld R252, #40h ; WCR: zero wait states ld R235, #20h ; MODER: No prescaler division & No High Impedance spp #3 ld R250,#000h ;P6.5 in Alternate function ld R249,#0FFh ; Push-Pull ld R248,#0FFh ; (RW pin) spp #2 ld R242,#000h ;Port 0 in Alternate function ld R241,#0FFh ; Push-Pull ld R240,#0FFh ; (Address LSB/Data multiplexed) ld R246,#000h ;Port 1 in Alternate function ld R245,#0FFh ; Push-Pull ld R244,#0FFh ; (Address MSB) spp #43 ld R254,#000h ;Port 9 in Alternate function ld R253,#0FFh ; Push-Pull ld R252,#0FFh spp #21 ld R240, #0x00 ;DPR0 register (Segment 0 for internal flash) ld R241, #0x01 ;DPR1 register (Segment 0 for internal flash) ld R242, #0x80 ;DPR2 register (Segment 20 for Internal RAM ld R243, #0x96 ;DPR3 register (Segment 24 for External RAM) sdm ; set data memory ld 0xC000,#0xAA ;examples of data transfers ld 0xC001,#0xAA ; in external memory ld 0xC002,#0xAA ; |
|
|
링크 URL |
| 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 |