Search found 128 matches

by George_B
Sun Feb 14, 2016 11:26 am
Forum: Flowcode V6
Topic: Modify single 7 Segment LED
Replies: 20
Views: 10621

Re: Modify single 7 Segment LED

Hello, after some testing with 7seg component on hardware, i found that in order to display a custom character correctly you have to define the status for all segments using output component. For example if we want to display letter 'C' (on a common anode 7seg display), we simply use the output comp...
by George_B
Thu Feb 11, 2016 6:14 pm
Forum: Flowcode V6
Topic: Modify single 7 Segment LED
Replies: 20
Views: 10621

Re: Modify single 7 Segment LED

Hi Benj , thanks for your attention and your help. when you simulated the attached program, did you get a proper 'o' letter and after one second a proper 'F' letter and so on? I think the issue that i am facing in FC6 is that the output state of the pins does not change with the "ClearDigit" compone...
by George_B
Thu Feb 11, 2016 2:18 pm
Forum: Flowcode V6
Topic: Modify single 7 Segment LED
Replies: 20
Views: 10621

Re: Modify single 7 Segment LED

Hi Benj,

you can find attached the FC6 file with a simple program showing letter "o" and after 1 sec the letter "F".
by George_B
Thu Feb 11, 2016 8:32 am
Forum: Flowcode V6
Topic: Modify single 7 Segment LED
Replies: 20
Views: 10621

Re: Modify single 7 Segment LED

Hello, i was trying to display characters like "C" , "A", "n" using output component and by setting equivalent pins Hi or Low. It is very weird that in FC4 this works fine but not in FC6! Attached pictures show the FC4 components and the connections of the 7seg display in order to display character ...
by George_B
Mon Feb 08, 2016 5:53 pm
Forum: General Programming
Topic: MCP41010 Digital Pot
Replies: 36
Views: 117504

Re: MCP41010 Digital Pot

Hi Benj, i finally managed to implement potentiometers wiper position control therefore i can control the output resistance.


Thank You very much!
by George_B
Mon Feb 08, 2016 4:36 pm
Forum: General Programming
Topic: MCP41010 Digital Pot
Replies: 36
Views: 117504

Re: MCP41010 Digital Pot

Hello , I am trying to control an MCP41010 device. Since it is the first time i am using the SPI communication, is there any example for in flow code for this device? I cannot understand which three pins are supposed to handle the SPI. Is it RC6 and RC7 and what is the third? Thanks in advance George
by George_B
Sat Jan 30, 2016 2:01 pm
Forum: Flowcode V6
Topic: Minutes of an hour are shown as percentage Solved!
Replies: 7
Views: 5398

Re: Using MOD function

Hello, On 8-bit PIC the floating point calculations are done using functions. It looks like these functions are being referenced from the main program loop and again from the interrupt. If there is the possibility for you to be inside the function when the interrupt kicks in and calls the function ...
by George_B
Tue Jan 26, 2016 11:15 am
Forum: Flowcode V6
Topic: Minutes of an hour are shown as percentage Solved!
Replies: 7
Views: 5398

Re: Using MOD function

