PDA

View Full Version : Crystal ossilator to second chip...



Michael Wakileh
- 22nd June 2009, 15:08
I have a board from olimex with a 20mhz crystal... I want to tap the signal and use it to drive another chip. I plan to run a wire from OSC2/PIN14, but I can't test until I get the other chip out of its board (its the IR cam from the Wiimote) next Wednesday. I have attached the schematic of the board. Can anyone tell me if my thinking is correct?

Here config settings for the pic18f4550
__CONFIG _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
__CONFIG _CONFIG1H, _FOSC_HSPLL_HS_1H
__CONFIG _CONFIG2L, _PWRT_ON_2L & _BOR_ON_2L & _BORV_2_2L & _VREGEN_ON_2L
__CONFIG _CONFIG2H, _WDT_OFF_2H
__CONFIG _CONFIG3H, _MCLRE_ON_3H & _LPT1OSC_OFF_3H & _PBADEN_OFF_3H & _CCP2MX_ON_3H
__CONFIG _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _ICPRT_OFF_4L & _XINST_OFF_4L & _DEBUG_OFF_4L

Luckyborg
- 22nd June 2009, 15:40
I have run up to 5 micros with one crystal, but they are all very close together, so don't try to extend a wire too far. When I did it I shared both pins 13 and 14 between the chips, not sure if that really matters or not.

Archangel
- 22nd June 2009, 18:52
to get more drive on that OSC out line you could buffer with an inverter . . .

Michael Wakileh
- 22nd June 2009, 19:27
I asked the question because I didn't understand how the crystals work and what the difference is to the resonators...As far as I understand now, the crystal amplifies ac noise at its resonant frequency at startup until everything is in synch with its resonant frequency...So there's a 5volt AC signal present there? I'm guessing I could pull one line into the comparator, and use the comparator output...Would that help to extend the wire?
greets,
Mike