I'm afraid not.What I was wondering is whether there was something like: freqout (pseudo command) c.3 (pin number), m20 (frequency).
#picaxe 20X2
sertxd (#m4," ",#m8," ",#m16," ",#m32," ",#m40)
Things get a little icky at the high speed end of things because of the way PWM actually works internally, period being 8-bit and duty being 10-bit.Set up one of the (hardware) PWM outputs to a Period of just two cycles and a Duty Cycle of 50% (1 in 2). If you're lucky, that may give a 20 MHz square wave output.
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
_______ _______
PWMOUT 1,3 | |_______| |_______
0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3
___ ___ ___ ___
PWMOUT 0,1 | |___| |___| |___| |___
Hey, great idea. This looks like it just takes input, and multiplies it by a factor that you specify. I think this would work well for what I am doing. I could turn it off just by setting the chip PWMout pin low and turn it on by turning on the pwm.
Maybe I could hook multiple ones together to get a very high frequency output. The circuit does need to run at 8 megahertz, and the maximum pwmout at this frequency is 1 megahertz.
Thanks for the idea.
Thanks, I did a quick search yesterday, but couldn't find where they sold them.here is where you could purchase ICS512's
Sorry, I didn't realize I had made it sound like I needed only a 20MHz signal. All I need is something over 10MHz. The exact frequency doesn't matter. The project that this is for is an upgrade to my combination lock, https://picaxeforum.co.uk/threads/combination-lock.31329/.If looking for just a 20MHz signal
Do they have any DIP packages? I am using a breadboard, so those would be nice.
Sounds like a 20X2 at 64MHz running PWM at 16MHz would do the job. Or just one of those oscillator modules which go to 100MHz and beyond. You could go up to 2GHz if the rest of your circuitry could handle that.Sorry, I didn't realize I had made it sound like I needed only a 20MHz signal. All I need is something over 10MHz. The exact frequency doesn't matter. The project that this is for is an upgrade to my combination lock, https://picaxeforum.co.uk/threads/combination-lock.31329/.
I need to do some experimenting with the frequency, so something variable would be nice. I would have to get multiple can oscillators if the first one I got was a frequency that didn't work.use a simple canned oscillator
It would. Only problem is I don't have an extra 20X2.Sounds like a 20X2 at 64MHz running PWM at 16MHz would do the job.
That is why I need to experiment. I don't know what it can handle. Also, how fast can a picaxe respond to an input?if the rest of your circuitry could handle that.
Do they have any DIP packages? I am using a breadboard, so those would be nice.
Yes. But there were some reasons that I switched to the 555 timer. One is that the circuit I used was hard to turn off. Also it took a lot of room on the bread board (if you look at the project, you will see that I don't have a lot of extra room). Also it was slower than what I wanted.Have you tried a simple relaxation oscillator with a couple of gates or inverters?
That might be the reason. I was using 4000 series NAND gates with the inputs all tied together to make my inverters.as long as you use a 74HC132 instead of the 4093.