Skip to content

Crystal Oscillator on Uno R4? #6

@dewhisna

Description

@dewhisna

How are you guys getting away with using what appears to be a standard AT-cut crystal with the ATmega328PB on the Uno R4 board? Did you build those prior to the Microchip's change to get rid of the full-swing oscillator support? (https://hackaday.com/2016/05/03/atmel-removes-full-swing-crystal-oscillator/)

I've had trouble getting the new ATmega328PB to drive an AT-cut crystal -- the oscillator won't quite start, even after changing the loading caps to help it. In fact, there's a bug in the ATmega328PB itself that if the oscillator won't quite start and you switch the fuses to the external oscillator mode and then try to program the flash over ISP via the SPI pins to put a bootloader in the chip or something, it gets into a mode where it seems to switch back and forth between the internal oscillator and the external one that's still trying to start and it will mistime the flash write cycles and destroy the cells in the flash memory. I gave up on trying to use an AT-cut crystal after destroying several ATmega328PB chips that way.

You can use a ceramic resonator or a stand-alone oscillator module OK with it, though those are considerably more expensive than an AT-cut crystal. But the AT-cut crystal itself takes too much power to get them started oscillating and the ATmega328 processors will no longer drive them. The only way I know to use them is to have an external driver circuit with an inverter of your own that is full-swing and feed it in like a stand-alone oscillator input to the ATmega328PB, but that sort of defeats the point in part minimization.

I didn't see such an external driver circuit on your board and it at least looks like an AT-cut crystal on there, so I was wondering how you managed to make it drive it or if you were just using some of the early release ATmega328PB parts that still supported full-swing oscillator -- or using their special order version that they can provide that still has the full-swing oscillator (a nonstandard version of the chip that's special order at a premium cost)??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions