SX Sim truncating
BebopALot
Posts: 79
I want to run my SX28 with a 5.120 MHz crystal oscillator. The SX Sim truncates it to 5MHz. As a result, my timing is off. Is there anything I can do to get the SX Sim not to do that?
Thanks, BBAL
Thanks, BBAL
Comments
{I think it is in VisualBasic.}
Alternatively, you could try runing it 10 times faster and adjust your read outs by dividing by ten.
That would only give a ballpark figure as you would still be short by 0.200.
Maybe, and just maybe you can get it to operate at 512Mhz and divide by 100.
I am assuming that it won't accept plain old Hz as a number, only Mhz.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)
······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
Post Edited (Kramer) : 2/2/2006 12:05:15 PM GMT
until now, SXSim used a long variable to hold the specified clock frequency - this is why it truncated all "odd" values - shame on me! This is fixed in the meantime, and will come with the next release soon.
Thanks for pointing out this bug!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G
Thanks Guenther.
Since I also now know it will become available I can think of ways to use it too.
Please be sure to document the convience.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)
······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
Thanks both to Geunther and Kramer.
-BBAL
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)
······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
yes, you are right - the MIDI baud rate is 31250, and not 32000 as I had stated before.
Well, now that we have an SX device that can be clocked at 50 MHz, instead of just 1 MHz, here are the typical constants for the "standard" SX UART VP @ 50 MHz to handle the 31250 MIDI baud rate:
baud_bit = 3
start_delay = 13
int_period = 200
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G