Other Parts Discussed in Thread: DAC8740H
Hi, I got the master microcontroller successfully writing data into the Modem FIFO_D2M buffer through SPI protocol. However, I weren’t able to put the data in the FIFO register onto the HART bus to send data to a slave device (that talks HART).
In fact, the CD bit on the MODEM_STATUS register is never set to high. Is CD bit automatically triggered when you connect a device? Or do I need to set some other registers in order for the HART modem to detect a slave device?
Any advice on how I should proceed to resolve this bug? Feel free to let me know if my programming logic is correct and how I can correct it. Or if there is any advice on how to debug the hardware is helpful, too
On what I have written in the code to configure/set registers:
- FIFO_LEVEL_SET register: set M2D modulator FIFO alarm threshold = 16, set D2M demodulator FIFO alarm threshold = 10.
- MODEM_IRQ_Mask register: blocked parity, all 6 fifo, CD, CTS events.
- FIFO_D2M/FIFO_M2D registers: parity bit set to 1 (for 8 bit data), and FIFO_D2M register populated with data I want to send to the slave device
- MODEM_CONTROL register: RTS set to 1 and CTS is also set to 1.
- MODEM_STATUS register: observe that CD bit is never high.




