HobbyPCB.com

Built by Hobbyist for Hobbyist!
It is currently Mon Aug 19, 2019 3:33 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 27 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
PostPosted: Sun Oct 07, 2012 8:10 pm 
Offline

Joined: Tue Oct 02, 2012 4:58 pm
Posts: 38
Thanks so much Bill! Your voltage readings are much appreciated and I pretty much match yours. 2.43V and 3.64. I am seeing basically the same waveform as you have shown although mine is a little lower in amplitude, I would say 120mv or so p-p. I am seeing a nice sine wave on the output of the filter but it is only about 80mv in amplitude. I can hear the 25MHZ oscillator if I connect a wire to the 10M antenna and bring it close to Y1 so that is progress. I cannot hear anything yet on 50MHz. My AF gain control is not doing anything either but RF gain and all other front panel functions are responding. I can also see the output of AD9833 change a little when changing bands so it appears that chip just might be alive and well. :D It was a bear to get soldered on the board correctly with my 60+ year old eyes and shaky hands. I really appreciate your help and I have made pretty good progress for today. My expensive night light is seeming more like a amateur transceiver!


Top
 Profile  
 
PostPosted: Sun Oct 07, 2012 9:23 pm 
Offline

Joined: Tue Oct 02, 2012 4:58 pm
Posts: 38
AF Gain seems to work much better when it isn't swapped with the mic! Duh! 3 pin cables look alike. lol So stupid but certainly an easy fix! Receiver seems very much alive now but haven't connected it to an antenna (there isn't one in my shop area). One other thing that isn't right is the S meter doesn't seem to read correctly as it doesn't increase when receiving the 25Mhz oscillator freq. Also, the only time I hear the oscillator is when I have the LNA on so I might have problems with one of the SW chips. Much progress today. :D


Top
 Profile  
 
PostPosted: Sun Oct 07, 2012 9:27 pm 
Offline

Joined: Thu Aug 09, 2012 6:16 pm
Posts: 43
Try using the code "as published" from the ARRL.org download - not the debug code posted on the Google site.

ecpilot wrote:
Hi Bill and thanks for the information. I was asking about checksums to just verify that the chips had a good program loaded in them and didn't get corrupt somehow. I bought the PIC2KIT per Jim's recommendation fairly early on in the project and it seems to recognize and read the 18F with no problems. I have also written to it but have no idea if all went correctly but the PICkit2 v2.61 software that came with it said it performed the task successfully.
After reading your information in the firmware section of th DSP-610 on google sites, I decided to download MPLAB IDE 8.87 and try that approach. When I read the DSP PIC18 workspace file into MPLAB and do the "project build all" command, I get the following results:
Debug build of project `C:\Users\User\Documents\DSP-610\DSP-610 18F Baseline Code\DSP-610 PIC18.mcp' started.
Preprocessor symbol `__DEBUG' is defined.
Sun Oct 07 08:46:56 2012
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\Users\User\Documents\DSP-610\DSP-610 18F Baseline Code\DSP-610 PIC18.mcs".
Clean: Done.
Couldn't locate build tool. Check tool locations.
----------------------------------------------------------------------
Debug build of project `C:\Users\User\Documents\DSP-610\DSP-610 18F Baseline Code\DSP-610 PIC18.mcp' failed.
Preprocessor symbol `__DEBUG' is defined.
Sun Oct 07 08:46:57 2012
----------------------------------------------------------------------
BUILD FAILED

So it looks like I am not having any luck with that approach either. Seems I am missing the build tool. Time to do some more reading!


Top
 Profile  
 
PostPosted: Mon Oct 08, 2012 11:05 am 
Offline

Joined: Mon Jul 23, 2012 6:25 am
Posts: 1142
Upgrading to the latest MPLAB did the same thing to me...

I had to reinstall both compilers and the PICKIT2 no longer works with the DSP.

I had to do the upgrade since the DSP-6160 uses an DSP33E series dsPIC.

Try completely uninstalling all Micrchip software, then install MPLAB then the compilers.

Jim.


Top
 Profile  
 
PostPosted: Mon Oct 08, 2012 9:49 pm 
Offline

Joined: Tue Oct 02, 2012 4:58 pm
Posts: 38
I uninstalled PICkit2 V2.61 and uninstalled MPLAB IDE v8.87 and re-installed the MPLAB IDE software. I get the same build error so I must be missing something. Compiler?? Where do I get this to install? I would have thought it would be included in the MPLAB pakage. As I am totally program illiterate I doubt I can figure out what it is. The PICkit2 v2.61 seems to be able to read what is loaded into both the 18F and DSP33 chips, or it could before I uninstalled the software. I think you are telling me that this programmer will NOT be able to write to the DSP33. If I can get ever get a successful build with MPLAB IDE, even for the 18F chips which on the surface seems easy, then I might order a PICkit3 to try writing the program to the chip. If I want the display to give an accurate frequency, I will have to get this as it is about 10.2KHz low on 12M, 11.2KHz low on 10M and 11.5KHz low on 6M. Receiver seems to work but only with the LNA on. Signals are very weak or non existent with the LNA off. The only other problem I have found are the rate and dial switches are reversed so I am thinking this is a programming glitch also as I can't find anything out of line with the wiring.


Top
 Profile  
 
PostPosted: Tue Oct 09, 2012 5:59 am 
Offline

Joined: Mon Jul 23, 2012 6:25 am
Posts: 1142
I think that the microchip website has free versions of the C18 and C30 compilers that you will need to recompile the source code start looking here:

http://www.microchip.com/stellent/idcpl ... =compilers

You can definately use the PICKIT2 if you can find an older version of MPLAB. They are all archived here:

http://www.microchip.com/stellent/idcpl ... e=en023073

If you fine one that works, please let us know. (I think I used 8.50 or 8.53)

Yup on the upper bands you need the LNA's to hear much. You can adjust R96 and R97 to change the gain with the LNA off if you need to but the only real purpose of turning off the LNA is if you are listing to someone really close. The good news is that with the LNA's on the MDS is down around -140 dBm.

Don't know what to tel you about the rate and dial switches, mine work, maybe the schematic is wrong but I haven't heard any other complaints about it.

73's
Jim WA2EUJ


Top
 Profile  
 
PostPosted: Tue Oct 09, 2012 6:18 am 
Offline

Joined: Tue Oct 02, 2012 4:58 pm
Posts: 38
Thanks Jim! I will give the older version a shot and download the compliers that you suggest. It would be great if I don't have to buy a different programmer. Thanks for the information on the LNA, that makes me feel the receiver portion of the set is working OK now. I did check the Xmit with a key last night and the TR switch works but haven't tried tuning up the transmit section yet. Nice sidetone also. 73's, Eric


Top
 Profile  
 
PostPosted: Thu Oct 11, 2012 8:49 am 
Offline

Joined: Tue Oct 02, 2012 4:58 pm
Posts: 38
I have been unable to find a version of MPLAB IDE that supports the 18F45K22 and the PICkit2 programmer. I have loaded (and deleted) v8.46, v8.50, v8.53, v8.56, v8.60, v8.63, v8.66 and v8.0 with none of these supporting the 18F45K22 chip AND the PICkit2. The only software I can find that supports the 18F chip and the programmer is PICkit 2 v2.61 but if I am correct in my reading of all this, I can't modify the code with this software and then reprogram the chip. It takes a compiler to convert the c code into 1's and 0's and that isn't present in the PICkit 2 software. I think I would need to convert the edited file to hex before I could load it into the chip using PICkit 2 v2.61 software. But I am a total newbie to this and could be all wrong. :?


Top
 Profile  
 
PostPosted: Thu Oct 11, 2012 10:57 am 
Offline

Joined: Mon Jul 23, 2012 6:25 am
Posts: 1142
Any of the MPLAbs can make a hex file so if you have a utility that can use the PCIKIT2 to program the PIC18F45K22 with a hex file you are there!

The compiler makes a hex file by default when you build the project I'll attache the current hex file to this post so you can try it.


Jim


Top
 Profile  
 
PostPosted: Thu Oct 11, 2012 8:53 pm 
Offline

Joined: Tue Oct 02, 2012 4:58 pm
Posts: 38
My problem is I am unable to build a project with MPLAB because it seems it can't locate the tools required to accomplish this. I have installed MPLAB IDE without a problem. I have also installed MPLAB C18 v3.43 and the C30 v3_30c compilers using the default settings. I have also run the "setup MPLAB tools" from the MPLAB IDE directory and had all options selected and it seemed to install OK. When trying to build a project using the files in the 18F baseline directory this is the result:
Debug build of project `C:\Users\User\Documents\DSP-610\DSP-610 18F Baseline Code\DSP-610 PIC18.mcp' started.
Preprocessor symbol `__DEBUG' is defined.
Thu Oct 11 21:14:14 2012
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\Users\User\Documents\DSP-610\DSP-610 18F Baseline Code\DSP-610 PIC18.mcs".
Clean: Done.
Couldn't locate build tool. Check tool locations.
----------------------------------------------------------------------
Debug build of project `C:\Users\User\Documents\DSP-610\DSP-610 18F Baseline Code\DSP-610 PIC18.mcp' failed.
Preprocessor symbol `__DEBUG' is defined.
Thu Oct 11 21:14:15 2012
----------------------------------------------------------------------
BUILD FAILED

Can someone tell me what I am doing wrong?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group