Operation of 2.3NandFlash
1.NandFlash classification:
?
2.MLC and SLC comparison:
?
?
?
?
3. Signal PIN:
?
?
Nandflash's reading:
Page read: page address
Random read: Page address + column address
?
Today is to implement page-reading: The address of the page is required.
Let's look at the chip manual k9f2g08u0a.pdf: Find out how the Eucalyptus leaf Read works:
Register Nfcont:
The "1" bit in this register:
?
Here is the bit that selects the operation Nandflash:
?
- Nandflash's Statue Register:
Fourth place:
Clear RB: Fourth bit for 1 yes, clear RB.
- Next is the Send action:
Register:
- Send:
- Nfdata:
Main method:
Make: Compile
?
To implement the Nandflash read function, initialization must be performed: primarily two registers are initialized:
We are primarily initializing the three parameters of this register: TACLS,TWRPH0,TWRPH1.
The parameters are as follows: for our nandflash to work, we must meet his minimum value.
Tacls=0ns
Twfph0=12ns
Twfph1=5ns
?
The value operation of the above three parameters:
Our Nandflash use the HCLK, the frequency is 100MHz. The corresponding time for each tremor is 10ns (1/100mhz).
It's got a tacls>0ns.
Twfph0>12ns
Twfph1>5ns's formula.
To achieve duration=hclk*tacls=10ns*tacls>0, only need to take Tacls=1, you can.
To implement Duration=hclk* (twrph0+1) =10ns* (twrph0+1) >12ns, you need only twrph0=2 to
To implement Duration=hclk* (twrph1+1) =10ns* (twrph1+1) >5ns, only twrph1=1 is required.
The next step is to initialize our Nfcont, disable first, and then enable the use.
Operation of Reset:
The next step is to test these functions.
Solve the hidden dangers:
?
?
?
?
?
?
?
?
?
?
Operation of 2.3NandFlash