RF VFO Project
ChrisS
Posts: 2
Has anyone written BS2 code to read a two output serial encoder and control a DDS-60 frequency synthesizer?· Edwards wrote an article in Nuts and Volts entitled "Rotary Encoders Help You Program A FRiendly Spin and Grin Interface".· However, the code is for the BS1, while I am using a BS2SX.· What command do I use to replace 'PINS'|?· Since·all variables are defined differently, how does one handle Bytes?· Do I use INS and IN0-IN15 to replace Bit0?·
Seems like no one in the Amateur Radio community have done this.· They have all gone to PICs or other chips programmed in C or assembler.
Thanks for your help.
··
Seems like no one in the Amateur Radio community have done this.· They have all gone to PICs or other chips programmed in C or assembler.
Thanks for your help.
··
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
·http://www.parallax.com/Portals/0/Downloads/docs/prod/stamps/BS1nBS2ConvTips.pdf
Jim
http://www.njqrp.org/dds/DDS Daughtercard Manual - rev 1.5c.pdf
http://www.njqrp.org/dds/DDS Daughtercard Manual - rev 1.5c.pdf[noparse][[/noparse]url]
But doing the calculations for actually calaulating the synthesizer frequency is a little more problematic, as the BS2SX only does 16 Bit arithmetic. Guess my options are:
1. Get the 32 Bit coprocessor (But how does one modify P Basic 2.5 to use the larger strings?)
2. Write my own double precision routines (But I am not a mathematician!)
3. Use a look up table ala Wade Lake KR7K
Guess the third choice is the most viable, although I will have to recalculate the table as the new synthesizer, an AD 9851 uses a 180 MHz clock.
The NJQRP does tell you how to use Serout to set frequencies, but it is only after you get the hex string from the Analog Devices design tool! Now I see why few people have used Basic Stamps in this application!
Cheers
Chris W1EH