Help wanted Can anyone help identify a piece of music from the 70's? See the home page for the details
November 2021 A desk lamp mod (well, more of a bodge) - halogen to LED conversion using LED strip. Find it under the 'Misc' category.
August 2021 The Simple DDS VFO has been updated to add band change functionality. It is on it's own page in the homebrew menu.
June 2021 Battery Monitor project updated and finalised.
May 2021 Added another Rant about the scabby manuals that come with stuff these days. Added page and files for a 3d printed box for the Noise Canceller courtesy of Gary VK6GS
January 2021 Paypal button added to Noise Canceller page. Updated the PK3 programming adapter - some spare pcb's available.
Privacy Policy uploaded. It may be viewed at the Privacy Policy link in the footer. As of October 2017, I will be asking for a donation in exchange for providing custom modified code for my projects to help keep this site available. GPDR and all that stuff In accordance with various bits of legislation around the world, either currently in force, about to come into force or proposed, you will now find that annoying "We use cookies" notice at the top of this website. The full Privacy Policy is available at the Privacy Policy link in the footer at the bottom of the page. (If you don't know what GPDR is, Google it. Real scary shit for ANYBODY with a web presence.)
A Simple DDS based VFO using an 8-pin PIC - now with added band change capability.
This is not a "constructional" project as such, rather a software update for the Simple DDS VFO elswhere on this site.
I made this a seperate page as it is a major change from the original concept of the Simple DDS VFO and now incorporates the ability to add 'Bands' of frequencies and switch between them.
It actually came about because someone wanted to select several different ranges of frequencies using the Simple VFO project and only needed one step size, so I thought I might as well continue on and provide both options in the one software version.
Just one point to note that, at this point, the LED step size indicator does not work properly with this version of the software - I am looking in to why and it will be fixed in due course - it is not included in V3.1.
First up, the changes.
Mostly, the software works exactly the same as the V2.4 Simple DDS VFO. The addition is that now you can enter multiple bands of frequencies and these are selected by holding the step switch and rotating the encoder to select the different bands. Releasing the button puts you back to normal VFO operation.
Rotating up will move up through the bands and rotating down will move down through the bands. Once you reach the top or bottom of the bands, they will stay at that point i.e. they do not wrap around.
A short push of the switch will select the step size as previously.
The time delay to activate the 'long press' for band change mode is currently set at 0.5 of a second, but if you need it longer (or shorter), it can be adjusted by changing the value at line 143 - CLICK_TIME. Time is set in multiples of 10mS, so 50 as currently set = 50 x 10mS = 500mS. Also, the 'short press' time for 'step size' change is preset at 10mS.
Now, adding or changing frequencies is done by updating two sets of tables from line 320 in V3.1 of the software as currently available below.
One table (low_table) is for the lower limit and the other (high_table) is for the upper limit.
The points to note are:-
There MUST be the same number of entries in both tables.
If you add or subtract any frequencies, you need to update the variable 'band_index' located at line 145.
Looking at the pic above, under Band Index, you will see that the index changes by 4 for each line and the 'band_index' variable needs to be the last number +1. Currently, you can see the last number in either table is 15, so 'band_index' = 16.
The frequencies are entered as LSB to MSB from left to right in the tables (I probably should have done it the other way round so they match up with how they are shown in the calculator. It may get changed in later versions of software).
The above info is also included in the asm file at the appropriate point.
Also as shown in the above pic, there are 4 bands in the file available to download as an example, 1-2MHz, 3-4Mhz, 5-6MHz and 7-8MHz.
All versions of the software with band change functionality will be V3.xx and up and it will run on a 12F675 with 3 adjustments - update the 'processor' command, the 'include' file and uncomment the line 'clrf ANSEL' at line 359. That is all included in the asm file, you just need to comment and uncomment the right bits.
These files are provided free for personal use ONLY. I retain copyright on all works published on this website (unless otherwise specified). These files, or any derivative of them, may NOT be used in any commercial or profit making enterprise of any kind. (Right click and 'Save as..' or what ever is required by your browser) Simple_DDS_VFO_V3_1.asm The ASM file for the VFO. It is set to AD9850 by default. Simple_DDS_VFO_V3_1.HEX AD9850 hex file.
Obligatory Legal Stuff
Copyright © 2011 - 2021 T Mowles VK5TM.
(All rights reserved)
Privacy Policy
Unless otherwise noted, all content on this website belongs to the site-owner. No person, corporation or other legal entity is permitted to make use of this content in any fashion or for any use other than personal use, without the express written permission of the site-owner except for fair use provisions as allowed by appropriate copyright law.
See website Terms & Conditions.
Content contained in offsite links and all trademarks belong to their respective owners.