This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F280025C: 关于PMBus

Part Number: TMS320F280025C
Other Parts Discussed in Thread: C2000WARE

我从贵司网站下载的C2000Ware_3_04_00_00的软件包。我们目前要使用PMBUS通讯,

因此着重看代码: C:\ti\c2000\C2000Ware_3_04_00_00\libraries\communications\PMBus\c28\examples\28002x_pmbus_slave

这个例程有一个如下的结构体:

typedef struct

{

    uint32_t moduleBase;               //!< Base address of the PMBus module

    uint32_t moduleStatus;              //!< Status register of the PMBus module

    PMBus_StackMode mode;            //!< PMBus mode of operation

    uint16_t slaveAddress;               //!< Slave address for the PMBus module

    uint16_t slaveAddressMask;           //!< Slave address mask for PMBus module

    PMBus_StackState currentState;        //!< Current state of the state machine

    PMBus_StackState nextState;          //!< next state of the state machine

    uint16_t *bufferPointer;              //!< pointer to a buffer of length >= 4

    uint16_t *currentBufferPointer;        //!< Current position in the buffer

    uint16_t numOfBytes;                //!< Number of bytes sent/received

    bool PECValidity;                    //!< Valid PEC received or sent

    PMBus_Transaction transaction;        //!< Current Transaction type

 

    //! Handler for each transaction

    transactionHandler transactionHandle[NTRANSACTIONS];

} PMBus_StackObject;

使用时发现不知道哪个变量是我们要发送或接收的数据DATA,

就是说寄存器PMBTXBUF, PMBRXBUF分别对应上述结构体中的哪两个变量。

我们使用这种通信时,如何实现每1S发出一次数据的操作。

请给出具体的步骤,谢谢!

x 出现错误。请重试或与管理员联系。