frequency synth
letonton
Posts: 9
hi all
fr. synth code is fine...
but if i want to obtain more than two frequencies
??
(i tried with more cogs - no result !)
and is it possible to change the output duty cycle ?
have precise width pulses ?
fr. synth code is fine...
but if i want to obtain more than two frequencies
??
(i tried with more cogs - no result !)
and is it possible to change the output duty cycle ?
have precise width pulses ?
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Toys are microcontroled.
Robots are microcontroled.
I am microcontrolled.
i just want (minimum) have 4 different frequencies
on 4 separate output pins...
and if possible change the duty cycle of signal...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Toys are microcontroled.
Robots are microcontroled.
I am microcontrolled.
Since the counters are involved, you can only have 2 frequencies per cog, which means you need 2 cogs for your 4 frequencies. Here is some example code.
To change the Duty Cycle, you need to make modifications to the "Synth" object and follow the Application notes for using the PWM feature of the counters.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Post Edited (Beau Schwabe (Parallax)) : 4/22/2009 8:24:01 PM GMT
thanks to beau s. for help to a propeller and
spin beginner !
another question
if i want to run say some cogs, with some ready objects
(exemple : vga text and tv text objects) mixed with
a routine of my own (started with cognew) ?
also
i'd like a plot routine like this :
plot ( x, y, color)
where color is the pixel color value in a useful RGB form,
(4 intensity levels are enough)
thank you for help !