Search found 139 matches

by daveb0360
Fri Aug 05, 2011 10:47 pm
Forum: Flowcode V4
Topic: Decision based on Voltage 'Window'
Replies: 8
Views: 9224

Re: Decision based on Voltage 'Window'

Hi Dave, I have shown this as an alternate way to Ben's. His would be the best if only one function if out of range. E.g only portA1 is activated if out of range You could use my version if an o/p is required ,if Voltage too high, or a different o/p is required if voltage is too low Win Comp.jpg Ma...
by daveb0360
Fri Aug 05, 2011 10:37 pm
Forum: Flowcode V4
Topic: Decision based on Voltage 'Window'
Replies: 8
Views: 9224

Re: Decision based on Voltage 'Window'

Genius !!! Thanks Ben, This works fine. Brings to mind though, the need to explain correct syntaxfor all these commands and functions. Not meaning to be critical because I love the program but since it is intended for engineers that have little or no knowledge of programming languages, it follows th...
by daveb0360
Fri Aug 05, 2011 3:30 pm
Forum: Flowcode V4
Topic: Decision based on Voltage 'Window'
Replies: 8
Views: 9224

Re: Decision based on Voltage 'Window'

Hi John and thanks for the reply. I appreciate you are at work so don't get too involved in this.....would hate to see you get pulled for wasting time. I think I misrepresented what I was trying to acheive. I gave the 1.5V / 3.5V as an example. The precise voltages are not critical. I was approximat...
by daveb0360
Fri Aug 05, 2011 2:57 pm
Forum: Flowcode V4
Topic: 16X2 LCD works, 16X1 doesn't.
Replies: 2
Views: 2050

16X2 LCD works, 16X1 doesn't.

Hi, I am playing with a timing circuit that counts down from a variable set by a pot on ADC...this is working (cimulating) but at the end of the program, the LCD component macro prints the string "End" on the 16X2 LCD which is still present at the end of simulation. Now then, to cut costs, I have su...
by daveb0360
Fri Aug 05, 2011 2:50 pm
Forum: Flowcode V4
Topic: Decision based on Voltage 'Window'
Replies: 8
Views: 9224

Decision based on Voltage 'Window'

Hi, Can somebody help with a problem I have. I need to measure the voltage on ADC1 and create a decision based on the voltage being outside a central window. For example. I want my code to wait for a voltage that is either below 1.5 V or above 3.5V and then trigger external port. In other words, a v...
by daveb0360
Thu Jul 28, 2011 12:47 pm
Forum: Flowcode V4
Topic: 1 to 30 minute timeout based on pot.
Replies: 10
Views: 5557

Re: 1 to 30 minute timeout based on pot.

Hiya, I am seriously mulling this one over and appreciate the offer. I actually think I may be able to sort this one now I've overcome the mystery on using the ADC. Now, if I could just work out how to display the 0 - 30 variable on a dual 7 segment display, I may win this battle without further hel...
by daveb0360
Wed Jul 27, 2011 11:53 am
Forum: Flowcode V4
Topic: 1 to 30 minute timeout based on pot.
Replies: 10
Views: 5557

Re: 1 to 30 minute timeout based on pot.

Hi Martin, Have just had a thought, I could use another ADC on chip to perform the window detector function as well I reckon.....just need to scale the incoming 12V signal down to the 5V PIC rail voltage using resistor divider and a zener to prevent overvoltage at the AD input of the pic. In other w...
by daveb0360
Wed Jul 27, 2011 11:33 am
Forum: Flowcode V4
Topic: 1 to 30 minute timeout based on pot.
Replies: 10
Views: 5557

Re: 1 to 30 minute timeout based on pot.

Hi Martin, Sorry to wate your time with that one.....things don't spring to mind like they used to and I played with the maths in a simulation and worked it out...it's so obvious.......now I'm embarrassed... In actual fact, I placed this code in a calculation box (ADC_Value = ADC_Value*0.0292553+1) ...
by daveb0360
Wed Jul 27, 2011 10:50 am
Forum: Flowcode V4
Topic: 1 to 30 minute timeout based on pot.
Replies: 10
Views: 5557

