SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
Step | Register/Bit Field/Programming Model | Value |
---|---|---|
Reset HDQ1W module. | See Section 24.2.5.1.2. | |
Select 1-Wire mode. | HDQ_CTRL_STATUS[0] MODE | 0x1 |
Enable interrupt generation. | HDQ_CTRL_STATUS[6] INTERRUPTMASK | 0x1 |
Initialize 1-Wire slave, check for slave presence. | See Section 24.2.5.3.3. |
Step | Register/Bit Field/ Programming Model | Value |
---|---|---|
Write ID/command or data value. | HDQ_TX_DATA[7:0] | 0x- |
Select write operation. | HDQ_CTRL_STATUS[1] DIR | 0x0 |
Start operation. | HDQ_CTRL_STATUS[4] GO | 0x1 |
Wait for interrupt. | ||
Reading HDQ_INT_STATUS clears interrupt conditions. | HDQ_INT_STATUS[2] TXCOMPLETE | 0x1 |