Maximum speed with SXKey
inaki
Posts: 262
I am using the SXKey to program and debug·the SX28· on the Professional Dev. Board. I can select 4Mhz as the max. speed, when managed by the SXKey. Is it possible to reach higher frequencies using the SXKey as frequency·generator ?·Do I need an external resonator·for higher frequencies· ?
·
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
If you do Run->Clock there is a slider that goes from 400KHz to 110MHz
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
Those that would give up freedom for security will have neither.
·
The software supports up to 110Mhz, but there was some discussion this past year of that recommended not pushing that high.
I believe that it might overstress the SX-Key or SX-Blitz's internal hardware which includes an SX chip.
Apparently, the SX Ubicom chips are really not engineered to surpass a maximum of 100Mhz and not really well suited over 80Mhz without including specialized EMI and power consumption features. The heat builds up and the interferances become greater.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)
······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
If I use the default settings (4Mhz) all works okay and I can program and run programs.
Is this the way to set the SXKey·clock frequency ?
Is this the right setting for 16 Mhz ?
Another question about frequency. If I change frequencies, say form 4Mhz to 16Mhz,·is it expected PULSOUT function will change or will stay constant for the same parameters ?
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
I want to get a 427us pulse. I get some figures next to this but not exactly (by about an 8% offset).
I suppose I will need to do it in assembler with a hardcoded delay if I want better results.
Any suggestion to get better resolution/accuracy with PULSOUT on the SX?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
If you want better resolution from PULSOUT then have a look at the compiler output and use it as a guide to creating a custom routine. If PULSOUT (or any other instruction) changed its behavior with a FREQ directive change we would have an unworkable product. Your full source is included in the compiler output so you'll be able to see how it works -- since you're "rolling your own" you could even make it work with 16 bits. Just make sure you document how the code works and at what frequency so that anyone else attempting to modify it or run your code at a different FREQ setting can make the appropriate changes.
Or you could hard-code in place:
· MyPin = 1
· PAUSEUS 427
· MyPin = 0
This will work at any FREQ setting.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
· Just make sure the pin is set to be an output first.
· OUTPUT MyPin
· MyPin = 1
· PAUSEUS 427
· MyPin = 0
You may have to lower the 427 value slightly to makeup for the time to change the pin state.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
Those that would give up freedom for security will have neither.
·