element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Common Crystal Oscillator
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 1 reply
  • Subscribers 391 subscribers
  • Views 306 views
  • Users 0 members are here
  • crystal
  • oscillators
  • microcontrollers
Related

Common Crystal Oscillator

rishi2628
rishi2628 over 10 years ago

Can two atmega328 microcontrollers have a common crystal oscillator as shown?. Will they work perfectly or is there any possibility for short circuit or the microcontroller to get damaged or destroyed? ?

Attachments:
image
  • Sign in to reply
  • Cancel

Top Replies

  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago +1
    You can share a common clock between two ATMEGA328s but it is not the way you draw it If you are talking about having a single Xtal then you would connect this to the XTAL1 and XTAL2 pins of one MEGA328…
Parents
  • Robert Peter Oakes
    0 Robert Peter Oakes over 10 years ago

    You can share a common clock between two ATMEGA328s but it is not the way you draw it

     

    If you are talking about having a single Xtal then you would connect this to the XTAL1 and XTAL2 pins of one MEGA328, and wire the Xtal2 (Output) from the one with the xtal to the Xtal1 (Input) of the other 328.. DONE image

     

    to quote the 328  PDF section 9.4

     

    9.4 Full Swing Crystal Oscillator

    Pins XTAL1 and XTAL2 are input and output, respectively, of an inverting amplifier which can be configured for use

    as an On-chip Oscillator, as shown in Figure 9-2 on page 28. Either a quartz crystal or a ceramic resonator may be

    used.

    This Crystal Oscillator is a full swing oscillator, with rail-to-rail swing on the XTAL2 output. This is useful for driving

    other clock inputs and in noisy environments. The current consumption is higher than the ”Low Power Crystal

    Oscillator” on page 28. Note that the Full Swing Crystal Oscillator will only operate for VCC = 2.7 - 5.5 volts.

    C1 and C2 should always be equal for both crystals and resonators. The optimal value of the capacitors depends

    on the crystal or resonator in use, the amount of stray capacitance, and the electromagnetic noise of the environment.

    Some initial guidelines for choosing capacitors for use with crystals are given in Table 9-6 on page 30. For

    ceramic resonators, the capacitor values given by the manufacturer should be used.

     

     

    The operating mode is selected by the fuses CKSEL3...1 as shown in Table 9-5.

    Notes: 1. If the cryatal frequency exceeds the specification of the device (depends on VCC), the CKDIV8 Fuse can be programmed

    in order to divide the internal frequency by 8. It must be ensured that the resulting divided clock meets

    the frequency specification of the device.

     

    Notes:

    1. These options should only be used when not operating close to the maximum frequency of the device, and only if

    frequency stability at start-up is not important for the application. These options are not suitable for crystals.

    2. These options are intended for use with ceramic resonators and will ensure frequency stability at start-up. They can

    also be used with crystals when not operating close to the maximum frequency of the device, and if frequency stability

    at start-up is not important for the application.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Robert Peter Oakes
    0 Robert Peter Oakes over 10 years ago

    You can share a common clock between two ATMEGA328s but it is not the way you draw it

     

    If you are talking about having a single Xtal then you would connect this to the XTAL1 and XTAL2 pins of one MEGA328, and wire the Xtal2 (Output) from the one with the xtal to the Xtal1 (Input) of the other 328.. DONE image

     

    to quote the 328  PDF section 9.4

     

    9.4 Full Swing Crystal Oscillator

    Pins XTAL1 and XTAL2 are input and output, respectively, of an inverting amplifier which can be configured for use

    as an On-chip Oscillator, as shown in Figure 9-2 on page 28. Either a quartz crystal or a ceramic resonator may be

    used.

    This Crystal Oscillator is a full swing oscillator, with rail-to-rail swing on the XTAL2 output. This is useful for driving

    other clock inputs and in noisy environments. The current consumption is higher than the ”Low Power Crystal

    Oscillator” on page 28. Note that the Full Swing Crystal Oscillator will only operate for VCC = 2.7 - 5.5 volts.

    C1 and C2 should always be equal for both crystals and resonators. The optimal value of the capacitors depends

    on the crystal or resonator in use, the amount of stray capacitance, and the electromagnetic noise of the environment.

    Some initial guidelines for choosing capacitors for use with crystals are given in Table 9-6 on page 30. For

    ceramic resonators, the capacitor values given by the manufacturer should be used.

     

     

    The operating mode is selected by the fuses CKSEL3...1 as shown in Table 9-5.

    Notes: 1. If the cryatal frequency exceeds the specification of the device (depends on VCC), the CKDIV8 Fuse can be programmed

    in order to divide the internal frequency by 8. It must be ensured that the resulting divided clock meets

    the frequency specification of the device.

     

    Notes:

    1. These options should only be used when not operating close to the maximum frequency of the device, and only if

    frequency stability at start-up is not important for the application. These options are not suitable for crystals.

    2. These options are intended for use with ceramic resonators and will ensure frequency stability at start-up. They can

    also be used with crystals when not operating close to the maximum frequency of the device, and if frequency stability

    at start-up is not important for the application.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube