Search found 8 matches

by HMS
Wed Aug 17, 2011 6:46 pm
Forum: General Programming
Topic: D FlipFlop???
Replies: 2
Views: 2678

D FlipFlop???

Whats the best way to build a D-FlipFlop in Flowcode 4?
Tried to build it with an Atmega8 but I wasnt able to do this
by HMS
Mon Jun 27, 2011 7:09 pm
Forum: Flowcode V4
Topic: control PWM duty cycle with input (hold input for time) Atm
Replies: 2
Views: 2278

control PWM duty cycle with input (hold input for time) Atm

Hi,

I made this little program,

I asked this in another thread but I wasnt abel to do this.

My problem is that I would like to change the PWM Signals when an Input (pushbutton is pressed) is done.

If switch "left" is pressed the left PWM (output left) should be around 30% duty cycle and hold for ...
by HMS
Thu Jun 23, 2011 8:52 pm
Forum: Flowcode V4
Topic: Layout in Flowcode 4. Need help. LEDs and Switches
Replies: 9
Views: 5218

Re: Layout in Flowcode 4. Need help. LEDs and Switches

Hi,

thanks very very much again.
I had to to a lot of work, so i was not able to work on this.
Today I programmed my Atmega8 the first time.

And now there is a Problem.
Its not really working.

The LED is not turning on when I push and release the button.
No It only turns on when I hold the button ...
by HMS
Mon Jun 13, 2011 2:50 pm
Forum: Flowcode V4
Topic: Layout in Flowcode 4. Need help. LEDs and Switches
Replies: 9
Views: 5218

Re: Layout in Flowcode 4. Need help. LEDs and Switches

Hey thanks very much for everything.
I tried now to add a second switch and a second led.

but without success.
Only the first macro starts.

whats the best way to do this.
by HMS
Thu Jun 09, 2011 9:49 pm
Forum: Flowcode V4
Topic: Layout in Flowcode 4. Need help. LEDs and Switches
Replies: 9
Views: 5218

Re: Layout in Flowcode 4. Need help. LEDs and Switches

that looks great.
i will give this a try tomorrow mornig.

thanks thanks
by HMS
Thu Jun 09, 2011 7:33 pm
Forum: Flowcode V4
Topic: Layout in Flowcode 4. Need help. LEDs and Switches
Replies: 9
Views: 5218

Re: Layout in Flowcode 4. Need help. LEDs and Switches

Hi,

thanks for this info, but i dont understand this, because my english is not the best :-(
can you make a small example for me in a "*.fcf_avr" file?

that would be great.


the pwm signals are working at the moment :-)
by HMS
Thu Jun 09, 2011 11:59 am
Forum: Flowcode V4
Topic: Layout in Flowcode 4. Need help. LEDs and Switches
Replies: 9
Views: 5218

Re: Layout in Flowcode 4. Need help. LEDs and Switches

and with the software pwm it is possible to do this?
then i will try this.

one other question.
I want to light up one of the leds when a toogle to make switch is pressed for one time, but the the led should light up 2 seconds longer then the switch is pressed. The delay funktion is not working ...
by HMS
Thu Jun 09, 2011 7:07 am
Forum: Flowcode V4
Topic: Layout in Flowcode 4. Need help. LEDs and Switches
Replies: 9
Views: 5218

Layout in Flowcode 4. Need help. LEDs and Switches

OK I have to do a little project in Flowcode 4 in university but I have some problems.
I am using an ATmega8 micro controller.

I have 4 Input signals and 8 output LEDs.

0 = off / LED (PWM 0%)
1 = on / LED (PWM 100%)
2 = LED (PWM 30%)

IF THEN
INP0 = 0 OUT0 .. OUT2 / OUT4 .. OUT6 = 1
INP0 = 1 OUT0 ...