0. 前言
主要描述infinon XDFE1x2xx 编程指南。
1. 硬件设置与连接
为了与控制器通信,必须正确连接多个I/O引脚。
如果在系统板上对控制器进行编程,则在编程期间没有必要禁用电压调节器。编程过程将绕过操作寄存器,直接写入非易失性存储器,而不中断操作。编程完成后,新的设置需要经过3.3V的电源周期或通过NVM下载命令才能生效。
2. 与XDFE1x2xx通信
2.1 基本PMBus协议
为了对设备进行编程,需要使用3种特性的协议:WRITE_BYTE、BLOCK_WRITE、BLOCK_READ。PEC可用于增加通信可靠性。要成功地对设备进行编程,需要这些命令的组合,因为数据要通过I/O缓冲区进行通信。
2.1.1 SMBus SEND_BYTE protocol
SEND_BYTE(PMB_Addr, DataByte)
7 | 1 | 1 | 8 | 1 | ||
---|---|---|---|---|---|---|
S | Address | Wr | A | Date Byte | A | P |
2.1.2 SMBus READ_BYTE protocol
READ_BYTE(PMB_Addr, DataByte)
7 | 1 | 1 | 8 | 1 | 7 | 1 | 1 | 8 | 1 | |||
---|---|---|---|---|---|---|---|---|---|---|---|---|
S | Address | Wr | A | Command Code | A | Sr | Address | Rd | A | Data Byte | N | P |
2.1.3 SMBus WRITE_BYTE protocol
WRITE_BYTE(PMB_Addr, CommandCode, DataByte)
7 | 1 | 1 | 8 | 1 | 8 | 1 | ||
---|---|---|---|---|---|---|---|---|
S | Address | Wr | A | Command Code | A | Date Byte | A | P |
2.1.4 SMBus BLOCK_WRITE protocol
BLOCK_WRITE(PMB_Addr, CommandCode, N, DataByte1…DataByteN)
7 | 1 | 1 | 8 | 1 | 8 | 1 | 8 | 1 | 8 | 1 | 8 | 1 | |||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
S | Address | Wr | A | Command Code | A | Byte Count = N | A | Date Byte 1 | A | Data Byte 2 | A | … | Data Byte N | A | P |
2.1.5 SMBus BLOCK_READ protocol
BLOCK_READ(PMB_Addr, CommandCode, N, DataByte1…DataByteN)
7 | 1 | 1 | 8 | 1 | 7 | 1 | 1 | 8 | 1 | 8 | 1 | 8 | 1 | 8 | 1 | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
S | Address | Wr | A | Command Code | A | Sr | Address | Rd | A | Byte Count = N | A | Date Byte 1 | A | Data Byte 2 | A | … | Data Byte N | N | P |
2.2 设备地址
在XDPE控制器上电期间,连接到Xaddr引脚的R_addr电阻器的主要作用是确定器件的PMBus地址。
可以将多个配置文件编程到XDPE控制器种,这样控制器将根据XValent电阻器值自动下载所需的配置文件。
控制器将XV电阻值编码为0~15。
将数据存储到OTP时,必须确定XVcode,以便控制器可以在随后的电源周期中下载正确的值。
注:PMBus地址可以被配置文件覆盖。
2.3 MFR专用寄存器读写
使用BLOCK_READ和BLOCK_WRITE协议来读取和写入非标准PMBus控制器。每个非标准PMBus寄存器分配一个32位寄存器地址,要访问他们, 需要首先将寄存器地址写入带有BLOCK_WRITE协议的寄存器地址指针,然后可以使用MFR_REG_WRITE命令使用BLOCK_WRITE协议将数据写入寄存器,或使用MFR_REG_READ命令使用BLOCK_READ协议从