Hello Fabio,
"When you say: "The value of ICGFLT Filter is varying from part to part", you mean that when you set the ICG to FEI mode, the ICGFLT register is being set (by hardware) with different values (for the same MFD factor), from one device to another? "
Yes you got it right.By going to FEI mode, I read the contents of ICGFLT register so that I can use this in startup code.But this value is changing from one MCU to another MCU unit (All AW32 MCUs)
"I did not understand why you trying to rise the SCM speed in early initialization. Could you explain us what are your needs?"
I'm trying this because if there comes a situation(sometimes it happens in the lifetime of a product) where during the normal operations, the FEI FLL loses lock then DCO output is open looped and (as a fail safe method ) it has to be close to my normal 8MHz Bus CLK. Reason for going this fail safe method is LIN commn protocol fails if its away from 9600 baud +/-2% (clock for LIN is derived from Bus Clk)
I can go for LOSS OF CLOCK reset feature.But if I see from the product/system point of view, also End user point of view I shouldnot (or should avoid) resets(sudden abrupt in normal working of the product)
"On the next initialization, the init procedure will find these values in FLASH and configure the ICGFLT accordingly. This way, only the first init will leave the ICG at 4MHz, all others will work at 8MHz (or whatever speed you choose). Just remember that while the ICGIRCLK is untrimmed, it can lead the ICGOUT to be out of specs!
"
I was thinking of doing this.Read from flash and load in filter register in the assembly startup.
Yes you are right. My ICG internal oscillator has a trimming routine and I saw the perfect busclock of 8MHz(through MCLK pin=busclk/2).
But with the FLT values I get in FEI mode, I store into Filter Registers in SCM mode(to check whether this is working I purposefully stay in SCM mode (doesnot enter FEI mode)) I get around 8.5MHz which is unacceptable for LIN protocol.
Regards,
Denn.