Need help on getting 10Mhz crystal to work.
Mahonroy
Posts: 175
Hi guys,
I am using this 10Mhz crystal:
http://www.mouser.com/ProductDetail/ABRACON/ABM3C-10000MHZ-D4Y-T/?qs=%2fha2pyFaduiXg%252bfADAvCicUyned7xDoAWF9kjnvkw7SlDe4TrsZHtg%3d%3d
Part number: ABM3C-10.000MHZ-D4Y-T
From reading on these forums, it looks like I could just set these 2 constant variables and I should be good to go:
_clkmode = xtal1 + pll8x
_xinfreq = 10_000_000
I tested it using the Parallax Serial Terminal, and I get a screen full of random characters on the terminal. (and the program does not work). I swapped the crystal out for the original 5Mhz version, changed the constant variables back, and it works perfectly. So it seems that I either don't have the settings correct, or it seems that maybe I have an incorrect pinout for this part? What do you guys think?
By the way, I was having a hard time figuring out which pad is what based on the datasheet. The datasheet shows that pin 2 has a little angle on the pad to indicate that its pin 2. If this is the case, then the "top view" of the crystal is incorrect. Assuming that the indent pad is pin 2 (which is ground), and the opposite pad is pin 4 (also ground), I just used the other 2 pins for the crystal connection.
Thanks and any help is greatly appreciated!
I am using this 10Mhz crystal:
http://www.mouser.com/ProductDetail/ABRACON/ABM3C-10000MHZ-D4Y-T/?qs=%2fha2pyFaduiXg%252bfADAvCicUyned7xDoAWF9kjnvkw7SlDe4TrsZHtg%3d%3d
Part number: ABM3C-10.000MHZ-D4Y-T
From reading on these forums, it looks like I could just set these 2 constant variables and I should be good to go:
_clkmode = xtal1 + pll8x
_xinfreq = 10_000_000
I tested it using the Parallax Serial Terminal, and I get a screen full of random characters on the terminal. (and the program does not work). I swapped the crystal out for the original 5Mhz version, changed the constant variables back, and it works perfectly. So it seems that I either don't have the settings correct, or it seems that maybe I have an incorrect pinout for this part? What do you guys think?
By the way, I was having a hard time figuring out which pad is what based on the datasheet. The datasheet shows that pin 2 has a little angle on the pad to indicate that its pin 2. If this is the case, then the "top view" of the crystal is incorrect. Assuming that the indent pad is pin 2 (which is ground), and the opposite pad is pin 4 (also ground), I just used the other 2 pins for the crystal connection.
Thanks and any help is greatly appreciated!
Comments
-Phil
I soldered this thing in with the changes and it works perfectly.