4.2 Nand Flash
Hardware Setting None
Flowchart
Start |
|
| |
Initial external bus | Erase page 11 of | Erase page 20 of | |
(Use CS7 area, | |||
block 0 | block 100 | ||
8 bit data width) | |||
|
| ||
Read Flash ID | Write data into | Write data into page | |
page 11 of block 0 | 20 of block 100 | ||
| |||
| Read data from | Read data from page | |
| page 11 of block 0 | 20 of block 100 | |
|
| End |
Figure
Usage
1)Open Nand Flash sample project, and start debug.
2)Use “step over” to debug, and watch local variable “flash_id”, “buf”.
4.3 RTC
Hardware Setting
It is an option that user can user external battery to supply power for RTC module
| Flowchart |
|
|
| Start |
|
|
| Initial MFS channel 5 | Write 0 to second register | Read to second register |
| (set IIC mode) | ||
|
|
| |
| Enable FOE signal | Write 30 to minute register | Read to minute register |
| (FOUT output 32.768khz |
|
|
| wave after it is enabled) |
|
|
|
| Write 8 to hour register | Read to hour register |
Figure
16