64
2.22 mSPI Configuration Memory
More information about embedded microcontroller may found in the microcontroller
datasheet.
Table 23: mSPI configuration memory
0x0000
Controls port P0
inputs (mSPI_REG0)
Reserved
P0[7:0]: The data at MCU port P0 input can be changed by writing data into this
register
0x0001
Reads port P1 outputs
(mSPI_REG1)
(read only)
Reserved
P1[7:0]: The content of MCU P1 port output can be obtained by reading this register
0x0002
Controls MCU input
pins (mSPI_REG2)
Reserved
RXD: The MCU USART receive input pin
DEBUG: enables hardware MCU debugging mode
0 – normal mode
1 – debug mode
EXT_INT[5:2]: external interrupts
MODE[1:0]: controls MCU program memory initialization modes:
0 – the MCU is in reset
1 – Programming both EEPROM and SRAM through mSPI
2 – Programming only SRAM only through mSPI
3 – Programming SRAM by reading the EEPROM
0x0003
Reads MCU status
signals (mSPI_REG3)
(read only)
Reserved
TXD: The USART transmit output pin
PROGRAMMED: Status output signal; when is set, it indicates that programming
process is finished, and MCU executes instructions
Reserved
READ_REQ: status signal; new 8-bit data (the register mSPI_REG5 content) is
ready to be read through mSPI
WRITE_REQ: status signal; a new data byte is waiting in the mSPI_REG4 register
to be transferred into MCU
FULL_WRITE_BUFF: indicates that INPUT 32-byte FIFO buffer is full, the MCU is
not ready to receive data, and base band processor has to wait
EMPTY_WRITE_BUFF: tells that INPUT 32-byte FIFO is empty
0x0004
Writes one byte of
data to MCU
(mSPI_REG4)
Reserved
DTM[7:0]: output (byte) is fed to Data_to_MCU(7:0) input bus
0x0005
Reads data byte from
MCU (mSPI_REG5)
(read only)
Reserved
DFM[7:0]: data (byte) received from bus Data_from_MCU(7:0)
0x0006
Controls SPI switch
(mSPI_REG6)
Reserved
SPISW_CTRL: controls the SPI switch
0 – Transceiver is controlled by Base Band (default)
1 – Transceiver is controlled by MCU