TMS570_BMS demo 中emb428.c中
WriteReg(nDev_ID, 121, 0x01, 1, FRMWRT_SGL_NR); // set GPIO initial outputs
WriteReg(nDev_ID, 122, 0x00, 1, FRMWRT_SGL_NR); // set GPIO pull up
WriteReg(nDev_ID, 123, 0x00, 1, FRMWRT_SGL_NR); // set GPIO pull down
WriteReg(nDev_ID, 120, 0x0C, 1, FRMWRT_SGL_NR); // set GPIO direction
120,121,122,123均未找到对应寄存器?是属于TMS570ls0432的寄存器还是属于1402EVM的寄存器?
Star Xu:
应该是EMB1402EVM的寄存器,您看一下bq76pl455a-q1的数据手册。
www.ti.com.cn/…/bq76pl455a-q1.pdf