Re: 1 to 30 minute timeout based on pot.

Hi Martin, forgot to mention that I will probably use internal clock at 4Mhz
by daveb0360
Wed Jul 27, 2011 10:44 am
Forum: Flowcode V4
Topic: 1 to 30 minute timeout based on pot.
Replies: 10
Views: 5557

Re: 1 to 30 minute timeout based on pot.

Hi Martin, Thanks for the reply, however, I have trouble at my age (51) understanding the intricacies of interrupts etc regardless of how they are written and the maths formulas such as "E.g Time_Delay = Read_ADC*11/94+1"............ OK.......I get the 11/94 gives a fraction that multiplied by 255 g...
by daveb0360
Tue Jul 26, 2011 4:47 pm
Forum: Flowcode V4
Topic: 1 to 30 minute timeout based on pot.
Replies: 10
Views: 5557

1 to 30 minute timeout based on pot.

Hi, Can anyone help with some code to create a timer that, once triggered with an external low going signal, starts a timer that will issue a signal after a 1 - 30 mins approx delay, with this timeout being set by a simple pot of value 100K. The timer needs to be able to be cancelled by a button/sig...
by daveb0360
Sat Oct 10, 2009 10:30 am
Forum: Flowcode V4
Topic: Access Violation reading from flash drive
Replies: 25
Views: 12963

Re: Access Violation reading from flash drive

Hi Ben, So what you're saying then, is that there is no need to use the pk2cmd_mtx.exe file from your website any more? (although I am using this....and it works!) and that the PPPV3 entry can be used to determine and/or set bit parameters even if that programmer is not specifically used? Another po...
by daveb0360
Sat Oct 10, 2009 10:09 am
Forum: Flowcode V4
Topic: Single bit to port A4 on 16F628A - HOW
Replies: 5
Views: 3680

Re: Single bit to port A4 on 16F628A - HOW

Hi Again, Despite the code simulating correctly, I tried everything suggested on the hardware including pullup resistor but the output only blinked the LED for a few milliseconds when I pushed the trigger button so have modded the code and the board to use A7 instead which works fine so another less...
by daveb0360
Fri Oct 09, 2009 3:09 pm
Forum: Flowcode V4
Topic: Single bit to port A4 on 16F628A - HOW
Replies: 5
Views: 3680

Re: Single bit to port A4 on 16F628A - HOW

Aha........I knew there had to be a reason.....thanks guys, this doesn't present a problem other than a small mod to the PCB. I havn't defined the output polarity of our signal in the documentation yet so easy to work around. Experience counts it seems!
Cheers again
Dave
by daveb0360
Fri Oct 09, 2009 2:02 pm
Forum: Flowcode V4
Topic: Single bit to port A4 on 16F628A - HOW
Replies: 5
Views: 3680

Single bit to port A4 on 16F628A - HOW

Hi, Can anyone suggest how I output a hi or lo signal to port A4 on a pic16F628A please? I have attached an LED to this port and need the code to switch it on or off at various points in the program........in fact it's not an led but an npn transistor base drive but the principal is the same. I have...
by daveb0360
Fri Oct 09, 2009 9:51 am
Forum: Flowcode V4
Topic: Access Violation reading from flash drive
Replies: 25
Views: 12963

Malware detected

Hi Guys, A little information for you......how significant I don't know but AntiVir has just detected what it describes as malware in the boost c folder. I have pasted the info from their page below and would be interested in your comments. I have told antivir to ignore it now and in the future but ...
by daveb0360
Fri Oct 09, 2009 9:37 am
Forum: Flowcode V4
Topic: Access Violation reading from flash drive
Replies: 25
Views: 12963

Seems to be fixed (crossing fingers) +suggestion

