View previous topic :: View next topic |
Author |
Message |
Ttelmah
Joined: 11 Mar 2010 Posts: 19496
|
|
Posted: Wed Apr 25, 2012 4:43 am |
|
|
I'm also rather puzzled by this line:
"One crystal connected to 13&14 number pins with other pins connected to 22pf capacitors and then G. "
Other pins?....
A crystal, only has two pins. One goes to pin 13, and _also_ has a 22pF to ground. The other goes to pin 14, and again also has a capacitor to ground.
If your device has more than two pins, then it is not a crystal, but possibly an oscillator 'module'. In which case you need to get the data sheet for it, but it'll _require_ 5v power, and no loading capacitors.
This may well be why your own board does nothing.
Best Wishes |
|
|
riz179
Joined: 06 Apr 2012 Posts: 21
|
|
Posted: Wed Apr 25, 2012 3:16 pm |
|
|
Sorry you are puzzled due to my poor english, I'm using crystal with only two pins. Can you tell me how can i check whether my crystal is working or not ? and one more thing, when I create a new project in ccs it includes the directory of file at the start of code like"#include "C:\Users\Rizvan\Desktop\prjct home\1.h" the compiler give error by removing the lines of "#ifdef" so i have to remove this line also to remove error. Is there any affect? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Apr 25, 2012 3:21 pm |
|
|
Post a clear (in focus) close-up photograph of your board. Reduce
the photo to a suitable size (no bigger than 1024 x 768). Upload it to
a free image hosting service such as http://www.imageshack.us
and post a link to it here.
If you do that, we can probably see any problems with the crystal, etc. |
|
|
riz179
Joined: 06 Apr 2012 Posts: 21
|
|
Posted: Thu Apr 26, 2012 6:27 am |
|
|
Thanks guys its working. The only problem was the useless lines of #define & #include in my code. And special thanks to Ttelmah and pcm programmer. |
|
|
|