0
\$\begingroup\$

I'm kinda new to this so the name is based on Digikey. I have a PIC24FV32KA304 and I want to put an external oscillator of 32mhz. I found out that an oscillator like this one is a bit cheaper than say, like this one.

This is the configuration I thought using a crystal : enter image description here

My question is, if I want to use an oscillator rather than a crystal, how do I connect the output of it to pins 30 and 31 ?

\$\endgroup\$
  • 1
    \$\begingroup\$ Just as a note: the oscillator takes a lot of current (20-45mA), if you connect a crystal it will likely be a lot less (drive level is max 100 µW). That might be important for some applications. \$\endgroup\$ – Arsenal Oct 3 '15 at 20:01
2
\$\begingroup\$

It connects to CLKI (the "I" is for "In") and you configure the device to use an external clock source instead of a crystal.

\$\endgroup\$
  • \$\begingroup\$ I suppose I can configure the other pin as an I/O ? \$\endgroup\$ – GmodCake Oct 3 '15 at 19:53
  • \$\begingroup\$ You should be able to. Unless you want to cascade the clock to another device. \$\endgroup\$ – Ignacio Vazquez-Abrams Oct 3 '15 at 19:53
  • \$\begingroup\$ @GmodCake you want to have a look at the errata, I've encountered quite a few devices where it wouldn't work correctly as GPIO if the other pin is used as clock in. \$\endgroup\$ – Arsenal Oct 3 '15 at 19:57
  • \$\begingroup\$ @Arsenal I'll take note of that, but I think I will leave it unconnected anyway \$\endgroup\$ – GmodCake Oct 3 '15 at 19:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.