Texas Instruments TMS320DM646X DMSOC Configuring A1CR for HY27UA081G1M Example, Parameter Setting

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, therefore the asynchronous wait cycle configuration register (AWCCR) does not need to be programmed.

 

Table 30. Configuring A1CR for HY27UA081G1M Example

 

 

Parameter

Setting

 

 

SS

Select Strobe mode.

 

• SS = 0. Places EMIF in Normal Mode.

 

 

EW

Extended Wait mode enable.

 

• EW = 0. Disabled Extended wait mode.

 

 

W_SETUP/R_SETUP

Read/Write setup widths.

 

W_SETUP = 0

 

R_SETUP = 2

 

 

W_STROBE/R_STROBE

Read/Write strobe widths.

 

W_STROBE = 6

 

R_STROBE = 7

 

 

W_HOLD/R_HOLD

Read/Write hold widths.

 

W_HOLD = 1

 

R_HOLD = 0

 

 

TA

Minimum turnaround time.

 

TA = 2

 

 

ASIZE

Asynchronous device bus width.

 

• ASIZE = 0, select an 8-bit data bus width.

 

 

 

Since this is a NAND Flash example, the EMIF must be configured for NAND Flash mode. This is accomplished by configuring the NAND Flash control register (NANDFCR) as in Table 31. In NANDFCR, chip select space 2 must be configured with NAND Flash mode enabled.

 

Table 31. Configuring NANDFCR for HY27UA081G1M Example

 

 

Parameter

Setting

 

 

CS5ECC

NAND Flash ECC start for chip select 5.

 

• CS5ECC = 0. Not set during configuration. Only set just prior to reading or writing data.

 

 

CS4ECC

NAND Flash ECC start for chip select 4.

 

• CS4ECC = 0. Not set during configuration. Only set just prior to reading or writing data.

 

 

CS3ECC

NAND Flash ECC start for chip select 3.

 

• CS3ECC = 0. Not set during configuration. Only set just prior to reading or writing data.

 

 

CS2ECC

NAND Flash ECC start for chip select 2.

 

• CS2ECC = 0. Not set during configuration. Only set just prior to reading or writing data.

 

 

CS5NAND

NAND Flash mode for chip select 5.

 

• CS5NAND = 0. NAND Flash mode is disabled.

 

 

CS4NAND

NAND Flash mode for chip select 4.

 

• CS4NAND = 0. NAND Flash mode is disabled.

 

 

CS3NAND

NAND Flash mode for chip select 3.

 

• CS3NAND = 0. NAND Flash mode is disabled.

 

 

CS2NAND

NAND Flash mode for chip select 2.

 

• CS5NAND = 1. NAND Flash mode is enabled.

 

 

SPRUEQ7C –February 2010

Asynchronous External Memory Interface (EMIF) 47

Submit Documentation Feedback

 

Copyright © 2010, Texas Instruments Incorporated

