Hi Team,
Here's an issue from the customer may need your help:
I use the input capture function of the CCP pin to capture the rising edge of the 50Hz signal, and calculate the signal period based on the time difference between the two captures.
If EPI is not used to expand the SDRAM, the calculation accuracy can meet the 0.002Hz accuracy requirement. After the SDRAM is expanded, the frequency will jump because the instantaneous value of the analog quantity will be stored in the SDRAM, with a frequency of 50*16 or 50*64Hz.
It is speculated that the bus is occupied when reading and writing SDRAM or SDRAM refresh, or the interrupt is temporarily turned off, causing the input capture time of the CCP pin to be inaccurate, causing the final calculated signal period to be inaccurate and causing transitions.
--
Thanks & Regards