| Electronic Components Datasheet Search |
|
ATMEGA161L Datasheet(PDF) 72 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
ATMEGA161L Datasheet(HTML) 72 Page - ATMEL Corporation |
|
72 / 134 page ![]() ATmega161(L) 72 Interface to external memory With all the features the external memory interface provides, it is well suited to operate as an interface to memory devices such as external SRAM and FLASH, and peripherals as LCD-display, A/D, D/A etc. The control bits for the external mem- ory interface are located in two registers, the MCU Control Register – MCUCR and the Extended MCU Control Register – EMCUCR. MCU Control Register – MCUCR Extended MCU Control Register – EMCUCR • Bit 7 MCUCR – SRE: External SRAM enable When the SRE bit is set (one), the external memory interface is enabled, and the pin functions AD0-7 (Port A), A8-15 (Port C), ALE (Port E), WR and RD (Port D) are activated as the alternate pin functions. The SRE bit overrides any pin direction settings in the respective data direction registers. See Figure 51 – Figure 54 for description of the external memory pin functions. When the SRE bit is cleared (zero), the external data memory interface is disabled, and the normal pin and data direction settings are used • Bit 6..4 EMCUCR – SRL2, SRL1, SRL0: Wait state page limit It is possible to configure different wait-states for different external memory addresses. The external memory address space can be divided in two pages with different wait-state bits. The SRL2, SRL1 and SRL0 bits select the split of the pages, see Table 27 and Figure 50. As default the SRL2, SRL1 and SRL0 bits are set to zero and the entire external mem- ory address space is treated as one page. When the entire SRAM address space is configured as one page, the wait- states are configured by the SRW11 and SRW10 bits. • Bit 1 EMCUCR and Bit 6 MCUCR – SRW11, SRW10: Wait state select bits for upper page The SRW11 and SRW10 bits control the number of wait-states for the upper page of the external memory address space, see Table 26. Note that if the SRL2, SRL1 and SRL0 bits are set to zero, the SRW11 and SRW10 bit settings will define the wait-state of the entire SRAM address space. • Bit 3..2 EMCUCR – SRW01, SRW00: Wait state select bits for lower page The SRW01 and SRW00 bits control the number of wait-states for the lower page of the external memory address space, see Table 26. Note: n = 0 or 1 (lower/upper page). For further details of the timing and wait-states of the external memory interface, see Figure 51 – Figure 54 how the setting of the SRW bits affects the timing. Bit 7 6 543 210 $35 ($55) SRE SRW10 SE SM1 ISC11 ISC10 ISC01 ISC00 MCUCR Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Initial value 0 0 0 0 0 0 0 0 Bit 7 6 543 210 $36 ($56) SM0 SRL2 SRL1 SRL0 SRW01 SRW00 SRW11 ISC20 EMCUCR Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Initial value 0 0 0 0 0 0 0 0 Table 26. Wait-states SRWn1 SRWn0 Wait-states 0 0 No wait states 0 1 Wait one cycle during read/write strobe 1 0 Wait two cycles during read/write strobe 1 1 Wait two cycles during read/write and wait one cycle before driving out new address |
|
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 |