Every tutorial I've found on the internet connects the oscillator in and the oscillator out with a resistor. What can these ports be used for?

  • \$\begingroup\$ Welcome to EE.SE! If you have a question about a specific part, you need to provide a link to a datasheet or other information so that people who want to answer have some clue what you're talking about. Remember, you're asking them for a favor, so make it easy for them! \$\endgroup\$ – Dave Tweed Mar 9 '14 at 14:14
  • 1
    \$\begingroup\$ They just set the frequency of the internal oscillator that's used to modulate / decode the signal. Your question is unclear as to whether you don't know why an oscillator is required or if the pins can be used for something else. \$\endgroup\$ – PeterJ Mar 9 '14 at 14:15
  • \$\begingroup\$ @PeterJ Thank you for a good answer. I'm completely new to electronics.. \$\endgroup\$ – Friend of Kim Mar 9 '14 at 14:22
  • \$\begingroup\$ @FriendofKim, for your question below about transmitting wirelessly you probably want to check out things like this and you should be able to Google how to use them: sparkfun.com/search/results?term=315mhz \$\endgroup\$ – PeterJ Mar 9 '14 at 14:33

There is an internal RC oscillator (the capacitor is inside, and connected to OSC1). The external resistor forms part of the oscillator.

see the datasheet: http://www.holtek.com/pdf/consumer/2_12ev120.pdf Page 9 gives the oscillator frequency vs. the resistor value.

enter image description here

  • \$\begingroup\$ I'm completely new to electronics. I'm currently reading Practical Electronics for Inventors Third Edition because I want to make some circuits in my spare time. So thank you for your reply! \$\endgroup\$ – Friend of Kim Mar 9 '14 at 14:15
  • \$\begingroup\$ Can this oscillated signal be amplified and connected to an antenna? Is it AM in that case? \$\endgroup\$ – Friend of Kim Mar 9 '14 at 14:16
  • \$\begingroup\$ No, that isn't something it would make sense to do. \$\endgroup\$ – Spehro Pefhany Mar 9 '14 at 14:20
  • \$\begingroup\$ Do you choose the resistance to set the output frequency on the DOUT port? \$\endgroup\$ – Friend of Kim Mar 9 '14 at 14:24
  • \$\begingroup\$ The oscillator frequency sets the timing, as shown in the datasheet. Four clock cycles per bit. \$\endgroup\$ – Spehro Pefhany Mar 9 '14 at 15:35

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