In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Sparks-R-Fun wrote: [QUOTE="loojade"]- 50 MHz resonator has 3 pin. the middle one must connected to GND and the side pins to OSC1 and OSC2... right???[/QUOTE]Correct. [QUOTE="loojade"]- between OSC1 and OSC2 is it necessary a 10Kohm resistor?[/QUOTE]Although not an authoritative answer... I have never used one with a resonator. (Check the datasheet if you want to be sure.) [QUOTE="loojade"]- Is the correct DEVICE code line the following??? [/QUOTE]The settings look good to me although from some old code I just pulled up it looks like I used OSCHS1 for a 50MHz resonator in a previous project. [QUOTE="loojade"]Must I set any thing in SX-Key before program SX chip???[/QUOTE]The only thing that comes to mind is that while you can program the SX with a resonator connected, you can not use the debugger to examine your code with a resonator in place. NOTE: If you were using a crystal instead of a resonator you should definitely disconnect it before programming! Also, I think it makes a lot of sense to include the device and frequency settings directly in your program as this eliminates one frustrating step later when you return to old code after working on another project and forget to adjust the settings back properly. Including them in the code ensures they are set or changed properly for each program you load! :smile: - Sparks ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=258822#m258885 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)