Search found 95 matches

by RobH
Wed May 28, 2014 10:43 pm
Forum: Flowcode V6
Topic: PWM LEDs at different rates
Replies: 20
Views: 9818

Re: PWM LEDs at different rates

I just now had the chance to try your program on hardware. The lights did not fade as intended. I may have to set up an lcd to show me some human readable info (that, I can do!).
by RobH
Wed May 28, 2014 8:10 pm
Forum: Flowcode V6
Topic: PWM LEDs at different rates
Replies: 20
Views: 9818

Re: PWM LEDs at different rates

Yes, I added turning off porta.3 after reading voltage on port3.0 to the list in my previous message to save power. I assumed it wouldn't need to be on all the time. OK, wish me luck on combining your two examples. Ultimately the list of challenges for me on this learning experience will be: 1. lear...
by RobH
Wed May 28, 2014 2:57 pm
Forum: Flowcode V6
Topic: PWM LEDs at different rates
Replies: 20
Views: 9818

Re: PWM LEDs at different rates

No problem, I can sort that out. I have noticed you have not no hysteresis. Around the change point you will get flickering as well So perhaps we can use If brightness > (ambient light level +9) then LED brightness = 100 and also include brightness < ambient light level then LED brightness = 10 Tha...
by RobH
Wed May 28, 2014 2:20 pm
Forum: Flowcode V6
Topic: PWM LEDs at different rates
Replies: 20
Views: 9818

Re: PWM LEDs at different rates

is it full brightness when ambient sensor see a lot of light to say 10% duty if no light? Can you temporally set LEDs up so they display the the variable value when: a) There is the brightest light and b) The lowest level of light so I can allow for the whole range Martin Yes, LEDs will run at full...
by RobH
Wed May 28, 2014 2:09 am
Forum: Flowcode V6
Topic: PWM LEDs at different rates
Replies: 20
Views: 9818

Re: PWM LEDs at different rates

You have an error - unknown or missing variable: Direction I added it to the file and am playing with your code now. Thanks! edit: I've spent the last 2 hours breaking your code. I was wondering if you could point me in the direction of allowing porte.0 to be an input (already configured in the fcfx...
by RobH
Tue May 27, 2014 5:39 pm
Forum: Flowcode V6
Topic: PWM LEDs at different rates
Replies: 20
Views: 9818

Re: PWM LEDs at different rates

