Tool/software:
Hello Guru,
I'd like to check I2C status. So, I referred TRM.
Declare variables as global variable and access the structure.
But it doesn't work.
Do you know how to access TREQ, RREQ(in SSR)? or another way to check Rx, Tx request?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hello Guru,
I'd like to check I2C status. So, I referred TRM.
Declare variables as global variable and access the structure.
But it doesn't work.
Do you know how to access TREQ, RREQ(in SSR)? or another way to check Rx, Tx request?
As you know, Master sends Read/Write command to slave.
Is it possible check the command through TREQ, RREQ?
I think RXMODE, TXMODE similar with TREQ, RREQ. But I'd like to check the command thru TREQ, RREQ
I just want to know master's command(Read/Write) with slave device
I think RXMODE/TXMODE is suitable function for me.
In I2C start interrupt, this start condition is triggered after address matched.
So there still some time to complete the 8th bit received (Read/Write command bit)
Please add some delay to read this register.
Or you can start a timer counter and using timer interrupt to read this TREQ/RREQ.
This delay time depending on I2C speed and MSPM0 interrupt enter/exit time.
You can set a GPIO in I2C start interrupt to calculate the delay time in free run debug mode.