Hi,
I was going through the register address calculation for Clock Control Module and I had a query in the address calculation. In datasheet on pg no. 1011 in section 5.1.7.6 the address calculation mentions the letter i. Can you please let me know, from where can we derive the value of i? See below attached image with the query section highlighted for your reference.
Regards,
Sahil Nayak
Hello Igor,
You have assumed the value of i=0 & calculated the address value. Can you please tell me how can we assume the value of i?? As value of i is variable, on what factors does the value of i depend?
Regards,
Sahil Nayak
Hello Igor,
As you mentioned from table 5-9 I got the value of offset which is already mentioned in attached image.
In that image third field (16d x i) Where i = 0d to 190 d which is highlighted requires value of i. So, from where can I get the value of i to calculate complete address?
Regards,
Sahil Nayak
3038_0000h base + 4000h offset + (16d x i), where i=0d to 191d
for example i=0:
CCM_CCGR0 Address= 3038_0000h base + 4000h offset + (16d x 0)=3038_4000h
Best regards
igor
Hi Igor,
Any update on this?
Hi Sahil
in another words register address calculation is performed as Base+ 0x10*i, better description
can be found in Table 5-9. CCGR Mapping Table i.MX8MQ Reference Manual.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------