SPRUHZ7K August 2015 – April 2024 AM5706 , AM5708 , AM5716 , AM5718 , AM5718-HIREL
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 |