321
ABOV Semiconductor Co., Ltd.
11.17.4 Serial Flash Interface by SPI2 or SPI3
The interface block with a serial flash memory are to automatically read the table data of voice prompt and the
encoding data of the FADPCM format. One of the SPI2 and SPI3 can be selected for a serial interface with flash
memory by SPICSS bit. The first trigger signal should be generated to read data block from a serial flash memory by
SFRDST bit to set ‘1’. The data block can be maximum 8-bytes for voice prompt table data and maximum 16M-bytes
for voice prompt play data in one auto-interface. The DTRS bit should be set to ‘1’ to transfer data from SPI2DR or
SPI3DR to FADPCM decoder block every interface.
How to read voice prompt table data from a serial flash memory by SPI2:
− Write “xxxx1010b”/“10xxxxxxb” to P3FSRH/P3FSRL registers for the serial interface pins, repectively. If the
MCU VDD = 5V and the serial flash VCC = 3V, Set the SPI2_3V bit (the P3FSRH.7) to “1b” for reading 3V
output of the serial flash.
− Set the nCS pin of the serial flash to low level for the serial flash selection
− Write “read instruction of the serial flash” to the SFCMD register
− Write the number of dummy for serial flash interface and the number of data to read from the serial flash to
the SFDDNO register
− Write the start address of voice prompt table to voice prompt address registers (VPADDR1/2/3)
− Set the VPCR register to “xx100101b” for start of auto-interface
− Clear the VPTBLIFR bit to ‘0’
− Finish auto-interface as the nCS pin of the serial flash set to high level after the VPTBLIFR bit is set to ‘1’
MOSI
- Voice prompt table data fetch: ATRIGS[1:0] = “01b”, DUMY[3:0] = “n”, RDNO[2:0] = “7b”
SFCMD VPADDR1X VPADDR2 VPADDR3 DUMY1 DUMY2 --------- DUMYn X
MISO DATA0 DATA1 DATA2 DATA3 DATA4 DATA5 DATA6 DATA7
nCS
SFRDST
This bit is automatically cleared to ‘0’ after being exection
Registers
VPADDR1 VPADDR2 VPADDR3 VPSIZE1 VPSIZE2 VPSIZE3 VPINF1 VPINF2
Voice Prompt Table Data Receive End Interrupt
Figure 11.101 Voice Prompt Table Data Fetch Timing Diagram