| Electronic Components Datasheet Search |
|
AN2591 Datasheet(PDF) 17 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2591 Datasheet(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 */ } } |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |