Search found 323 matches

by Creative25
Wed Feb 17, 2016 7:14 pm
Forum: Flowcode V5
Topic: Pic 16 F 1939 program starts to hang.
Replies: 15
Views: 15128

Re: Pic 16 F 1939 program starts to hang.

Hi Benj Thanks for all the info. Now I am getting a bit more understanding and I am busy changing the code. Works great so far. However I ran into problems without getting any warning in the "Building CASM file" Just one more question. The MOD function is a no no in interrupt macros. And others macr...
by Creative25
Wed Feb 17, 2016 12:50 pm
Forum: Flowcode V5
Topic: Pic 16 F 1939 program starts to hang.
Replies: 15
Views: 15128

Re: Pic 16 F 1939 program starts to hang.

Hi Benj. So basically it would be best to be safe would be to just use the + and minus in a timer interrupt and do the rest of the calculation all in the main program. Will it also help to use a different variable outside the interrupt. For example you have the variable "Minutes" in the interrupt. T...
by Creative25
Wed Feb 17, 2016 7:18 am
Forum: Flowcode V5
Topic: Pic 16 F 1939 program starts to hang.
Replies: 15
Views: 15128

Re: Pic 16 F 1939 program starts to hang.

Hi
I do not understand fully.
If I use the plus function like (+) In an interrupt I must not use the plus function at all in the main macro?
Or I must not use the plus function for the same variable? Etc.
by Creative25
Mon Feb 15, 2016 9:12 pm
Forum: Flowcode V5
Topic: Pic 16 F 1939 program starts to hang.
Replies: 15
Views: 15128

Re: Pic 16 F 1939 program starts to hang.

Hi
Thanks for the info.
So I just learned that you should not use the division function within the timer interrupt.
Could you please point me to some more info what functions I should not use in timer interrupt?
Is division function anything like this (hours=minutes/60) etc.

Best Regards:
by Creative25
Sun Feb 14, 2016 9:45 pm
Forum: Flowcode V5
Topic: Pic 16 F 1939 program starts to hang.
Replies: 15
Views: 15128

Re: Pic 16 F 1939 program starts to hang.

Hi Thanks for the modified code. You basically put all the calculations back into the Timer macro. Except the (dislpay=0) And then it all works fine. Also I would not want to split the Hour an tenth. Because I want to use that number to calculate average amp usage in real time. Now I am trying to fi...
by Creative25
Sun Feb 14, 2016 6:08 pm
Forum: Flowcode V5
Topic: Pic 16 F 1939 program starts to hang.
Replies: 15
Views: 15128

Re: Pic 16 F 1939 program starts to hang.

I don't think Watchdogtimer is resetting, numbers like temperature and other numbers like other counters are not affected.
by Creative25
Sat Feb 13, 2016 2:30 pm
Forum: Flowcode V5
Topic: Pic 16 F 1939 program starts to hang.
Replies: 15
Views: 15128

Re: Pic 16 F 1939 program starts to hang.

Hi Benj. I found some code of concern. Attached is the code of concern. This code is about a timer in Hours with two decimals. When I use the calculation (hours=seconds/36) So I want to keep the calculation outside the timer interrupt and put it into the main Program. But it gives me only random Num...
by Creative25
Wed Feb 10, 2016 5:14 pm
Forum: Flowcode V5
Topic: Pic 16 F 1939 program starts to hang.
Replies: 15
Views: 15128

Pic 16 F 1939 program starts to hang.

Hi I have written a quite complex program for temperature control and energy saving. The problem I have Is this. Suddenly the Displays light goes off and the program hangs. (display light intensity is controlled by an Interrupt, with a software pwm) I have enabled watchdog timer. I have only one pla...
by Creative25
Tue Jan 14, 2014 11:45 pm
Forum: Flowcode V5 Issues
Topic: Flowcode 5 failing to compile any code.
Replies: 2
Views: 6716

Re: Flowcode 5 failing to compile any code.

Hi Thanks for the reply. I just wonder why I did not find this thread when I was searching for error 120. I already rebooted my Mac and it did not help. I realised with an Apple computer using parallels a reboot of the computer does not reboot Windows. After rebooting Windows alone instead of reboot...
by Creative25
Tue Jan 14, 2014 6:20 pm
Forum: Flowcode V5 Issues
Topic: Flowcode 5 failing to compile any code.
Replies: 2
Views: 6716

Flowcode 5 failing to compile any code.

Hi I have this issue with Flowcode 5. Since today it refuses to compile any code. I tried some old programs that compiled ok. which I never modified. And even those can not be compiled. I get the following error message: Launching the compiler... C:\Program Files (x86)\Flowcode\v5\Tools\boostc\boost...
by Creative25
Thu Dec 19, 2013 11:06 am
Forum: Flowcode V5
Topic: Using alternate pins for PWM on Pic16F1825
Replies: 9
Views: 7246

Re: Using alternate pins for PWM on Pic16F1825

Hi Benj. Thanks for the answer. I understand your Idea this will work for changing colour, but how would you turn OFF both LED's at the same time? Ok I see the option set duty cycle 10 Bit But the Periosdregister still can have a maximum count of 255 which according to my knowledge is still eight bi...
by Creative25
Thu Dec 19, 2013 8:20 am
Forum: Flowcode V5
Topic: Using alternate pins for PWM on Pic16F1825
Replies: 9
Views: 7246

Re: Using alternate pins for PWM on Pic16F1825

Hi what I actually was thinking of is Half bridge mode. I guess this will not work because both pins will have the same duty cycle, so probably it will be best to stick to the Software Pwm in the Code a posted in the beginning. I have another question. How do change the PWM to 10 bit mode? The data ...
by Creative25
Wed Dec 18, 2013 2:23 pm
Forum: Flowcode V5
Topic: Using alternate pins for PWM on Pic16F1825
Replies: 9
Views: 7246

Re: Using alternate pins for PWM on Pic16F1825

Hi Kernix What I actually want is to change color not brightness. So I alternate between read and green very fast at least 200 Hz and changing the duty cycle to have the color I want. If Red is 90% then green is 10% If red is 50% green is 50% etc. If red is on green is off if green is on red is off....
by Creative25
Tue Dec 17, 2013 8:20 am
Forum: Flowcode V5
Topic: Using alternate pins for PWM on Pic16F1825
Replies: 9
Views: 7246

Re: Using alternate pins for PWM on Pic16F1825

Hi Kernix Thanks for your answer. So I was certain this PWM was working. The fault was on hardware. One of the vias was not connected, and therefore the Pic16F1825 did not have a proper ground. So when the input to the ADC was 0 Volt it must have gotten ground through the ADC. Since I fixed this Via...
by Creative25
Fri Dec 13, 2013 8:36 am
Forum: Flowcode V5
Topic: Using alternate pins for PWM on Pic16F1825
Replies: 9
Views: 7246

Using alternate pins for PWM on Pic16F1825

Hi. I just wrote a program for using a Hardware PWM with also a software PWM I get the strangest things with it. If I use the software PWM only it works fine. As soon as the Hardware PWM is enabled the software PWM becomes unstable. I also have a ADC input on pin Number 7 for measuring voltage. When...
by Creative25
Thu Nov 21, 2013 10:53 am
Forum: General Programming
Topic: Different variable types in calculation?
Replies: 5
Views: 5196

Re: Different variable types in calculation?

Hi I am Talking about Flowcode5
Using a program in real Hardware.
A Pic 16F1939
My code is working now. I just want to learn More about variables.
Best Regards.
Uli
by Creative25
Wed Nov 20, 2013 3:52 pm
Forum: General Programming
Topic: Different variable types in calculation?
Replies: 5
Views: 5196

Re: Different variable types in calculation?

Hi Benj
Thanks for the Info.
What I have noticed is that some calculations gave a return of 0 instead of the right result.
"A=(b*c)/d"

After I broke the calculation down into smaller ones

"A=b*c
A=a/d"

it works fine.

Best Regards:
Uli
by Creative25
Wed Nov 20, 2013 7:42 am
Forum: General Programming
Topic: Different variable types in calculation?
Replies: 5
Views: 5196

Different variable types in calculation?

Hi I have a question about calculations. Is it possible to use different variable Types in the same calculation? C=A/B Say the result "C" is bigger than 255 therefore it needs a Int variable. "A" is a long number therefore it needs a Long variable and "B" is always less than 255 therefore it only ne...
by Creative25
Mon Nov 18, 2013 8:08 am
Forum: Flowcode V6
Topic: Help with Interupt please
Replies: 38
Views: 19954

Re: Help with Interupt please

Hi Acestu I find some things in your code that I do not understand. First the macro tick is empty are you not using it anymore? Secondly I do not understand what you want to do with the boost macro. Are you checking if all the Timer Status variables are 0 ? If that is what you want to do I guess you...
by Creative25
Thu Nov 07, 2013 9:32 am
Forum: Components (Comms)
Topic: I2C and the MCP9800 Temperature sensor
Replies: 45
Views: 42192

Re: I2C and the MCP9800 Temperature sensor

Hi I have modified this code so that I can have a plain number. Because I want to use the tempf variable in a calculation in order to switch a transistor. I have used this code for several months now but somehow I suspect there is something wrong. It seems that minus temperatures are not displayed c...
by Creative25
Tue Oct 22, 2013 8:50 am
Forum: Bug reports
Topic: Activation not working on apple computer.
Replies: 11
Views: 14057

Re: Activation not working on apple computer.

Hi Kersing
Thanks for the reply:
I renamed the files and it is now in english.

Best Regards:
Uli
by Creative25
Tue Oct 22, 2013 8:46 am
Forum: Flowcode V6
Topic: Interupt Settings
Replies: 5
Views: 4532

Re: Interupt Settings

Hi Martin Thanks I see the 19.6609MHz xtal gives some nice interrupt Frequencies and makes things easier. I am using the Internal Oscillator at 32MHZ , the only Frequency I found that has no decimal point was 3125Hz. I realize it is slowing down the program unnecessarily. Is there a simpler way to c...
by Creative25
Sun Oct 20, 2013 8:25 pm
Forum: Bug reports
Topic: Activation not working on apple computer.
Replies: 11
Views: 14057

Re: Activation not working on apple computer.

Hi I downloaded the patch, Now I can open the files from the forum. Unfortunately flowcode is showing in German. I guess because I am using a german keyboard. I trie to change the Language to Englisch, but I can not find the option for english in the drop down menu. I can see German French Arabic Da...
by Creative25
Thu Oct 17, 2013 2:54 pm
Forum: Bug reports
Topic: Activation not working on apple computer.
Replies: 11
Views: 14057

Re: Activation not working on apple computer.

Hi I will try downloading the patch when it is convenient. Our internet is very slow. Is there a direct link to the patch? If I want to do it from Flowcode Help. Then I am forced to use windows to download it I would prefer to use the apple program. It is safer for me. As for the flowcode5 programs ...
by Creative25
Wed Oct 16, 2013 8:52 am
Forum: Bug reports
Topic: Activation not working on apple computer.
Replies: 11
Views: 14057

Re: Activation not working on apple computer.

Hi I downloaded the Flowcode6 release version Registration worke fine. But Some files I downloaded from the forum do not open. File name "20min.fcfx" Error message. "Failed to open document Attribute <Array>is not found." I was downloading flowcode6 in the hope that I can use it to participate in th...