SN8P275X Series
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 120
Version 0.7
This bit holds the R/W bit information following the last address match. This bit is only valid from the address
match to the next start bit, stop bit, or not ACK bit.
In slave mode:
0 = Write.
1 = Read.
In master mode:
0 = Transmit is not in progress.
1 = Transmit is in progress.
Or this bit with SEN, RSEN, PEN, RCEN, or ACKEN will indicate if the MSP is in IDLE mode.
Bit 0
BF:
Buffer Full Status bit
Receive
1 = Receive complete, MSPBUF is full.
0 = Receive not complete, MSPBUF is empty.
Transmit
1 = Data Transmit in progress (does not include the ACK and stop bits), MSPBUF is full.
0 = Data Transmit complete (does not include the ACK and stop bits), MSPBUF is empty.
10.3 MSP MODE REGISTER 1
MSPM1 initial value = 0000 00X0
091H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
MSPM1
WCOL MSPOV
MSPENB
CKP SLRXCKP
MSPWK
-
MSPC
Read/Write R/W R/W R/W R/W R/W R/W - R/W
After
reset
0 0 0 0 0 0 - 0
Bit 7
WCOL:
Write Collision Detect bit
Master Mode:
0 = No collision
1 = A write to the SSPBUF register was attempted while the MSP conditions were not valid for a
transmission to be started
Slave Mode:
0 = No collision
1 = The SSPBUF register is written while it is still transmitting the previous word (must be cleared in
software)
Bit 6
PMSPOV:
Receive Overflow Indicator bit
0 = No overflow.
1 = A byte is received while the SSPBUF register is still holding the previous byte. SSPOV is a “don’t care”
in transmit mode. SSPOV must be cleared in software in either mode. (must be cleared in software)
Bit 5
MSPENB:
MSP Communication Enable.
0 = Disables serial port and configures these pins as I/O port pins
1 = Enables serial port and configures SCL, SDA as the source of the serial port pins
Note1. After MSP Disable or Enable,must delay 2 instruction cycle.
Ex: b0bset FMSPENB
NOP
NOP
....
Ex:b0bclr FMSPENB
NOP
NOP
….
Note2.MSP status register will be clear after MSP Disable. So,user should setting MSP register again
befort MSP Enable.
Ex:Call MSP_init_setting
B0bset FMSPENB
NOP