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.

EM1402EVM

程序验证正确,pl455 UART通讯正常,能够根据指令返回正确长度的响应,但采集电压返回数据均为0;

推测原因:

有一条指令错误写入了寄存器1

nSent=WriteReg(0,0x01,0x000300E0,4,FAMWRT_ALL_NR)

寄存器1存放的是版本号,没有说明写寄存器1是什么效果

  • I recommend reading through the software design reference document and checking out the example code. Look in sys_main.c and PL455.C. This will be very helpful. The software design reference can be found here:www.ti.com/.../technicaldocuments
    and goes through the sys_main.c file almost line by line.

    To read back a register, you must give it some place to store the data coming in from the UART peripheral. Our example code uses an array of bytes, denoted bFrame.