How to get 12mhz

Go To Last Post
14 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello.

I need 12mhz crystal to run an avr-progammer working with an atmega.

But i have not it.

I got a lot of crystals but none about 12mhz and multiple(2mhz or more).

Do somebody get a tips to making my 12mhz vibe.

Thanks

computer : GNU Linux / e6750
ship : Attiny 2313 / ATmega8
compiler : avr-gcc 1:4.3.2-1

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Buy one?

You presumably mean 12 MHz, 12 mhz crystals are rather rare.

Leon Heller G1HSM

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Just connect six 2-MHz crystals in series and you're done. Since this configuration is not listed in AVR CKSEL settings, you have to use a non-documented CKSEL value of 2222.

Warning: Grumpy Old Chuff. Reading this post may severely damage your mental health.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

12Mhz is standard , I have plenty.100s in fact. pm me and I can sort you out for a few pennies postage.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Digikey lists 388 different 12MHz crystals. Unless, of course, you really meant 12mHz.

The largest known prime number: 282589933-1

It's easy to stop breaking the 10th commandment! Break the 8th instead. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What value xtals do you have? What AVR do you have? 16MHz AVR will run with 18.432 xtal, for example. If you just have any old xtal, divide by 16 and by baud rate, see if it comes within 2% of an even baud rate like 38400.

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I would guess that you want 12MHz for a V-USB application.

The current release of V-USB allows several different clock frequencies. I have often used 16MHz crystals.
Simply upload the current V-USB. Make a new project directory, and copy your application files over. Voila. Your app will work with any supported clock.

Mind you. It is simplest to just get a 12MHz crystal in the mail.

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok everybody
thanks for the last answers, more interessant than precedents jokes.

I'm studying this for 2 reasons :
-no electronic shop in my region
-no a lot of money to spend on my hobby in this moment and tired off order anything because i got a lot of components and i can find a lot of them in the bin...And i thinks i love the english word "hacking".

And the challenge too!

computer : GNU Linux / e6750
ship : Attiny 2313 / ATmega8
compiler : avr-gcc 1:4.3.2-1

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

PS it's for V-usb, well done david :)
Where are you chartman?

computer : GNU Linux / e6750
ship : Attiny 2313 / ATmega8
compiler : avr-gcc 1:4.3.2-1

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

@zettaman- I'm in the UK. I already guessed it's for VUsb...and yes, 12M is the simplest, I have made several, used as an onboard programmer for a tiny2313.
Check your private messages...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

zettaman wrote:

-no electronic shop in my region
-no a lot of money to spend on my hobby
Some cities are fortunate to have guilds of hobbyists/students/tinkerers/etc. focused on electronics, software, mechatronics, whatever.
IIRC, one was by a membership fee, in part of a warehouse, controlled access; vote on tools, materials, instruments.
Linux has Local User Groups.
Should/does AVR freaks have local user groups?

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you have a 24MHz or 48MHz clock source you can use, you can divide it by 2 one or more times using a D-flipflop (and no additional parts)...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

:( cheaper to buy the right Xtal for 20p

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

If you have a 24MHz or 48MHz clock source you can use, you can divide it by 2 one or more times using....

....a hacksaw?

I though you just had to saw them in half? :-)