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: Starterware
Hi, sir
I set MCLK to 12MHz from DCO . From FRAM Part of msp430fr6972's user guide ,I knew "The system clock for the CPU or DMA can exceed the FRAM access and cycle time requirements. For these scenarios, a wait state generator mechanism is implemented. The Recommended Operating Conditions of the device-specific data sheet list the frequency ranges with the required wait state settings. " The Recommend Operating Conditions is following:
I confused the "NWAITSx" means. Do it represent the every bit of NWAITS[2:0], or not ? What should be set in NWAITS[2:0], if MCLK is 12MHz?
Another question , From msp430fr6072's device-specific data sheet ,the Supply Current is showed at different frequency of MCLK . I want to kow the speed of operation at different frequency of MCLK.
Cloud I understand that the speed of 16MHz MCLK is 16 times the speed of 1MHz MCLK ? So, 1MHz 's current consumption is assumed to be 210 uA, 16MHz‘s current consumption is assumed to be 1845 uA. Executing the same codes , 1MHz's time consumption is 16 times 16MHz. The 1MHz's current consumption is 210uA * 16 , and 16MHz's current consumption is 1845uA*1. Therefore, 1MHz's current consumption is large than 16MHz , when they execute same codes. Is it right ?
Best regards
Jent
Jent,
answer to question #1:
- NWAITSx=1 means 1 wait state mean you have write 0x0010 to FRCTL0 to set NWAITS[2:0] b'001.
answer to question #2:
- yes at 16 MHz the DCO is running 16 times faster than at 1 MHz
- regarding the time consumption you have to be carefully because wait states activated at 16 MHz vs. 1 MHz
- as you can see in the table the current at 1 MHz cannot be simply multiplied by 16 for 16 MHz operation otherwise the current would be 3360 uA.
- so yes relatively you consume less power per instruction when executing at 16 MHz
Hello Dietmar,
Thank you very much for your help .
So, Should I set NWAITS[2:0]b'001 , if the frequence of MCLK is large than 8MHz ?
About the time consumption , I should calculate the effective MCLK frequency: fMCLK,eff = fMCLK / [wait states × (1 - cache hit ratio) + 1] . For exmaple , the cache hit ratio is 75%,MCLK is 16MHz ,the fMCLK,eff = 16 / [1 × (1 - 0.75) + 1] = 12.8MHz. Hence, The time comsumption of 1MHz is 12.8 times 16MHz . Is it right ? In actual operation , what is the cahe hit ratio ? Is the cahe hit ratio related to MCLK frenquency?
Best regards,
Jent
**Attention** This is a public forum