Texas Instruments TMS320DM646X DMSOC manuel d'utilisation

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64

Aller à la page of

Un bon manuel d’utilisation

Les règles imposent au revendeur l'obligation de fournir à l'acheteur, avec des marchandises, le manuel d’utilisation Texas Instruments TMS320DM646X DMSOC. Le manque du manuel d’utilisation ou les informations incorrectes fournies au consommateur sont à la base d'une plainte pour non-conformité du dispositif avec le contrat. Conformément à la loi, l’inclusion du manuel d’utilisation sous une forme autre que le papier est autorisée, ce qui est souvent utilisé récemment, en incluant la forme graphique ou électronique du manuel Texas Instruments TMS320DM646X DMSOC ou les vidéos d'instruction pour les utilisateurs. La condition est son caractère lisible et compréhensible.

Qu'est ce que le manuel d’utilisation?

Le mot vient du latin "Instructio", à savoir organiser. Ainsi, le manuel d’utilisation Texas Instruments TMS320DM646X DMSOC décrit les étapes de la procédure. Le but du manuel d’utilisation est d’instruire, de faciliter le démarrage, l'utilisation de l'équipement ou l'exécution des actions spécifiques. Le manuel d’utilisation est une collection d'informations sur l'objet/service, une indice.

Malheureusement, peu d'utilisateurs prennent le temps de lire le manuel d’utilisation, et un bon manuel permet non seulement d’apprendre à connaître un certain nombre de fonctionnalités supplémentaires du dispositif acheté, mais aussi éviter la majorité des défaillances.

Donc, ce qui devrait contenir le manuel parfait?

Tout d'abord, le manuel d’utilisation Texas Instruments TMS320DM646X DMSOC devrait contenir:
- informations sur les caractéristiques techniques du dispositif Texas Instruments TMS320DM646X DMSOC
- nom du fabricant et année de fabrication Texas Instruments TMS320DM646X DMSOC
- instructions d'utilisation, de réglage et d’entretien de l'équipement Texas Instruments TMS320DM646X DMSOC
- signes de sécurité et attestations confirmant la conformité avec les normes pertinentes

Pourquoi nous ne lisons pas les manuels d’utilisation?

Habituellement, cela est dû au manque de temps et de certitude quant à la fonctionnalité spécifique de l'équipement acheté. Malheureusement, la connexion et le démarrage Texas Instruments TMS320DM646X DMSOC ne suffisent pas. Le manuel d’utilisation contient un certain nombre de lignes directrices concernant les fonctionnalités spécifiques, la sécurité, les méthodes d'entretien (même les moyens qui doivent être utilisés), les défauts possibles Texas Instruments TMS320DM646X DMSOC et les moyens de résoudre des problèmes communs lors de l'utilisation. Enfin, le manuel contient les coordonnées du service Texas Instruments en l'absence de l'efficacité des solutions proposées. Actuellement, les manuels d’utilisation sous la forme d'animations intéressantes et de vidéos pédagogiques qui sont meilleurs que la brochure, sont très populaires. Ce type de manuel permet à l'utilisateur de voir toute la vidéo d'instruction sans sauter les spécifications et les descriptions techniques compliquées Texas Instruments TMS320DM646X DMSOC, comme c’est le cas pour la version papier.

Pourquoi lire le manuel d’utilisation?

Tout d'abord, il contient la réponse sur la structure, les possibilités du dispositif Texas Instruments TMS320DM646X DMSOC, l'utilisation de divers accessoires et une gamme d'informations pour profiter pleinement de toutes les fonctionnalités et commodités.

Après un achat réussi de l’équipement/dispositif, prenez un moment pour vous familiariser avec toutes les parties du manuel d'utilisation Texas Instruments TMS320DM646X DMSOC. À l'heure actuelle, ils sont soigneusement préparés et traduits pour qu'ils soient non seulement compréhensibles pour les utilisateurs, mais pour qu’ils remplissent leur fonction de base de l'information et d’aide.

