![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
If the PIC is rated 20Mhz....
1. I should get crystal that are rated 20Mhz to get optimum speed... 2. Will tolerances of the crystal kill the PIC? 3. I see 30ppm kind of tolerances and stuff like this...shouldn't I get a a crystal less than 20Mhz? 4. Will a crystal clock oscillator rated at 19.9600Mhz work? 5. How about the timings for the serial communications? ARgh.....totally lost...
__________________
There are no perfect solutions, only solutions acceptable for the times |
|
|
|
|
|
|
(permalink) | |||||
|
Quote:
Quote:
Quote:
Quote:
Quote:
|
||||||
|
|
|
|
|
(permalink) |
|
Thanks a kazillion...if I were to look up all the thousand and thousand of pages of specs from Microchip..I'll think I'll just see all my Microchip uC..
just another 9999,9999 things else to know......
__________________
There are no perfect solutions, only solutions acceptable for the times |
|
|
|
|
|
|
(permalink) |
|
One thing to keep in mind is that a pic runs at 1/4 it's oscillator frquency. So, if you hook it up with a 20Mhz crystal then it will do 5000000 cycles...
Normal instructions take 1 cycle to complete except for program branches, wich take 2 cycles |
|
|
|
|
|
|
(permalink) |
|
For serial comminication try multiples of 2.304Mhz for 0% error.
I run 4.608Mhz instead of 4Mhz (unless you need to do timinig critical applications) Ron |
|
|
|
|
|
|
(permalink) |
|
Do you mean I need to get another xtal with another freq to time the serial communications while keeping the main xtal at 20Mhz?
Or do I use the main xtal for serial communications, but with some funnie frequency instead of 20Mhz?
__________________
There are no perfect solutions, only solutions acceptable for the times |
|
|
|
|
|
|
(permalink) |
|
A 20 MHz crystal, including common inaccuracies, is the intended source.
30 ppm is only 600 hz. 20 MHz is hardly a hard limit, a PIC can be overclocked anywhere from +10% to ??who knows?? before it gets unreliable. They already had to create a max rated freq based on possible lot variations (+/- many %) at the most extreme temp (- several %). +0.003% isn't going to break it. |
|
|
|
|