AN126 - r3.0 - MP2940A Programming Guide
AN126 - r3.0 - MP2940A Programming Guide
Product Description
Description Continued
The Future of Analog IC Technology
Application Note
ABSTRACT
This document tells user how to load the MP2940A configuration file and save it into the MTP in
DOS/WINDOWS environment.
CONDITION
Connect VDD33 pin to 3.3V power supply;
Pull PE pin high;
Pull EN pin low.
It’s not suggested to load configuration file when EN pin is high.
Device Command
Command name Byte W/R Register value
Address code
MP2940A has a password check mechanism to prohibit terminal user invade the configuration data. So
before loading configure file, please make sure password is right. You should read MFR_INPUT_
PASSWORD (0x51), and judge whether present system password(0x50) is correct before the below
operation.
Storing all the registers to MTP or restoring from MTP can be done both in page0 and page1, i.e.
sending 0x15 and 0x16 will make effect in any page.
Before the regular configure process, it should be checked that if the PMBus address and the Configure
ID in the configure file match with the MP2940A chip.
After the regular configuration process, it is required to read STATUS_CML (0x7E) to check if the writing
process is totally correct. Bit 4 and Bit 0 of 0x7E should be both zero after restoring from MTP, or it
means storing or restoring MTP is not successful. If PMBUS transmission without PEC, it’s also needed
to read back from MTP and compare register values with the configure file. Table 2 shows the bit
definition.
Yes
Yes
No No
4‐digit code does not match, code rev does not match,
need MTP re‐program need MTP re‐program
All Match ?
If retry 1 time fail, check the process,
maybe the programming wrong or read No
wrong data Yes
Successful
programming, proceed
to system start‐up
(End step)
Figure 1: PMBUS register writing sequence
PMBUS PROTOCOL
MP2940A’s PMBUS SCL, SDA and ALT# pin need external pull-up to 3.3V. Figure 2 shows an example
implementation of PMBUS devices connecting on the bus. When the bus is idle, the voltage of the bus is
3.3V. When each device on the bus wants to talk, it will pull the bus low. Only the Master has the ability
to drive the SCL bus.
ACKNOWLEDGE BIT
Every byte consists of 8 bits. Each byte transferred on the bus must be followed by an acknowledge bit.
The acknowledge-related clock pulse is generated by the master. The slave device must always
acknowledge (ACK) when the address is targeted or receiving the valid command or address. In order to
acknowledge a byte, the slave must pull the SDA line low during the clock pulse. If the slave should not
acknowledge, it should not do anything during the clock pulse. The default state of SDA line is high
during this period.
data output
by master
MSB
NACK
data output
by slave ACK
scl S 1 2 7 8 9
Clock pulse
start For acknowledgement
TRANSMISSION STRUCTURE
MP2940A accommodate any mixture of devices that support Packet Error Checking and devices that do
not. The PEC uses an 8-bit cyclic redundancy check (CRC-8,g=8'h07) of each read or write bus
transaction to calculate a Packet Error Code (PEC). A NACK received after a PEC by a
master-transmitter indicates that the slave-receiver became aware of an error with the transmission in
time to supply a NACK at the end of the PEC byte. This may be due to an incorrect PEC or any other
error. So MP2940A supports 10 kinds of the transmission structure.
1) Send command only;
2) Write byte;
3) Write word;
4) Read byte;
5) Read word;
6) Send command only with PEC;
7) Write byte with PEC;
8) Write word with PEC;
9) Read byte with PEC;
AN126 Rev. 3.0 www.MonolithicPower.com 8
4/11/2018 MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.