Hello All,
I haven't posted in a long time and usually don't unless I'm having a PICAXE problem... and so I'm here today. :-(
(searched the forums last night and this morning, couldn't find anything helpful)
Making yet another very simple Morse code project with some 14M2's that were laying around rather than the usual 08M2. It's pretty simple, 9V battery, 7805CT regulator with no bypass caps, two 10k pots for Morse speed and Morse tone, 2N7000 output on B.1 and SOUND out on speaker C.1. Random or practice Words, Letters or Punctuation etc. etc. all controlled by the numerous positions of four DIP switches.
I etched out the board yesterday and wrote a few lines to test code.
Digital out on pin B.1 for the 2N7000, all good.
Both the ADC's for Morse speed and Morse tone on pinC.0 and pinC.4 are reporting back between 0 and 255, all good.
The 4 segment DIP switches (with external 10K pull downs) on B.2, B.3, B.4 and B.5 report back the numbers 4, 8, 16 or 32 when individually closed, all good.
The problem is... I can not get SOUND to work! I've even downloaded a simple test... (below) but no sound out of the speaker. Speaker is a 2" speaker in series through a 10uf tantalum cap to pin C.1. I've even tried the SOUND on B.2, B.3, B.4 and B.5 with the DIP switches 10K pull down resistors removed and still no Sound out on any of the B pins.
*** Tested Sound 2, (100,100) on a spare 14M and it works. .... also Sound 3 (100,100), Sound 4... and Sound 5... on an old 14M and Sound works properly. ***
Manual says 14M2 Pin C.1 can be used for... kb data, hpwm B/ Out/ In (doesn't that include SOUND too?)
My three 14M2 chips all say they have firmware Ver. 6A
speaker proved good
capacitor proved good
Disconnected the programming lead after download, still no sound on C.1
Removed 10K pull down resistors on B pins, still no sound on C.1
Cannot find any issues with my circuit board artwork.
Using Win7 and Programming Editor 6.
NOTE: Another weird anomaly is when the above code is downloaded, the 2N7000 turns on and off on B.1 until I connect the speaker on C.1, then the output on B.1 stops going high. (proved with a resistor and LED on B.1) Only until I lift the neg- speaker wire from ground or lift the pos+ speaker wire from the capacitor, (other side of capacitor goes to pin C.1) will the 2N7000 on B.1 turn back on and off again. (almost like the B.1 output is being dragged down by the speaker circuit on C.1... same phenomena happens on all three 14M2 chips)
Comments, ideas and suggestions most appreciated.
Can't think of much more, help. LoL. (I know it's something simple)
Regards,
HamRadioAddict
I haven't posted in a long time and usually don't unless I'm having a PICAXE problem... and so I'm here today. :-(
(searched the forums last night and this morning, couldn't find anything helpful)
Making yet another very simple Morse code project with some 14M2's that were laying around rather than the usual 08M2. It's pretty simple, 9V battery, 7805CT regulator with no bypass caps, two 10k pots for Morse speed and Morse tone, 2N7000 output on B.1 and SOUND out on speaker C.1. Random or practice Words, Letters or Punctuation etc. etc. all controlled by the numerous positions of four DIP switches.
I etched out the board yesterday and wrote a few lines to test code.
Digital out on pin B.1 for the 2N7000, all good.
Both the ADC's for Morse speed and Morse tone on pinC.0 and pinC.4 are reporting back between 0 and 255, all good.
The 4 segment DIP switches (with external 10K pull downs) on B.2, B.3, B.4 and B.5 report back the numbers 4, 8, 16 or 32 when individually closed, all good.
The problem is... I can not get SOUND to work! I've even downloaded a simple test... (below) but no sound out of the speaker. Speaker is a 2" speaker in series through a 10uf tantalum cap to pin C.1. I've even tried the SOUND on B.2, B.3, B.4 and B.5 with the DIP switches 10K pull down resistors removed and still no Sound out on any of the B pins.
Code:
Start:
High b.1
Sound c.1, (100, 100)
Low b.1
Sound c.1, (0, 100)
Goto start
Manual says 14M2 Pin C.1 can be used for... kb data, hpwm B/ Out/ In (doesn't that include SOUND too?)
My three 14M2 chips all say they have firmware Ver. 6A
speaker proved good
capacitor proved good
Disconnected the programming lead after download, still no sound on C.1
Removed 10K pull down resistors on B pins, still no sound on C.1
Cannot find any issues with my circuit board artwork.
Using Win7 and Programming Editor 6.
NOTE: Another weird anomaly is when the above code is downloaded, the 2N7000 turns on and off on B.1 until I connect the speaker on C.1, then the output on B.1 stops going high. (proved with a resistor and LED on B.1) Only until I lift the neg- speaker wire from ground or lift the pos+ speaker wire from the capacitor, (other side of capacitor goes to pin C.1) will the 2N7000 on B.1 turn back on and off again. (almost like the B.1 output is being dragged down by the speaker circuit on C.1... same phenomena happens on all three 14M2 chips)
Comments, ideas and suggestions most appreciated.
Can't think of much more, help. LoL. (I know it's something simple)
Regards,
HamRadioAddict