ZHCUCK8C December 2022 – May 2024 ULC1001
德州儀器 (TI) 創建了兩個附加模式來調節傳送到 LCS 的功率,識別 LCS 的故障,以及檢查輸出端是否存在開路負載情況。有關診斷模式的更多詳細信息,請參閱節 4.5。假設用戶已經運行校準模式并更新了相應的設置,則可以通過點擊“Power and Diagnostics”概述頁面中模式配置矩陣旁邊的 Run/Play 按鈕來運行診斷模式。為方便起見,Run/Play 按鈕會自動將器件置于 Active Mode,并在運行該模式之前發送 Reinit System 命令。該器件在診斷模式后返回到 Software Shutdown Mode。TI 強烈建議每系列診斷模式的 Amp (puV) 設置與運行校準模式時使用的 Amp (puV) 設置相等。
運行校準模式的寄存器序列如表 5-18 所示。
| 寄存器 | 讀取/寫入 | 數據 | 說明 |
|---|---|---|---|
| 00 | W | 00 | 更改為 Page 0 |
| 7F | W | 00 | 更改為 Book 0 |
| 02 | W | 00 | 將器件置于工作模式 |
| 不適用 | 不適用 | 不適用 | 等待 5ms |
| 00 | W | 1A | 更改為 page 0x1A |
| 58 | W | 0000000X | 在 UserCommand 寄存器中設置診斷模式命令 |
| 5C | W | 00000001 | 通知器件待執行新命令。 |
| 不適用 | 不適用 | 不適用 | 一直等到上面的寄存器 0x5C = 0。等待時間取決于診斷模式的設置。 |
| 00 | W | 00 | 更改為 page 0 |
| 02 | W | 02 | 將器件置于軟件關斷模式 |
在 GUI 中,可在 Python 窗口中使用以下腳本,以運行清洗模式。清洗模式為 0x8 = 電源模式,0x9 = 系統故障模式
GUI_Module=__import__('ULC1001')
import time
GUI=GUI_Module.Device_GUI("ULC1001.exe",6640.000000)
GUI.write_register("ULC1001","PWR_CTL",0x0) # put device in active mode
# Set Diagnostic Command (0x8-0x9)
GUI.write_register("USER_Commands","USER_Commands_userCommand",0xX) # set Diagnostic Command
GUI.write_register("USER_Commands","USER_Commands_flag_newCommand",0x1) # sets lock bit
time.sleep(x) # set appropriate wait time
GUI.write_register("ULC1001","PWR_CTL",0x02) # returns device to Software Shutdown