Search found 13 matches

by jbell
Thu Dec 03, 2015 3:59 pm
Forum: Flowcode V4
Topic: Periodically Wrong Delay
Replies: 5
Views: 11976

Re: Periodically Wrong Delay

Hi Medelec, Sorry I haven't gotten back to you, I've been dragged-of to another hot project and have had to shelve this one for awhile. I read your paper on things to check and found it very useful. Disabling the watchdog makes sense, but if you could elaborate on the oscillator being the wrong sett...
by jbell
Wed Dec 02, 2015 12:32 am
Forum: Flowcode V4
Topic: Periodically Wrong Delay
Replies: 5
Views: 11976

Re: Periodically Wrong Delay

Hi Medelec, Thanks for your prompt reply. I'm working with 20 second on/off times for this test with the thumbwheel switches set for that value. Most of the time I get the correct 20/20 period (as shown on the scope shot) so I'm fairly sure the switches are being read correctly and my calculation fo...
by jbell
Tue Dec 01, 2015 11:22 pm
Forum: Flowcode V4
Topic: Periodically Wrong Delay
Replies: 5
Views: 11976

Periodically Wrong Delay

Hi Folks, I'm making a power cycling box that uses 4 thumbwheels to set seconds and minutes of on/off period. I figured I could bang this thing out in a couple of days with a PIC and Flowcode. Everything came together pretty well and it works OK except that every fourth "OFF" period is a fraction of...
by jbell
Wed Jun 13, 2012 11:20 pm
Forum: Flowcode V4
Topic: Compile Error W/BTFSS
Replies: 3
Views: 3200

Re: Compile Error W/BTFSS

Martin,

That's got it!

Thanks a lot for your help....

Jim Bell
by jbell
Wed Jun 13, 2012 4:20 pm
Forum: Flowcode V4
Topic: Compile Error W/BTFSS
Replies: 3
Views: 3200

Compile Error W/BTFSS

Hi Folks, I'm really new to assembly programming, so please bear with me if my problems seem trivial. I'm trying to "Compile To Hex" the attached snippet of code to make a simple timing loop, but it's choking on the BTFSS line. I've come to this conclusion because if I REM the BTFSS line out, it wil...
by jbell
Fri Mar 09, 2012 10:31 pm
Forum: Flowcode V4
Topic: Nine Bit Binary Compare
Replies: 3
Views: 2680

Re: Nine Bit Binary Compare

Thanks very much David and Ben for your thoughts. I figured it would be a stretch trying to do this in Flowcode with the throughput I'm going to need. Nonetheless, I'm gonna ramp my processor up to 40MHz and give it a shot. Worst case I'll have to drop back to a hardware solution and use a couple of...
by jbell
Wed Mar 07, 2012 5:56 pm
Forum: Flowcode V4
Topic: Nine Bit Binary Compare
Replies: 3
Views: 2680

Nine Bit Binary Compare

All, I’m embarking on a project that will require me to compare a binary number from an external source with a binary number entered into Flowcode. If they are the same, an output goes high. All fairly straightforward, except I need to be able to count to 1000 so I need 9 bits. My processor is a PIC...
by jbell
Wed Nov 16, 2011 9:25 pm
Forum: Flowcode V4
Topic: Scaling Up A Delay
Replies: 8
Views: 6033

Re: Scaling Up A Delay

Gary, Your program works better than anything else I've tried. Without any special attention to the "tweaking" adjustments provided for TMR1 I was able to get pretty close. 1X=42uS, 10X=400uS, 100X=3.96mS, 1000x=39.6mS. The clever thing about your approach is that one can put in as many tweaks as ne...
by jbell
Sat Nov 12, 2011 12:51 am
Forum: Flowcode V4
Topic: Scaling Up A Delay
Replies: 8
Views: 6033

Re: Scaling Up A Delay

Gary,

WOW! Thanks very much for sharing this. My efforts at embeding ASM code did not work out as well as I'd hoped, so I'm very eager to try your code.

It's late Friday afternoon here tho', so I won't get a chance to try it out until Monday, but I will give you some feedback.

Thanks,

Jim Bell
by jbell
Wed Nov 09, 2011 10:11 pm
Forum: Flowcode V4
Topic: Scaling Up A Delay
Replies: 8
Views: 6033

Re: Scaling Up A Delay

Thanks, Ben, I'll give it a try...

Jim Bell
by jbell
Tue Nov 08, 2011 8:30 pm
Forum: Flowcode V4
Topic: Scaling Up A Delay
Replies: 8
Views: 6033

Re: Scaling Up A Delay

Well this thread just kinda died out, but I've still got the problem and at this point I'm up against some time deadlines. If I can't find something that works soon I'll have to abandon Flowcode for a hardware oriented solution. I hate to do that, it's a lot more complicated and expensive, but I've ...
by jbell
Thu Sep 29, 2011 4:55 pm
Forum: Flowcode V4
Topic: Scaling Up A Delay
Replies: 8
Views: 6033

Re: Scaling Up A Delay

Martin, Thanks very much for sharing your expertise in trying to solve this problem. I loaded your code into my test hardware and it compiles and runs just fine. The actual results weren’t quite as expected tho’. When I hit the button to trigger the interrupt while looking at pin A0 with a ‘scope, I...
by jbell
Tue Sep 27, 2011 5:15 pm
Forum: Flowcode V4
Topic: Scaling Up A Delay
Replies: 8
Views: 6033

Scaling Up A Delay

I’m trying to implement an accurate time delay to turn an I/O pin on and off which is adjustable from 40uS to 20mS in 40uS steps. I’m presently using a 16F876A with a crystal running at 20MHz, but I’m open to change if needed. I’ve tried a number of scenarios including timer overflow interrupts (on ...