Search found 211 matches
- Mon Mar 17, 2014 12:21 am
- Forum: General Programming
- Topic: Constant Current generator
- Replies: 2
- Views: 3560
Re: Constant Current generator
This site has some useful information that might answer your question. http://www.talkingelectronics.com/projects/TheTransistorAmplifier/TheTransistorAmplifier-P2.html#Constant%20Current I have used this device for current limiting led's, it is a small 2 pin device. http://www.mouser.com/ProductDeta...
- Thu Mar 13, 2014 11:42 pm
- Forum: Flowcode V6
- Topic: Return Value:(String) is always "syntax error"
- Replies: 4
- Views: 3437
Re: Return Value:(String) is always "syntax error"
Thank you for pointing that out. I finally got it working by adding a global String variable in the Project explorer. The Return Value:(String) field will accept either a String variable or an Object handle variable. I had mistakenly assumed I could put a Property variable in the Return Value:(Strin...
- Thu Mar 13, 2014 12:07 am
- Forum: Flowcode V6
- Topic: Return Value:(String) is always "syntax error"
- Replies: 4
- Views: 3437
Re: Return Value:(String) is always "syntax error"
Thank you kersing, that makes sense. Progress I guess, the error went from a red to blue background. Now Flowcode thinks the variable "value" is an expression.
- Wed Mar 12, 2014 11:07 pm
- Forum: Flowcode V6
- Topic: Return Value:(String) is always "syntax error"
- Replies: 4
- Views: 3437
Return Value:(String) is always "syntax error"
The GetValue return is always rejected as "syntax error" no matter what type the variable "value" is, i.e text, unsigned integer. Is there a special technique that must be used to define the variable "value" other than in Properties so it won't be rejected as syntax error?
- Tue Mar 11, 2014 12:32 am
- Forum: Forums d'aide en français
- Topic: Pic 16F1509 pour piloter WS2811 et WS2812
- Replies: 6
- Views: 7875
Re: Pic 16F1509 pour piloter WS2811 et WS2812
Thank you for pointing out that application note Pascal. I was very curious about the synchronized SPI and PWM in AN1606 so I made a test program using that information to experiment with. I did not have that microcontroller to test with so I just used one I had. I have attached the program but, a l...
- Mon Mar 10, 2014 10:34 am
- Forum: Flowcode V6
- Topic: Reset Timer1
- Replies: 4
- Views: 3663
Re: Reset Timer1
I think what might be confusing to you is your assumption on #1 of your original post. The statement in 21.3 can be confusing. It does not change your prescaler settings, it resets the prescaler counter, which is exactly what you would expect it to do. So, yes, clear the tmr1l(do that 1st) and tmr1h...
- Sat Mar 08, 2014 11:21 pm
- Forum: User Components
- Topic: Unable to Export Component
- Replies: 6
- Views: 11289
Re: Unable to Export Component
Thank you for the example, nicely done. I will experiment with the SetValue portion. I wish I understood the basic concept of of the other functions and properties and the variables (which don't even seem to act like variables) so I could at least ask a simple question on how to do something in part...
- Sat Mar 08, 2014 9:52 pm
- Forum: Forums d'aide en français
- Topic: Pic 16F1509 pour piloter WS2811 et WS2812
- Replies: 6
- Views: 7875
Re: Pic 16F1509 pour piloter WS2811 et WS2812
You can create your own 16F1509.fcdx file if you like. Here are the steps to create it: 1. Upgrade to Flowcode V6 Pro (you will need the Pro version if you want the PWM component, the Chip Pack version does not include that component). 2.Download the XML editor that dazz suggested. Here is the link:...
- Sat Mar 08, 2014 12:42 am
- Forum: User Components
- Topic: Unable to Export Component
- Replies: 6
- Views: 11289
Re: Unable to Export Component
The tutorial on creating the led component is very well done. It is step by step with clear instructions on how to create it which made it easy for me to learn. Thank you very much for for making that tutorial. I would like to learn more so I can create components that use some of the other function...
- Fri Feb 28, 2014 7:52 pm
- Forum: Flowcode V5
- Topic: Experimental internal temperature macro
- Replies: 8
- Views: 7628
Re: Experimental internal temperature macro
Glad it worked for you. I use the value from the macro to adjust the osctune register. When using the internal oscillator the clock frequency will change depending on the die temperature. This keeps the frequency drift in check.
- Fri Feb 28, 2014 5:53 pm
- Forum: Flowcode V5
- Topic: Flowcode V5, PWM on Pic 16F1829
- Replies: 19
- Views: 11992
Re: Flowcode V5, PWM on Pic 16F1829
If you use 255 as the period then your right, you can't get 100% on. However, if you set the period to a lower value like 254 and set the duty to 255, then you will get 100% on.
- Thu Feb 27, 2014 8:55 pm
- Forum: Flowcode V5
- Topic: Flowcode V5, PWM on Pic 16F1829
- Replies: 19
- Views: 11992
Re: Flowcode V5, PWM on Pic 16F1829
For a true 100% on in hardware, the duty must be greater than the period. If duty=period the pwm output will go low for 1, 4 or 16 fosc/4 cycle(s), depending on your setting of the Clock source of clk/1, clk/4, clk/16 respectively.
- Tue Feb 25, 2014 12:31 am
- Forum: Programming Tips & Tricks
- Topic: Interrupt from a variable
- Replies: 0
- Views: 3904
Interrupt from a variable
I needed a specialized interrupt to occur whenever a variable was set. The typical method of polling a variable to see if it is set just wasn't working well in my application so I made a custom interrupt to do the job. I defined a Flowcode variable to be the interrupt flag of timer6 and then created...
- Sun Feb 23, 2014 9:10 am
- Forum: Flowcode V5 Issues
- Topic: tmr1 and tmr1 ext osc
- Replies: 2
- Views: 6950
Re: tmr1 and tmr1 ext osc
Thanks for pointing this out. Enamul has previously posted a permanent solution detailed here:
http://www.matrixmultimedia.com/mmforum ... +st#p41728
http://www.matrixmultimedia.com/mmforum ... +st#p41728
- Wed Feb 19, 2014 9:52 pm
- Forum: User Components
- Topic: Experimental 2-1/2digit lcd component macro
- Replies: 3
- Views: 8834
Re: Experimental 2-1/2digit lcd component macro
Great tip. So simple but it solves a lot of drawing problems. In the program I used to create the component macro I just selected the display segment group and typed in the z axis field 1 mm (so the segments are above the background) and all the 3d drawing issues magically went away. I have never us...
- Wed Feb 19, 2014 1:39 am
- Forum: User Components
- Topic: Experimental 2-1/2digit lcd component macro
- Replies: 3
- Views: 8834
Experimental 2-1/2digit lcd component macro
I made an experimental simulating component macro for a 2 1/2 digit lcd display and a 16LF1936 and thought I would share. The display is described here: http://www.mouser.com/ProductDetail/Lumex/LCD-S2X1C50TR/?qs=%2fha2pyFaduj%2f9cDOyLeAdwpjnlSEI6OtTOzOZ6xAddzLOkznZbkcPQ%3d%3d The component macro is...
- Tue Feb 18, 2014 11:06 am
- Forum: General Programming
- Topic: Momentary pushbutton debounce help
- Replies: 6
- Views: 6089
Re: Momentary pushbutton debounce help
That type of switch is always a challenge. For snap action switches I insert a delay of 200ms before it is checked again but, for your switch, I would try a quarter or third of a second. I think you will have to change to the the int pin to get rising or falling only for that particular chip.
- Tue Feb 18, 2014 10:34 am
- Forum: Flowcode V6
- Topic: Pickit 3
- Replies: 14
- Views: 9602
Re: Pickit 3
You might have to follow the instructions on this post by Benj:
http://www.matrixmultimedia.com/mmforum ... ork#p52318
http://www.matrixmultimedia.com/mmforum ... ork#p52318
- Thu Feb 06, 2014 3:17 am
- Forum: Flowcode V5
- Topic: Experimental pullup resistors enable macros
- Replies: 0
- Views: 2671
Experimental pullup resistors enable macros
I wrote some code for the internal pullup resistors and thought I would share. I originally wanted to have one macro to handle many chips but, I couldn't figure out how to do it so here is are some examples for three different chips. To use these macros within Flowcode select Macro>Import..., select...
- Thu Feb 06, 2014 2:45 am
- Forum: Flowcode V5
- Topic: Experimental comparator and DAC macros
- Replies: 0
- Views: 2494
Experimental comparator and DAC macros
I wrote some code for the DAC and the comparator and thought I would share.
To use these macros within Flowcode select Macro>Import..., select the macro name and open.
Then drag a macro icon into your program and click on the macro name.
To use these macros within Flowcode select Macro>Import..., select the macro name and open.
Then drag a macro icon into your program and click on the macro name.
- Thu Feb 06, 2014 2:19 am
- Forum: Flowcode V5
- Topic: Experimental RS232 alt pin macro
- Replies: 0
- Views: 2423
Experimental RS232 alt pin macro
I wrote some code for changing the pins on the RS232 component and thought I would share.
To use this macro within Flowcode select Macro>Import..., select the macro name and open.
Then drag a macro icon into your program and click on the macro name.
To use this macro within Flowcode select Macro>Import..., select the macro name and open.
Then drag a macro icon into your program and click on the macro name.
- Thu Feb 06, 2014 2:01 am
- Forum: Flowcode V5
- Topic: Experimental divided clock out macro
- Replies: 0
- Views: 2641
Experimental divided clock out macro
I wrote some code for the divided clock out unit and thought I would share.
To use this macro within Flowcode select Macro>Import..., select the macro name and open.
Then drag a macro icon into your program and click on the macro name.
To use this macro within Flowcode select Macro>Import..., select the macro name and open.
Then drag a macro icon into your program and click on the macro name.
- Thu Feb 06, 2014 1:41 am
- Forum: Flowcode V5
- Topic: Experimental flash memory macros
- Replies: 0
- Views: 2944
Experimental flash memory macros
I wrote some experimental code for erasing, writing and reading flash memory for some 12 and 16 series micros and thought I would share. You should assume there are errors in the code if you attempt to experiment with these macros. You can easily cause damage to your program or the chip or possibly ...
- Thu Feb 06, 2014 1:14 am
- Forum: Flowcode V5
- Topic: Experimental internal temperature macro
- Replies: 8
- Views: 7628
Experimental internal temperature macro
I wrote some code for the internal temperature unit and thought I would share.
To use this macro within Flowcode select Macro>Import..., select the macro name and open.
Then drag a macro icon into your program and click on the macro name.
To use this macro within Flowcode select Macro>Import..., select the macro name and open.
Then drag a macro icon into your program and click on the macro name.
- Wed Feb 05, 2014 11:48 pm
- Forum: Flowcode V5
- Topic: Experimental 2-1/2digit lcd macros
- Replies: 0
- Views: 2499
Experimental 2-1/2digit lcd macros
I wrote code for some easy to use macros and thought I would share. These are written for a 16lf1936 and an lcd display described here: http://www.mouser.com/ProductDetail/Lumex/LCD-S2X1C50TR/?qs=%2fha2pyFaduj%2f9cDOyLeAdwpjnlSEI6OtTOzOZ6xAddzLOkznZbkcPQ%3d%3d It requires 2 macros, one for setup and...