You're right, and I'm glad to know there are interrupts available to use (I didn't use them because I do not know how, I tried). I'm including my loopty-loop (unfinished) code so you can have a laugh, but hey, it works well enough. Keep in mind there are only 3 macros in the unfinished code. There w...
by RobH
Mon May 26, 2014 11:20 pm
Forum: Flowcode V6
Topic: PWM LEDs at different rates
Replies: 20
Views: 9818

Re: PWM LEDs at different rates

It was a generic question about how to make software pwm work in FC6 when you aren't using the specific pins for that purpose on your chip, but I can post a sample if you need it. Pic16f917@internal 8mhz. I may have figured it out but teaching myself is slow going. I'll try my latest idea tonight an...
by RobH
Mon May 26, 2014 5:43 pm
Forum: Flowcode V6
Topic: PWM LEDs at different rates
Replies: 20
Views: 9818

PWM LEDs at different rates

I'll admit my programming skills are a bit lack but I know enough to almost be dangerous. That being said, I've banged my head on this for over 2 weeks to no avail. How in the world do you make 1 LED pwm at 50% while fading another one on or off? Assume LEDs are NOT connected to the ccp pins. So, so...
by RobH
Wed May 21, 2014 1:50 pm
Forum: Flowcode V6
Topic: Think i have found the Base Timing Bug ...
Replies: 11
Views: 7962

Re: Think i have found the Base Timing Bug ...

I fixed my issue by nesting loops.
by RobH
Tue May 20, 2014 2:05 pm
Forum: Flowcode V6
Topic: Think i have found the Base Timing Bug ...
Replies: 11
Views: 7962

Re: Think i have found the Base Timing Bug ...

Is this a similar bug to the one you guys are talking about?

Loop 500 counts of 10ms delays ran fine in simulation, but not on hardware (16f917 intosc). It seemed to get stuck somewhere in a loop. I ended up making two 250 counts of 10ms and it worked fine. Or is this a hardware issue?
by RobH
Tue May 20, 2014 4:27 am
Forum: Feature requests
Topic: UTFT component? perfect for many graphic displays
Replies: 114
Views: 148432

Re: UTFT component? perfect for many graphic displays

Could you also add support for this model: http://www.microsofttranslator.com/bv.aspx?from=&to=en&a=http%3A%2F%2Fwww.14blog.com%2Farchives%2F1358 It only has 4 pins. More info on how some people got it working on Arduino here http://forum.arduino.cc/index.php?PHPSESSID=oo4b8tbgfmloovn3j6mh5plp01&top...
by RobH
Fri May 16, 2014 2:33 pm
Forum: Flowcode V6
Topic: 16F917 44 pin TQFP
Replies: 3
Views: 2737

Re: 16F917 44 pin TQFP

That was the intent. I do a lot better at copying and pasting with a few tweaks here and there. :wink:
by RobH
Fri May 16, 2014 2:34 am
Forum: Flowcode V6
Topic: 16F917 44 pin TQFP
Replies: 3
Views: 2737

16F917 44 pin TQFP

Looks like I get to delve into the world of FCD manipulation for the PIC16F917 to get a 44pin (TQFP) package to show up. I haven't done this yet, and am a little nervous. Before I try and tackle it, I was wondering if anyone had one lying around they'd care to share (the FCD).
by RobH
Tue May 13, 2014 5:55 pm
Forum: Flowcode V6
Topic: MSD (ie - dead horse)
Replies: 0
Views: 1771

MSD (ie - dead horse)

I've read some posts here in the MM forums from the past where users had asked for mass storage device support for PICs. from 2008 - http://w.matrixmultimedia.com/mmforums/viewtopic.php?f=22&t=4986 from 2011 - http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=7&t=8233 It seems that MM has avo...
by RobH
Tue May 13, 2014 1:22 pm
Forum: General Programming
Topic: FCD file for 18FxxK50
Replies: 28
Views: 28764

Re: FCD file for 18FxxK50

The clock speed in the general options should be 48000000. When set to that, could you time (stopwatch) what the delay is? (Depending on the speed I usually time 10 on/off cycles and divide by 10) ' That worked, although, I had to tweak a few config words to get things working smoothly with my curr...
by RobH
Tue May 13, 2014 1:12 pm
Forum: Flowcode V6
Topic: Arduino Programming In Flowcode v6
Replies: 116
Views: 254513

Re: Arduino Programming In Flowcode v6

Arduino clone_pro_micro_V13.fcdx stk500: avrdude.exe: stk500v2_ReceiveMessage(): timeout stk500v1: avrdude.exe: avrdude.exe: stk500_recv(): programmer is not responding / avrdude.exe: stk500_getsync() attempt 1 (thru 10) of 10: not in sync: resp=0x00 stk500v2: avrdude.exe: stk500v2_ReceiveMessage():...
by RobH
Mon May 12, 2014 4:48 am
Forum: General Programming
Topic: FCD file for 18FxxK50
Replies: 28
Views: 28764

Re: FCD file for 18FxxK50

Still running way too fast. I set the clock speed on the general options tab back to 16000000 and like you suggested and double checked the target as 18F25K50, I have this in a C code box at the beginning of my flowchart: osccon = 0b01110000; osccon2 = 0b00010000; // wait for oscillator to tune whil...
by RobH
Mon May 12, 2014 3:40 am
Forum: Flowcode V6
Topic: Arduino Programming In Flowcode v6
Replies: 116
Views: 254513

Re: Arduino Programming In Flowcode v6

Target folder: C:\Users\Robbo\Desktop Source name: C:\Users\Robbo\Desktop\promicro_blink_led_on_10.fcfx Title: Description: Device: AVR.ATMEGA.ATMEGA32U4 Generated by: Flowcode v6.0.7.0 Date: Sunday, May 11, 2014 21:33:22 Users: 1 Registered to: [redacted] Licence key: [redacted] http://www.matrixlt...
by RobH
Sat May 10, 2014 11:51 pm
Forum: General Programming
Topic: FCD file for 18FxxK50
Replies: 28
Views: 28764

Re: FCD file for 18FxxK50

Should I have to tune the clock settings in the build options after setting osccon to 0x7e? If I set the clock settings to 16000000, blinking an LED 1sec makes it blink too fast. If I set the clock setting to ~19387500 it's pretty close.
by RobH
Wed May 07, 2014 6:31 pm
Forum: General Programming
Topic: FCD file for 18FxxK50
Replies: 28
Views: 28764

Re: FCD file for 18FxxK50

kersing wrote:FC6 release 6.0.7 includes support for these devices but requires one fix if you want to use the USB stack.
I do want to use the USB stack. Could someone provide me with some information about the needed fix?
by RobH
Wed May 07, 2014 1:50 am
Forum: General Programming
Topic: FCD file for 18FxxK50
Replies: 28
Views: 28764

Re: FCD file for 18FxxK50

Thanks for that. I couldn't get your hex or compiled fcfx file to work but your fcdx file fixed my problem! Here's my working fcfx file:
porta_blink_1sec.fcfx
PIC18F25K50 - blink port A @1sec on INTOSC @16mhz
(4.44 KiB) Downloaded 328 times
Now on to USB and LCD!
by RobH
Mon May 05, 2014 7:25 pm
Forum: Flowcode V6
Topic: Arduino Programming In Flowcode v6
Replies: 116
Views: 254513

Re: Arduino Programming In Flowcode v6

Thank you. I've actually been studying the Arduino Leonardo.fcdx file and comparing it to the Pro Micro's pins_arduino.h file trying to find the obvious. If I was a programmer by trade I'm sure it'd be a simple fix for me to change it, but then again, if I was a programmer I wouldn't need Flowcode i...
by RobH
Fri May 02, 2014 4:37 pm
Forum: General Programming
Topic: FCD file for 18FxxK50
Replies: 28
Views: 28764

Re: FCD file for 18FxxK50

Thank you. Those verbose descriptions confuse me. Would be nice to be able to toggle them along with the descriptive names. I have had no issues with 16f chips with intosc and no issues with 18F2550 with ecosc, but the 18f25k50 is a beast... Currently trying to use intosc and can't even get a port t...
by RobH
Fri May 02, 2014 4:18 pm
Forum: Flowcode V6
Topic: Arduino Programming In Flowcode v6
Replies: 116
Views: 254513

Re: Arduino Programming In Flowcode v6

Thanks for the help on this. I've added your updated files and tried your suggestions with multiple baud rates at 9600, 19200, 38400, and 57600 with similiar results. Just to be clear, there is no programmer connected between FC6 and the m32u4. There is only the ProMicro attached via usb (com3). C:\...
by RobH
Fri May 02, 2014 12:25 am
Forum: General Programming
Topic: FCD file for 18FxxK50
Replies: 28
Views: 28764

Re: FCD file for 18FxxK50

I'm curious if more work is needed in the config files for the 18f25k50. FOSC = INTOSCIO is not available in the drop down list. I'm not sure if there's more. Other than that, I'm ready to pull my hair out. Does anybody have a LED blinky code for this chip working with FC6? I'd love to study it. And...