This application note explains the configuration, initialization, and usage of the External SPI Flash Memory Extension (SPIM) feature for Holtek HT32F49xxx…
The document introduces the SPIM feature available in the Holtek HT32F49xxx MCU series, which allows users to extend flash memory using external SPI Flash chips. It details how to configure the interface and use it as an extension for program execution or data storage like fonts and images.
The guide provides step-by-step instructions on initializing and unlocking the SPIM module, selecting compatible SPI Flash types based on supported command sets, and performing read, write (program), and erase operations. It also covers security features such as encryption algorithms using scrambled keys and hardware circuit considerations for stable operation. This manual is written in Chinese.
| SPIM Max Address Range | 0x08400000 ~ 0x093FFFFF (16 MB) |
|---|---|
| Supported Operations | Word (32-bit) or Half-word (16-bit) |
| Sector Size for Erase | 4 KB |
| SPIM Operation Frequency Limit | 1/2 of MCU AHB clock frequency |
The HT32F49395 is used as the example to describe how to use SPIM.
Encryption is enabled when the SPIM scrambled KEY values are not all 0xFFFF, 0xFF00, or 0x00FF.