| 전자부품 데이터시트 검색엔진 |
|
AN2591 데이터시트(PDF) 17 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2591 데이터시트(HTML) 17 Page - STMicroelectronics |
|
17 / 19 page ![]() AN2591 Using the External Memory Interface for I/O expansion 17/19 Example of software that gets the value on the 16-bit buffer inputs and writes it in the 16-bit latch outputs. The two devices are available in bank0 (CSn.x = CSn.0): int main(void) { u16 a; u16 *Buffer_Data16_in = (u16*)0x60000002; /* Initialize the buffer address to 0x60000002 */ u16 *Latch_Data16_out = (u16*)0x60000001; /* Initialize the latch address to 0x60000001 */ *(u16*)0x6C000000 = 0x8005; /* Configure EMI_BCON0 register: - 16 bit data bus wide - 1 wait state - Enable bank 0 */ while(1) { a = *Buffer_Data16_in; /* Get the value available on inputs of the external buffer */ *Latch_Data16_out = a; /* Write this value in the external latch */ } } |
|
|
링크 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 |