Table des matières du manuel d’utilisation

  • Page 1

    TMS320DM646x DMSoC Asynchronous External Memory Interface (EMIF) User's Guide Literature Number: SPRUEQ7C February 2010[...]

  • Page 2

    2 SPRUEQ7C – February 2010 Submit Documentation Feedback Copyright © 2010, Texas Instruments Incorporated[...]

  • Page 3

    Preface ....................................................................................................................................... 6 1 Introduction ........................................................................................................................ 8 1.1 Purpose of the Peripheral ....................................[...]

  • Page 4

    www.ti.com List of Figures 1 EMIF Functional Block Diagram .......................................................................................... 9 2 EMIF Asynchronous Interface ........................................................................................... 11 3 EMIF to 8-bit and 16-bit Memory Interfaces ............................[...]

  • Page 5

    www.ti.com List of Tables 1 EMIF Pins .................................................................................................................. 10 2 Behavior of EM_CS Signal Between Normal Mode and Select Strobe Mode ..................................... 10 3 Description of the Asynchronous Configuration Register (ACFG n ) ................[...]

  • Page 6

    Preface SPRUEQ7C – February 2010 Read This First About This Manual This document describes the asynchronous external memory interface (EMIF) in the TMS320DM646x Digital Media System-on-Chip (DMSoC). The EMIF supports a glueless interface to a variety of external devices. Notational Conventions This document uses the following conventions. • Hex[...]

  • Page 7

    www.ti.com Related Documentation From Texas Instruments SPRU871 — TMS320C64x+ DSP Megamodule Reference Guide. Describes the TMS320C64x+ digital signal processor (DSP) megamodule. Included is a discussion on the internal direct memory access (IDMA) controller, the interrupt controller, the power-down controller, memory protection, bandwidth manage[...]

  • Page 8

    User's Guide SPRUEQ7C – February 2010 Asynchronous External Memory Interface (EMIF) 1 Introduction This document describes the operation of the asynchronous external memory interface (EMIF) in the TMS320DM646x Digital Media System-on-Chip (DMSoC). 1.1 Purpose of the Peripheral The purpose of this EMIF is to provide a means to connect to a va[...]

  • Page 9

    EM_CS[5:2] EM_OE EM_RW EM_W AIT[5:2] EM_WE EM_BA[1:0] EM_D[15:0] EM_A[22:0] EMIF SCR VICP DSP ARM EDMA3 Master peripherals www.ti.com Architecture 1.3 Functional Block Diagram Figure 1 illustrates the connections between the EMIF and its internal requesters, along with the external EMIF pins. Section 2.2 contains a description of the entities inter[...]

  • Page 10

    Architecture www.ti.com 2.3 Signal Descriptions Table 1 describes the function of each of the EMIF pins. Table 1. EMIF Pins Pins(s) I/O Description EM_ A[22:0] O EMIF address bus. These pins are used in conjunction with the EM_BA pins to form the address that is sent to the device. EM_BA[1:0] O EMIF bank address. These pins are used in conjunction [...]

  • Page 11

    EM_CS[5:2] EM_WE EM_OE EM_RW EM_W AIT[5:2] EM_BA[1:0] EM_D[15:0] EM_A[22:0] EMIF EM_D[7:0] EM_A[21:0] EM_BA[1:0] DQ[7:0] A[23:2] A[1:0] EMIF 8−bit asynchronous memory a) EMIF to 8-bit memory interface EM_D[15:0] EM_A[21:0] EM_BA[1] DQ[15:0] A[22:1] A[0] EMIF 16−bit asynchronous memory b) EMIF to 16-bit memory interface www.ti.com Architecture 2[...]

  • Page 12

    Architecture www.ti.com 2.5.2 Programmable Asynchronous Parameters The EMIF allows a high degree of programmability for shaping asynchronous accesses. The programmable parameters are: • Setup: The time between the beginning of a memory cycle (address valid) and the activation of the output enable or write enable strobe • Strobe: The time betwee[...]

  • Page 13

    www.ti.com Architecture Table 3. Description of the Asynchronous Configuration Register (ACFG n ) (continued) Parameter Description ASIZE Asynchronous Device Bus Width. This field determines the data bus width of the asynchronous interface in the following way: • ASIZE = 0 selects an 8-bit bus • ASIZE = 1 selects a 16-bit bus The configuration [...]

  • Page 14

    Architecture www.ti.com 2.5.4 Read and Write Operations in Normal Mode Normal mode is the asynchronous interface's default mode of operation. The Normal mode is selected when the SS bit in the asynchronous configuration register (ACFG n ) is cleared to 0. In this mode, the EM_CS signal operates as a chip enable signal, active throughout the du[...]

  • Page 15

    Internal clock EM_CS[5:2] EM_A/EM_BA EM_D EM_OE EM_WE EM_R W Setup Strobe Hold 2 3 2 Address Data www.ti.com Architecture Figure 4. Timing Waveform of an Asynchronous Read Cycle in Normal Mode 15 SPRUEQ7C – February 2010 Asynchronous External Memory Interface (EMIF) Submit Documentation Feedback Copyright © 2010, Texas Instruments Incorporated[...]

  • Page 16

    Architecture www.ti.com 2.5.4.2 Asynchronous Write Operations (Normal Mode) An asynchronous write is performed when any of the requesters mentioned in Section 2.2 request a write to asynchronous memory. In the event that the write request cannot be serviced by a single access cycle to the external device, multiple access cycles will be performed by[...]

  • Page 17

    Internal clock EM_CS[5:2] EM_A/EM_BA EM_D EM_OE EM_WE EM_R W Setup Strobe Hold 2 3 2 Address Data www.ti.com Architecture Figure 5. Timing Waveform of an Asynchronous Write Cycle in Normal Mode 17 SPRUEQ7C – February 2010 Asynchronous External Memory Interface (EMIF) Submit Documentation Feedback Copyright © 2010, Texas Instruments Incorporated[...]

  • Page 18

    Architecture www.ti.com 2.5.5 Read and Write Operations in Select Strobe Mode Select Strobe mode is the EMIF's second mode of operation. The SS mode is selected when the SS bit in the asynchronous configuration register (ACFG n ) is set to 1. In this mode, the EM_CS pin functions as a strobe signal and is therefore only active during the strob[...]

  • Page 19

    Internal clock EM_CS[5:2 ] EM_A/EM_BA EM_D EM_OE EM_WE EM_R W Setup Strobe Hold 2 3 2 Address Data www.ti.com Architecture Figure 6. Timing Waveform of an Asynchronous Read Cycle in Select Strobe Mode 19 SPRUEQ7C – February 2010 Asynchronous External Memory Interface (EMIF) Submit Documentation Feedback Copyright © 2010, Texas Instruments Incorp[...]

  • Page 20

    Architecture www.ti.com 2.5.5.2 Asynchronous Write Operations (Select Strobe Mode) An asynchronous write is performed when any of the requesters mentioned in Section 2.2 request a write to memory in the asynchronous bank of the EMIF. In the event that the write request cannot be serviced by a single access cycle to the external device, multiple acc[...]

  • Page 21

    Internal clock EM_CS[5:2 ] EM_A/EM_BA EM_D EM_OE EM_WE EM_R W Setup Strobe Hold 2 3 2 Address Data www.ti.com Architecture Figure 7. Timing Waveform of an Asynchronous Write Cycle in Select Strobe Mode 21 SPRUEQ7C – February 2010 Asynchronous External Memory Interface (EMIF) Submit Documentation Feedback Copyright © 2010, Texas Instruments Incor[...]

  • Page 22

    Architecture www.ti.com 2.5.6 NAND Flash Mode NAND Flash mode is the EMIF's third mode of operation. Each chip select space may be placed in NAND Flash mode individually by setting the appropriate CS n NAND bit in the NAND Flash control register (NANDFCR). Table 11 displays the bit fields present in NANDFCR and briefly describes their use. Whe[...]

  • Page 23

    CLE_EM_A[16] ALE_EM_A[17] EM_CS[n] EM_WE EM_OE EM_D[7:0] EM_W AIT[n] EMIF CLE ALE CE WE OE IO[7:0] R/B NAND flash a) Connection to 8-bit NAND device b) Connection to 16-bit NAND device EM_W AIT[n] EM_D[15:0] EM_OE EM_WE EM_CS[n] ALE_EM_A[17] CLE_EM_A[16] EMIF CE IO[15:0] R/B OE WE NAND flash CLE ALE www.ti.com Architecture 2.5.6.2 Connecting to NAN[...]

  • Page 24

    Architecture www.ti.com 2.5.6.4 NAND Read and Program Operations A NAND Flash access cycle is composed of a command, address, and data phase. The EMIF will not automatically generate these three phases to complete a NAND access with one transfer request. To complete a NAND access cycle, multiple single asynchronous access cycles (as described above[...]

  • Page 25

    Bit 7 Bit 7 Bit 7 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Bit 6 Bit 5 Bit 4 Bit 2 Bit 3 Bit 1 Bit 0 Bit 6 Bit 6 Bit 1 Bit 3 Bit 2 Bit 4 Bit 5 Bit 5 Bit 4 Bit 2 Bit 3 Bit 1 Bit 0 Bit 0 p8o p8o p8e p8e p16e p16o p32e Byte 1 Byte 2 Byte 3 Byte 4 Bit 6 Bit 6 Bit 6 Bit 6 Byte 2 Bit 7 Byte 4 Byte 3 Bit 7 Bit 7 Byte 1 Bit 7 Bit 1 Bit 3 Bit 2 Bit 4[...]

  • Page 26

    EM_D[15:0] EM_RW EM_A[1:0] EM_W AIT EM_OE EM_WE EM_CS EM_BA1 GPIOx AEMIF HD[15:0] HR/W HCNTL[1:0] HRDY HDS1 HCS HHWIL HINT HDS2 HAS HPIENA HBED A HBE1 A HPI16 VCC VCC VSS VSS Architecture www.ti.com 2.5.6.7 NAND Flash Status Register (NANDFSR) The NAND Flash status register (NANDFSR) indicates the raw status of the EM_WAIT n pin. The EM_WAIT n pin [...]

  • Page 27

    www.ti.com Architecture 2.5.8 Extended Wait Mode and the EM_WAIT Pin The Extended Wait mode is a mode in which the external asynchronous device may assert control over the length of the strobe period. The Extended Wait mode can be entered by setting the EW bit in the asynchronous configuration register (ACFG n ). When the EW bit is set, the EMIF mo[...]

  • Page 28

    Architecture www.ti.com 2.5.11 Interrupt Support The EMIF has a single interrupt source ( Table 13 ) mapped to the ARM interrupt controller. For more information on the ARM interrupt controller (AINTC), see the TMS320DM646x DMSoC ARM Subsystem Reference Guide ( SPRUEP9 ). Table 13. EMIF Interrupt ARM Event Acronym Source 60 EMIFAINT EMIF The EMIF s[...]

  • Page 29

    www.ti.com Architecture 2.5.11.2 Interrupt Multiplexing The EMIF interrupt is supported by both the ARM and DSP. The interrupt is not multiplexed with another interrupt and is therefore always available. 2.5.12 Program Execution Since the EMIF does not have byte enable or data mask pins, byte accesses to memory are not supported when the data bus w[...]

  • Page 30

    EM_CS EM_WE EM_OE A[18:0] EM_BA[1] EM_D[15:0] CE WE OE LB UB A[19:1] A[0] DQ[15:0] V S S V S S EMIF TC5516100FT−12 Use Cases www.ti.com 3 Use Cases The EMIF allows a high degree of programmability for shaping asynchronous accesses. As previously stated, the shape and duration of the asynchronous access is determined by controlling the widths of t[...]

  • Page 31

    R_SETUP ) R_ST ROBE w ǒ t ACC (m ) ) t SU Ǔ t cyc * 1 R_SETUP ) R_ST ROBE ) R_HOLD w t RC (m ) t cyc * 3 R_HOLD w ǒ t H * t OH (m) Ǔ t cyc * 1 TA w t COD (m) t cyc * 1 www.ti.com Use Cases 3.1.2 Meeting AC Timing Requirements for ASRAM When configuring the EMIF to interface to ASRAM, you must consider the AC timing requirements of the ASRAM as [...]

  • Page 32

    t RC (m) Strobe Setup Hold EM_CS EM_A[21:0] EM_BA[1:0] EM_OE EM_D[15:0] t ACC (m) t SU t H t COD (m) t OH (m) Use Cases www.ti.com Figure 12. Timing Waveform of an ASRAM Read For a write access, Table 18 lists the AC timing specifications that must be satisfied. Table 18. ASRAM Input Timing Requirements for a Write Parameter Description t WP Write [...]

  • Page 33

    W_ST ROBE w t W P (m) t cyc * 1 W_SET UP ) W_ST ROB E w max ǒ t AW ( m) t cyc , t DS (m) t cyc Ǔ * 1 W_HOLD w max ǒ t WR (m) t cyc , t DH (m ) t cyc Ǔ * 1 W_SET UP ) W_ST ROB E ) W_HOLD w t W C (m) t cyc * 3 t WC (m) Strobe Setup Hold t WR (m) t WP (m) t A W (m) t DS (m) t DH (m) EM_CS EM_A[21:0] EM_BA[1:0] EM_WE EM_D[15:0] www.ti.com Use Cases[...]

  • Page 34

    R_SETUP ) R_ST ROBE w ǒ t EM_A ) t A CC (m) ) t SU ) t E M_D Ǔ t cyc * 1 R_SETUP ) R_ST ROBE ) R_HOLD w t RC (m ) t cyc * 3 R_HOLD w ǒ t H * t EM_D * t OH (m) * t EM_A Ǔ t cyc * 1 TA w ǒ t EM_CS ) t COD (m) ) t EM _D Ǔ t cyc * 1 Use Cases www.ti.com 3.1.3 Taking Into Account PCB Delays The equations described in Section 3.1.2 are for the idea[...]

  • Page 35

    1 Setup 2 Strobe 3 Hold 4 EM_CS EM_CS (ASRAM) EM_A[21:0]/ EM_BA[1:0] EM_A[21:0]/ EM_BA[1:0] (ASRAM) EM_OE EM_OE (ASRAM) EM_D[15:0] EM_D[15:0] (ASRAM) t CS t CS t RC (m) t EM_A t EM_A t EM_OE t EM_OE t SU t EM_D t ACC (m) t EM_D t OH (m) t H t COD (m) www.ti.com Use Cases Figure 14. Timing Waveform of an ASRAM Read with PCB Delays From Figure 15 , t[...]

  • Page 36

    W_ST ROBE w t W P (m) t cyc * 1 W_SET UP ) W_ST ROB E w max ǒ ǒ t EM_A ) t AW ( m) * t EM_W E Ǔ t cyc , ǒ t EM _D ) t DS (m) * t E M_WE Ǔ t cyc Ǔ * 1 W_HOLD w max ǒ ǒ t EM_WE ) t WR (m ) * t EM_A Ǔ t cyc , ǒ t EM_WE ) t DH (m) * t E M_D Ǔ t cyc Ǔ * 1 W_SET UP ) W_ST ROB E ) W_HOLD w t W C (m) t cyc * 3 1 Setup 2 Strobe 3 Hold 4 EM_CS EM[...]

  • Page 37

    www.ti.com Use Cases 3.1.4 Example Using TC5516100FT-12 This section takes you through the configuration steps required to implement Toshiba’s TC55V1664FT-12 ASRAM with the EMIF. The following assumptions are made: • ASRAM is connected to chip select space 3 (EM_CS[3]) • EMIF clock speed is 100 MHZ (t cyc = 10 nS) Table 20 lists the data shee[...]

  • Page 38

    R_SETUP ) R_ST ROBE w ǒ t EM_A ) t A CC (m) ) t SU ) t E M_D Ǔ t cyc * 1 w ( 0. 27 ) 12 ) 5 ) 0.45 ) 10 * 1 w 0.78 R_SETUP ) R_ST ROBE ) R_HOLD w t RC (m ) t cyc * 3 w ǒ 12 10 Ǔ * 3 w * 1.8 R_HOLD w ǒ t H * t EM_D * t OH (m) * t EM_A Ǔ t cyc * 1 w ( 0 * 0.45 * 3 * 0.27 ) 10 * 1 w * 1. 37 TA w ǒ t EM_CS ) T COD (m) ) t EM _D Ǔ t cyc * 1 w ( [...]

  • Page 39

    www.ti.com Use Cases Since the value of the W_SETUP/R_SETUP, W_STROBE/R_STROBE, W_HOLD/R_HOLD, and TA fields are equal to EMIF clock cycles minus 1 cycle, the A2CR should be configured as in Table 23 . In this example, the EM_WAIT signal is not implemented; therefore, the asynchronous wait cycle configuration register (AWCCR) does not need to be pr[...]

  • Page 40

    Use Cases www.ti.com 3.2.2 Meeting AC Timing Requirements for NAND Flash When configuring the EMIF to interface to NAND Flash, you must consider the AC timing requirements of the NAND Flash as well as the AC timing requirements of the EMIF. These can be found in the data sheet for each respective device. The read and write asynchronous cycles are p[...]

  • Page 41

    R_SETUP w t CLR (m ) t cyc * 1 R_STROB E w max ǒ ǒ t REA (m ) ) t SU Ǔ t cyc , t RP (m) t cyc Ǔ * 1 R_SETUP ) R_ST ROBE w ǒ t CEA (m) ) t SU Ǔ t cyc * 1 R_HOLD w ǒ t H * t CHZ (m) Ǔ t cyc * 1 R_SETUP ) R_ST ROBE ) R_HOLD w t RC (m ) t cyc * 3 TA w max ǒ t CHZ (m) t cyc , t RHZ (m) * (R_HOLD ) 1)t cyc t cyc Ǔ * 1 Setup Strobe Hold t RC (m)[...]

  • Page 42

    W_SET UP w max ǒ t CLS (m ) t cyc , t A LS (m ) t cyc , t CS (m) t cyc Ǔ * 1 W_ST ROBE w t W P (m) t cyc * 1 W_SET UP ) W_ST ROB E w t DS (m) t cyc * 1 W_HOLD w max ǒ t CLH (m) t cyc , t ALH (m) t cyc , t CH (m ) t cyc , t DH (m) t cyc Ǔ * 1 W_SET UP ) W_ST ROB E ) W_HOLD w t W C (m) t cyc * 3 Use Cases www.ti.com To determine the required EMIF[...]

  • Page 43

    t CH (m) t WC (m) t ALH (m) t CLH (m) t WP (m) EM_CS ALE_EM_A[1] CLE_EM_A[2] EM_WE EM_D[7:0] t CS (m) t ALS (m) t CLS (m) t DS (m) t DH (m) Setup Strobe Hold t CH (m) t WC (m) t ALH (m) t CLH (m) t WP (m) EM_CS ALE_EM_A[1] CLE_EM_A[2] EM_WE EM_D[7:0] t CS (m) t ALS (m) t CLS (m) t DS (m) t DH (m) Setup Strobe Hold www.ti.com Use Cases Figure 17. Ti[...]

  • Page 44

    t CH (m) t WC (m) t ALH (m) t CLH (m) t WP (m) EM_CS ALE_EM_A[1] CLE_EM_A[2] EM_WE EM_D[7:0] t CS (m) t ALS (m) t CLS (m) t DS (m) t DH (m) Setup Strobe Hold Use Cases www.ti.com Figure 19. Timing Waveform of a NAND Flash Data Write 44 Asynchronous External Memory Interface (EMIF) SPRUEQ7C – February 2010 Submit Documentation Feedback Copyright ?[...]

  • Page 45

    www.ti.com Use Cases 3.2.3 Example Using Hynix HY27UA081G1M This section takes you through the configuration steps required to implement Hynix’s HY27UA081G1M NAND Flash with the EMIF. The following assumptions are made: • NAND Flash is connected to chip select space 2 (EM_CS[2]) • EMIF clock speed is 100 MHZ (t cyc = 10 nS) Table 28 lists the[...]

  • Page 46

    R_SETUP w t CLR (m ) t cyc * 1 w ǒ 10 10 Ǔ * 1 w 0 R_STROB E w max ǒ ǒ t REA (m ) ) t SU Ǔ t cyc , t RP t cyc Ǔ * 1 w ǒ 65 10 Ǔ * 1 w 5.5 R_SETUP ) R_ST ROBE w ǒ t CEA ) t S U Ǔ t cyc * 1 w (75 ) 5) 10 * 1 w 7 R_HOLD w ǒ t H * t CHZ (m) Ǔ t cyc * 1 w ( 0 * 20) 10 * 1 w * 3 R_SETUP ) R_ST ROBE ) R_HOLD w t RC (m ) t cyc * 3 w ǒ 80 10 Ǔ[...]

  • Page 47

    www.ti.com Use Cases Since the value of the W_SETUP/R_SETUP, W_STROBE/R_STROBE, W_HOLD/R_HOLD, and TA fields are equal to EMIF clock cycles minus 1 cycle, the A1CR should be configured as in Table 30 . In this example, although the EM_WAIT signal is connected to the R/B signal of the NAND Flash the Extended Wait mode of the EMIF is not used, theref[...]

  • Page 48

    Registers www.ti.com 4 Registers The external memory interface (EMIF) is controlled by programming its internal memory-mapped registers (MMRs). Table 32 lists the memory-mapped registers for the EMIF. See the device-specific data manual for the memory address of these registers. All other register offset addresses not listed in Table 32 should be c[...]

  • Page 49

    www.ti.com Registers 4.1 Revision Code and Status Register (RCSR) The revision code and status register (RCSR) is shown in Figure 20 and described in Table 33 . Figure 20. Revision Code and Status Register (RCSR) 31 30 29 16 Reserved MODID R-x R-Fh 15 8 7 0 REVMAJ REVMIN R-2h R-2h LEGEND: R = Read only; - n = value after reset; -x = value is indete[...]

  • Page 50

    Registers www.ti.com 4.2 Asynchronous Wait Cycle Configuration Register (AWCCR) The asynchronous wait cycle configuration register (AWCCR) is used to configure the parameters for extended wait cycles. Both the polarity of the EM_WAIT[5:2] pins and the maximum allowable number of extended wait cycles can be configured. the AWCCR is shown in Figure 2[...]

  • Page 51

    www.ti.com Registers Table 34. Asynchronous Wait Cycle Configuration Register (AWCCR) Field Descriptions (continued) Bit Field Value Description 17-16 CS2_WAIT 0-3h EM_WAIT[5:2] pin map for chip select 2. By default, the EM_WAIT[2] pin is used for chip select 2. 0 EM_WAIT[2] pin is used. 1h EM_WAIT[3] pin is used. 2h EM_WAIT[4] pin is used. 3h EM_W[...]

  • Page 52

    Registers www.ti.com 4.3 Asynchronous n Configuration Registers (A1CR-A4CR) The asynchronous configuration register (ACFG n ) is used to configure the shaping of the address and control signals during an access to asynchronous memory. It is also used to program the width of asynchronous interface and to select from various modes of operation. This [...]

  • Page 53

    www.ti.com Registers 4.4 EMIF Interrupt Raw Register (EIRR) The EMIF interrupt raw register (EIRR) is used to monitor and clear the EMIF’s hardware-generated interrupts. The bits in EIRR are set when an interrupt condition occurs, regardless of the status of the EMIF interrupt mask set register (EIMSR) and EMIF interrupt mask clear register (EIMC[...]

  • Page 54

    Registers www.ti.com 4.5 EMIF Interrupt Mask Register (EIMR) Similar to the EMIF interrupt raw register (EIRR), the EMIF interrupt mask register (EIMR) is used to monitor and clear the status of the EMIF’s hardware-generated interrupts. The main difference between the two registers is that when the bits in EIMR are set, an active-high pulse is se[...]

  • Page 55

    www.ti.com Registers Table 37. EMIF Interrupt Mask Register (EIMR) Field Descriptions (continued) Bit Field Value Description 0 ATM Asynchronous Timeout Masked. This bit is set to 1 by hardware to indicate that during an extended asynchronous memory access cycle the EM_WAIT n pin did not go inactive within the number of cycles defined by the MEWC f[...]

  • Page 56

    Registers www.ti.com 4.6 EMIF Interrupt Mask Set Register (EIMSR) The EMIF interrupt mask set register (EIMSR) is used to enable the interrupts. If a bit is set to 1, the corresponding bit in the EMIF interrupt mask register (EIMR) is set and an interrupt is generated when the associated interrupt condition occurs. If a bit is cleared to 0, the the[...]

  • Page 57

    www.ti.com Registers Table 38. EMIF Interrupt Mask Set Register (EIMSR) Field Descriptions (continued) Bit Field Value Description 0 ATMSET Asynchronous Timeout Mask Set. This bit enables the asynchronous timeout interrupt. Writing a 1 to this bit sets this bit and the ATMCLR bit in the EMIF interrupt mask clear register (EIMCR), and enables the as[...]

  • Page 58

    Registers www.ti.com 4.7 EMIF Interrupt Mask Clear Register (EIMCR) The EMIF interrupt mask clear register (EIMCR) is used to disable the interrupts. If a bit is read as 1, the corresponding bit in the EMIF interrupt mask register (EIMR) is set and an interrupt is generated when the associated interrupt condition occurs. If a bit is read as 0, the [...]

  • Page 59

    www.ti.com Registers Table 39. EMIF Interrupt Mask Clear Register (EIMCR) Field Descriptions (continued) Bit Field Value Description 0 ATMCLR Asynchronous Timeout Mask Clear. This bit determines whether or not the asynchronous timeout interrupt is enabled. Writing a 1 to this bit clears this bit and the ATMSET bit in the EMIF interrupt mask set reg[...]

  • Page 60

    Registers www.ti.com 4.8 NAND Flash Control Register (NANDFCR) The NAND Flash control register (NANDFCR) is shown in Figure 27 and described in Table 40 . Figure 27. NAND Flash Control Register (NANDFCR) 31 16 Reserved R-0 15 12 11 10 9 8 Reserved CS5ECC CS4ECC CS3ECC CS2ECC R-0 R/W-0 R/W-0 R/W-0 R/W-0 7 43210 Reserved CS5NAND CS4NAND CS3NAND CS2NA[...]

  • Page 61

    www.ti.com Registers 4.9 NAND Flash Status Register (NANDFSR) The NAND Flash status register (NANDFSR) is shown in Figure 28 and described in Table 41 . Figure 28. NAND Flash Status Register (NANDFSR) 31 16 Reserved R-0 15 4 3 0 Reserved WAITST R-0 R-0 LEGEND: R = Read only; - n = value after reset Table 41. NAND Flash Status Register (NANDFSR) Fie[...]

  • Page 62

    Registers www.ti.com Figure 29. NAND Flash n ECC Register (NANDECC n ) 31 28 27 26 25 24 Reserved P2048O P1024O P512O P256O R-0 R-0 R-0 R-0 R-0 23 22 21 20 19 18 17 16 P128O P64O P32O P16O P8O P4O P2O P1O R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 15 12 11 10 9 8 Reserved P2048E P1024E P512E P256E R-0 R-0 R-0 R-0 R-0 76543210 P128E P64E P32E P16E P8E P4E P2E [...]

  • Page 63

    www.ti.com Appendix A Revision History Table 43 lists the changes made since the previous version of this document. Table 43. Document Revision History Reference Additions/Modifications/Deletions Figure 1 Changed figure. Table 1 Changed table. Figure 2 Changed figure. Section 2.5.6.2 Changed paragraph. Figure 8 Changed figure. 63 SPRUEQ7C – Febru[...]

  • Page 64

    IMPORTANT NOTICE Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications, enhancements, improvements, and other changes to its products and services at any time and to discontinue any product or service without notice. Customers should obtain the latest relevant information before placing orders[...]