Prof. Dev. Board to a real PCB
Hello.··I have a project that I've developed on the professional development board.· The project works using the SX-Key using internal oscillator.·
Say my program is:
DEVICE SX28, OSC4MHZ, TURBO, STACKX, OPTIONX
FREQ· 4_000_000
led PIN RA.0
PROGRAM Start
Start:
· Do
· TOGGLE led
· PAUSE 30
· LOOP
How should I change the DEVICE and FREQ statement if I want the SX to run on external 50 MHz resonator?
Thanks.
Say my program is:
DEVICE SX28, OSC4MHZ, TURBO, STACKX, OPTIONX
FREQ· 4_000_000
led PIN RA.0
PROGRAM Start
Start:
· Do
· TOGGLE led
· PAUSE 30
· LOOP
How should I change the DEVICE and FREQ statement if I want the SX to run on external 50 MHz resonator?
Thanks.
Comments
FREQ 50_000_000
or
DEVICE SX28, OSCHS2, TURBO, STACKX, OPTIONX
FREQ 50_000_000
And make sure you've got a 10k resistor right across OSC1 and OSC2 at the resonator (outer two pins of the resonator).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
And what happens if I forget the 10K across OSC?
Again, if you check the datasheet, you will find that caps and a parallel resistor are *required* for proper resonator startup (and values are given for different resonator/freq. combinations). The DIP resonators include the capacitors, but not the resistor. Again, I've generally seen (and Guenther Daubach and JonnyMac have concurred) that while some resonators will startup fine without the resistor, sometimes they won't. But they always will with the resistor. Jon usually seems to use 10k for both his 20mhz and 50mhz projects, though the spec shows slightly different "official" required values. I forget what the 4mhz value is (but my 4mhz projects have all used the internal RC clock).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php