Hi, as i said above everything works as expected. I am wondering if there is or will be any problem with those warnings after compile the program. Serious Warning: Possible sw stack corruption, function 'float32_addsub' called by more than one asynchronous thread (main/Task, interrupt, interrupt low...
by George_B
Mon Jan 25, 2016 7:38 pm
Forum: Flowcode V6
Topic: Minutes of an hour are shown as percentage Solved!
Replies: 7
Views: 5398

Re: Using MOD function

Hello LeighM and Benj, thank you very much for your help.

It is now working as expected! I used a slightly different approach from the MOD function but similar to Benj description i managed to have the solution very soon.

Thank you once again!

George
by George_B
Mon Jan 25, 2016 12:45 pm
Forum: Flowcode V6
Topic: Minutes of an hour are shown as percentage Solved!
Replies: 7
Views: 5398

Re: Using MOD function

Hi, thanks for your reply! At the moment i have one variable(float) named Time2Finish in the form : 5.87 (here number 87 means 87% of an hour) How can i end up (using MOD) with the same variable(float) Time2Finish in the form : 5.52 (here number 52 means minutes) ?? Thanks in advance George
by George_B
Sun Jan 24, 2016 5:32 pm
Forum: Flowcode V6
Topic: Minutes of an hour are shown as percentage Solved!
Replies: 7
Views: 5398

Minutes of an hour are shown as percentage Solved!

Hi all, I recently upgraded Flowcode 4 to Flowcode 6 so i enjoy the new environment and i am trying to get used of it! I would like to calculate the remaining time for one task. The issue that i am facing is the form of the calculated remaining time (only minutes) which looks like this : 5.87 (5 hou...
by George_B
Sun Dec 06, 2015 7:15 pm
Forum: Flowcode V6
Topic: Ulong to eeprom
Replies: 7
Views: 4356

Re: Ulong to eeprom

Hi, i did not realized that this was posted for V6. Excusse me for that.

My question was for V4 of flowcode. I tried the example in the link above but i get errors while compiling.
by George_B
Sun Dec 06, 2015 6:16 pm
Forum: Flowcode V6
Topic: Ulong to eeprom
Replies: 7
Views: 4356

Re: Ulong to eeprom

Thank you very much for the reply,

i will have a look on that topic.

I want to discuss something else regarding EEPROM and interrupts as well but i don't know where is the appropriate forum location to post my thought and questions. Any idea or suggestions?

Thanks again
George
by George_B
Sun Dec 06, 2015 3:03 pm
Forum: Flowcode V6
Topic: Ulong to eeprom
Replies: 7
Views: 4356

Re: Ulong to eeprom

Hi, i would like to write and read some floating values (e.g. 3.42 or 34.2) in EEPROM. How can i achive this?

If it matters, i am using PIC18F4523.

Thank you in advance
George
by George_B
Thu Jan 29, 2015 4:34 pm
Forum: Flowcode V6
Topic: Acceleration Decceleration of a Stepper Motor
Replies: 4
Views: 4900

Re: Acceleration Decceleration of a Stepper Motor

Hi Benj, i really thank you for your reply.

At the moment i use flowcode 5, would it be possible to have this example in that previous version of FC5?

Best Regards
George
by George_B
Wed Jan 28, 2015 7:28 pm
Forum: Flowcode V6
Topic: Acceleration Decceleration of a Stepper Motor
Replies: 4
Views: 4900

Re: Acceleration Decceleration of a Stepper Motor

I would be grateful if someone could suggest any article or flowcode example with acceleration - Deceleration of a stepper motor.


Thanks
George
by George_B
Sat Dec 27, 2014 11:28 pm
Forum: Flowcode V6
Topic: Acceleration Decceleration of a Stepper Motor
Replies: 4
Views: 4900

Acceleration Decceleration of a Stepper Motor

Hi, merry christmas and all the best to you and your families! As the title says, i am looking a way to implement an acceleration and deceleration of a stepper motor. I guess it can be done somehow using interrupts for accurate timings for the ramps but i haven't try it yet. Is there any example in ...
by George_B
Sat Oct 25, 2014 7:43 pm
Forum: Flowcode V2 & V3
Topic: change 7 seg from common anode to common cathode ??
Replies: 4
Views: 13449

Re: change 7 seg from common anode to common cathode ??

I will answer to my question above since i found out what the problem was so anybody with this issue can read this solution. The problem was that in the "ShowDigit" custon code (right click on the 7seg component and select custon code) ,where only the port a, b ,c,d,e was defined. For my project i h...
by George_B
Sat Oct 25, 2014 7:16 pm
Forum: Flowcode V2 & V3
Topic: change 7 seg from common anode to common cathode ??
Replies: 4
Views: 13449

Re: change 7 seg from common anode to common cathode ??

Hi to all, i know this is an old thread but i have a question about. I am using single 7-seg components in my program. The device is the 18F8622 I need five single 7-seg components in my program. I am getting the error messages below when i compile to HEX. Que_Informator.c(1740:2): error: unknown id...
by George_B
Sat Aug 10, 2013 6:52 pm
Forum: General Programming
Topic: EEPROM Question
Replies: 20
Views: 13100

Re: EEPROM Question

Any idea please?
by George_B
Mon Jul 22, 2013 10:47 pm
Forum: General Programming
Topic: EEPROM Question
Replies: 20
Views: 13100

Re: EEPROM Question

Hi all! I am facing an issue regarding a Timer program that i am currently working on. I am using an interrupt (TMR0) in order to count seconds and so on.. The problem with my timer is that it is not quite accurate as it should be. The timer runs faster that the internet clock. Is there anything tha...
by George_B
Mon Sep 10, 2012 7:14 pm
Forum: General Programming
Topic: EEPROM Question
Replies: 20
Views: 13100

Re: EEPROM Question

Hi again!! I managed to run and control the stepper motor properly after i tried several examples of coding.. Another think that i want to ask, is it possible to interface the DS1307 to PIC 16F877A using Flowcode? Do i have to use any component from Comms Menu in flowcode? I am trying to make a digi...
by George_B
Fri Aug 31, 2012 4:49 pm
Forum: General Programming
Topic: EEPROM Question
Replies: 20
Views: 13100

Re: EEPROM Question

Thank you very much i appreciate your help !
by George_B
Fri Aug 31, 2012 4:28 pm
Forum: General Programming
Topic: EEPROM Question
Replies: 20
Views: 13100

Re: EEPROM Question

Hi Ben and thanks again!

I did something similar to your design.. the only "problem" is that the pulses are not very fast as i want to be and therefore the speed of the motor is still low..

In your example above, what is the frequency of the pulses if we suppose that the ADC is 0 ?
by George_B
Fri Aug 31, 2012 10:26 am
Forum: General Programming
Topic: EEPROM Question
Replies: 20
Views: 13100

Re: EEPROM Question

Thanks very much for your reply! To be honest i didn't get the way that i have to develop the flowchart to achieve that you just explained. Is there any example of this kind of program in flowcode? Basically, i am trying to control a stepper motor driver (using pulse and direction signals). I can co...