Image 47
Contents Users Guide Submit Documentation Feedback Appendix a Revision HistoryList of Figures List of Tables Read This First Related Documentation From Texas Instruments Purpose of the Peripheral FeaturesEmif Requests Functional Block DiagramClock Control Asynchronous Controller and Interface Signal DescriptionsEmif Pins Pin MultiplexingEmif Asynchronous Interface Interfacing to Asynchronous MemoryProgrammable Asynchronous Parameters Configuring the Emif for Asynchronous AccessesDescription of the Emif Interrupt Mast Clear Register Eimcr Description of the Emif Interrupt Mask Set Register EimsrTime Interval Pin Activity in WE Strobe Mode Read and Write Operations in Normal ModeAsynchronous Read Operations Normal Mode Asynchronous Read Operation in Normal ModeTiming Waveform of an Asynchronous Read Cycle in Normal Mode Asynchronous Write Operation in Normal Mode Asynchronous Write Operations Normal ModeAddress Time Interval Pin Activity in Select Strobe Mode Read and Write Operations in Select Strobe ModeAsynchronous Read Operations Select Strobe Mode Asynchronous Read Operation in Select Strobe ModeEMD Data Asynchronous Write Operation in Select Strobe Mode Asynchronous Write Operations Select Strobe ModeEMD Description of the Nand Flash Control Register Nandfcr Nand Flash ModeConfiguring for Nand Flash Mode Configuration For Nand FlashDriving CLE and ALE Connecting to Nand FlashNand Data Read and Write via DMA Nand Read and Program OperationsECC Value for 8-Bit Nand Flash ECC GenerationInterfacing to a TI DSP HPI Nand Flash Status Register NandfsrInterfacing to a Non-CE Dont Care Nand Flash Data Bus Parking Extended Wait Mode and the Emwait PinReset and Initialization Considerations Interrupt Monitor and Control Bit Fields Interrupt SupportEmif Interrupt Interrupt EventsEmulation Considerations Power ManagementInterrupt Multiplexing Program ExecutionInterfacing to Asynchronous Sram Asram Connecting to AsramAsram Input Timing Requirement for a Read Asram Output Timing CharacteristicsMeeting AC Timing Requirements for Asram Emif Input Timing RequirementsAsram Input Timing Requirements for a Write Timing Waveform of an Asram ReadTiming Waveform of an Asram Write Write Access Taking Into Account PCB DelaysAsram Timing Requirements With PCB Delays Parameter Description Read AccessTiming Waveform of an Asram Read with PCB Delays Timing Waveform of an Asram Write with PCB Delays Asram Timing Requirements for TC5516100FT-12 Example Example Using TC5516100FT-12Measured PCB Delays for TC5516100FT-12 Example Emif Timing Requirements for TC5516100FT-12 Example27 12 5 Rsetup Rstrobe w Recommended Margins Configuring A2CR for TC5516100FT-12 ExampleInterfacing to Nand Flash Margin RequirementsNand Flash Read Timing Requirements Meeting AC Timing Requirements for Nand FlashEmif Read Timing Requirements Timing Waveform of a Nand Flash Read Nand Flash Write Timing Requirements Timing Waveform of a Nand Flash Command Write Timing Waveform of a Nand Flash Data Write Nand Flash Timing Requirements for HY27UA081G1M Example Example Using Hynix HY27UA081G1MEmif Timing Requirements for HY27UA081G1M Example Rstrobe w max 1 w Nand Flash mode for chip select Configuring A1CR for HY27UA081G1M ExampleConfiguring Nandfcr for HY27UA081G1M Example Parameter SettingOffset Acronym Register Description External Memory Interface Emif RegistersBit Field Value Description Revision Code and Status Register RcsrRevision Code and Status Register Rcsr Field Descriptions WP3 Asynchronous Wait Cycle Configuration Register AwccrWP3 WP2 WP1 WP0 CS5WAIT CS4WAIT CS3WAIT CS2WAITEMWAIT2 pin is used Asynchronous n Configuration Registers A1CR-A4CR WR3 Emif Interrupt Raw Register EirrEmif Interrupt Raw Register Eirr Field Descriptions WR3 WR2 WR1 WR0WRM3 Emif Interrupt Mask Register EimrEmif Interrupt Mask Register Eimr Field Descriptions WRM3 WRM2 WRM1 WRM0AT bit in the Emif interrupt raw register Eirr WRMSET3 Emif Interrupt Mask Set Register EimsrEmif Interrupt Mask Set Register Eimsr Field Descriptions WRMSET3 WRMSET2 WRMSET1 WRMSET0Bit in Eimcr WRMCLR3 Emif Interrupt Mask Clear Register EimcrEmif Interrupt Mask Clear Register Eimcr Field Descriptions WRMCLR3 WRMCLR2 WRMCLR1 WRMCLR0Written to the Atmset bit in Eimsr Nand Flash Control Register Nandfcr Field Descriptions Nand Flash Control Register NandfcrWaitst Nand Flash Status Register NandfsrNand Flash n ECC Registers NANDF1ECC-NANDF4ECC Nand Flash Status Register Nandfsr Field DescriptionsP8O Nand Flash n ECC Register NANDECCn Field DescriptionsP8O P4O P2O P1O P8E P4E P2E P1EAdditions/Modifications/Deletions Document Revision HistoryRfid Products ApplicationsDSP