Hi Steve and Ben, If you could see the smile on my face right now......once again, crossing fingers as I write.......so far so good and all that but........ It looks as though the DEP exception trick works!!!!.....yeehaagggghhh. Have rebooted with 4.1.1.55 installed and all the flowcode related .exe...
by daveb0360
Fri Oct 09, 2009 8:43 am
Forum: Flowcode V4
Topic: Access Violation reading from flash drive
Replies: 25
Views: 12963

Re: Access Violation reading from flash drive

Hi Steve and thanks for the input. I,m crossing my fingers as I write but here is what I did since last post. I carried out the re-install from the CD after cleaning the registry and got V4.0.0.57 (I think that was the full version from the CD, you would know better). I rebooted but now can't recall...
by daveb0360
Thu Oct 08, 2009 4:48 pm
Forum: Flowcode V4
Topic: Access Violation reading from flash drive
Replies: 25
Views: 12963

Re: Access Violation reading from flash drive

Many thanks Ben, this may get me out of the mire for now. Strangely, I have now re-installed from the master CD onto the system in the same directory as before without antivirus installed. The files that I produced before will not now open at all giving a window saying unexpected file format. Other ...
by daveb0360
Thu Oct 08, 2009 4:11 pm
Forum: Flowcode V4
Topic: Access Violation reading from flash drive
Replies: 25
Views: 12963

Re: Access Violation reading from flash drive

Hello Dave If you have disabled your antivirus software then you will need to try reinstalling Flowcode. Alternativly a repair might also fix the problem. What I have experienced in the past is that the antivirus will remove the linker file thinking it is a virus. If you simply disable your antivir...
by daveb0360
Thu Oct 08, 2009 3:26 pm
Forum: Flowcode V4
Topic: Access Violation reading from flash drive
Replies: 25
Views: 12963

Re: Access Violation reading from flash drive

As a final attempt at restoring sanity, I am going to uninstall, search the reg for leftover entries, clean and re-install the app from the original disk supplied and ignore the 4.1 update from your site. I'll let you know what happens but this is the last of the available time I can spend on this t...
by daveb0360
Thu Oct 08, 2009 3:19 pm
Forum: Flowcode V4
Topic: Access Violation reading from flash drive
Replies: 25
Views: 12963

Re: Access Violation reading from flash drive

Hi, I have taken on board what you said about the possible interaction of antivirus software and compltely uninstalled it and rebooted. This is the result.... File name: C:\Documents and Settings\Dave\Desktop\DMUFILES\DMUCountdown.c Generated by: Flowcode v4.1.1.55 Date: Thursday, October 08, 2009 1...
by daveb0360
Thu Oct 08, 2009 2:25 pm
Forum: Flowcode V4
Topic: Access Violation reading from flash drive
Replies: 25
Views: 12963

Re: Access Violation reading from flash drive

"Error code 5" means "access denied". It looks like something on your PC is preventing the execution of the linker exe. I suspect the antivirus software. Hi Steve, How could the linker be working fine one minute, go for a cup of tea and then stop working the next.....it makes no sense! Something ha...
by daveb0360
Thu Oct 08, 2009 1:29 pm
Forum: Flowcode V4
Topic: Access Violation reading from flash drive
Replies: 25
Views: 12963

Re: Access Violation reading from flash drive

Hi Ben, am using Antivir 9.00410 Last updated today - on both machines. Comodo Firewall V3.9.95478.509. Set in training mode. The installation is entirely new and no maintenance of any description has been run, not even a defrag yet! Besides, the program only reacted badly when I moved the working f...
by daveb0360
Thu Oct 08, 2009 11:54 am
Forum: Flowcode V4
Topic: Access Violation reading from flash drive
Replies: 25
Views: 12963

Re: Access Violation reading from flash drive

Done nothing except tried to compile to chip again and get a different response this time...this is truly whacky.......see below... ile name: C:\Documents and Settings\Dave\Desktop\DMUFILES\DMUCountdown.c Generated by: Flowcode v4.1.1.55 Date: Thursday, October 08, 2009 13:23:46 Licence: Professiona...