MCP7940N: MFP frequency out and calibratio

Guest #3431212
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
Guest #3446188
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?

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.