EmbDev.net

Forum: µC & Digital Electronics MCP7940N: MFP frequency out and calibratio


von Hartl192 (Guest)


Rate this post
useful
not useful
I'm not sure how the MFP pin works if I set the SQWE to '1' and the RS2 
bit to '1'.
Which output frequencies can I select with <RS1:RS0>? Is the frequency 
64Hz regardless of what I do with R0 and R1?
My aim is to calibrate the oscillator. I made myself a counter with a 
GPS modem as reference and a gating time of 60 seconds.
Is it possible to output the 32.768Hz (RS<2:0> = 011) signal and count 
the pulses for 60s and then calculate the calibration factor? After 
writing the calibration factor in the calibration register I'll output a 
calibrated wave by setting RS2 to '1' and measure if the calibration is 
ok.
Is this a good way to do the calibration? Or can you recommend me 
another way? My best device to measure time/frequency is the 
GPS-frequency counter.

Thank you in advance for your help.

http://ww1.microchip.com/downloads/en/DeviceDoc/25010E.pdf

von Hartl192 (Guest)


Rate this post
useful
not useful
I measured the frequency of the MPF output and it is 32767.166666Hz and 
this produces an error of about 2 second every day. Now I want to use 
the calibration function but I’m not sure if calculated the calibration 
factor right.

I measured 1966030 pulses in one minute, but it should be 
60*2^15=1966080.

1966080-1966030=50, so I have to add 50 pulse per minute. Does it means 
that I have to write 25 (0b00011001) in the calibration register?

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.