Search found 139 matches

by daveb0360
Fri May 02, 2014 11:20 am
Forum: Flowcode V4
Topic: Standalone EEprom programmer
Replies: 3
Views: 6759

Re: Standalone EEprom programmer

Incidentally, the first step advised is to read the contents of the eeprom and store it as a dump in case I need to revert back to original !!
by daveb0360
Fri May 02, 2014 10:51 am
Forum: Flowcode V4
Topic: Standalone EEprom programmer
Replies: 3
Views: 6759

Re: Standalone EEprom programmer

Cheers Martin.........hope you and yours are well. Wouldn't know where to start on this and no time to learn....It's for my Car, the BSI ECU module got corrupted by a low battery event and could not be reprogrammed at the dealer. (£590 for a new one !!) The upshot is that I bought a used BSI to repl...
by daveb0360
Tue Apr 29, 2014 5:37 pm
Forum: Flowcode V4
Topic: Standalone EEprom programmer
Replies: 3
Views: 6759

Standalone EEprom programmer

Hi, Is it possible to create a pic project to design a programmer to program M95256 SPI eeproms What is needed.........can PICKIT 2 program spi eproms from this family directly or does it just program Microchip products. Basically, I want to flash a 95256 eeprom with FF's Perhaps I need to develop a...
by daveb0360
Wed Sep 12, 2012 1:24 pm
Forum: General Programming
Topic: Delay error during compile.
Replies: 1
Views: 9665

Delay error during compile.

Hi, I have completed code which seems to work but during compile to hex, I get the following error showing. "Caution: argument of 'delay_us' calls must have a value of 1 or more Caution: Delay inaccurrate: 'delay_us', Delay overhead:0.01ms, Unit delay:0.001ms, Delay resolution:4 units" Is this somet...
by daveb0360
Fri Aug 31, 2012 11:40 pm
Forum: Flowcode V4
Topic: Skip a test loop if first read is false otherwise loop
Replies: 11
Views: 8268

Re: Skip a test loop if first read is false otherwise loop

Hi Enamul......totally correct........this idea is to make certain that the threshold is definite and not just a transient.

Dave
by daveb0360
Fri Aug 31, 2012 5:24 pm
Forum: Flowcode V4
Topic: Skip a test loop if first read is false otherwise loop
Replies: 11
Views: 8268

Re: Skip a test loop if first read is false otherwise loop

Hi,
I finally got it............seems complex but works in simulation well.
If anyone can spot anything wrong, please let me know.

Dave
by daveb0360
Fri Aug 31, 2012 5:12 pm
Forum: Flowcode V4
Topic: Skip a test loop if first read is false otherwise loop
Replies: 11
Views: 8268

Re: Skip a test loop if first read is false otherwise loop

Actually, just decided this doesn't work.
I need a decision of 'satisfied condition' OR ' NOT satisfied condition when loop exits..........not during each pass of the loop.

hmmmm......close but not quite there..

Dave
by daveb0360
Fri Aug 31, 2012 4:21 pm
Forum: Flowcode V4
Topic: Skip a test loop if first read is false otherwise loop
Replies: 11
Views: 8268

Re: Skip a test loop if first read is false otherwise loop

Hi all, I think I solved it.........what do you think of this method.. And, doing it this way, I get to re-use the count variable for the next stage.... Basically, I don't want the program to waste time testing until the first 'true' value is present at first test.......but if first value is true, t...
by daveb0360
Fri Aug 31, 2012 4:11 pm
Forum: Flowcode V4
Topic: Skip a test loop if first read is false otherwise loop
Replies: 11
Views: 8268

Re: Skip a test loop if first read is false otherwise loop

Put another way.
If first test is true - start to test another 10 times in a loop.
If on 5th (or 6th, 7th etc.) loop - fail is detected - exit loop and skip to next test.

This might be easier to understand..

Dave
by daveb0360
Fri Aug 31, 2012 4:08 pm
Forum: Flowcode V4
Topic: Skip a test loop if first read is false otherwise loop
Replies: 11
Views: 8268

Re: Skip a test loop if first read is false otherwise loop

For example....the first icon. - IF ((DegC>954)||(DegC<250)) False = skip to next decision icon. True = test another 10 times.............if true for the 10 times = then true........if true for <10 times......then false at first fail - skip to next decision. Decision is YES only if condition satisfi...
by daveb0360
Fri Aug 31, 2012 4:00 pm
Forum: Flowcode V4
Topic: Skip a test loop if first read is false otherwise loop
Replies: 11
Views: 8268

Re: Skip a test loop if first read is false otherwise loop

Hi Enamul, It's more important that I create this 'hysteresis' method that does not carry out unnecessary tests....I'm sure you can see what I mean. The ability to skip a test if the value is nowhere near but test multiple times if first value is true......is a great way to keep speed consistency wi...
by daveb0360
Fri Aug 31, 2012 3:32 pm
Forum: Flowcode V4
Topic: Skip a test loop if first read is false otherwise loop
Replies: 11
Views: 8268

Skip a test loop if first read is false otherwise loop

Hi all, As part of an ongoing thermal control project, I have a flowcode that tests for various valid temperature points and decisions are made depending on value read. I have set up a macro that reads the ADC 64 times and creates an average Integer value at each pass. The problem is that the temper...
by daveb0360
Thu Aug 30, 2012 1:08 pm
Forum: Flowcode 4 Bugs
Topic: Watchdog slowing program down
Replies: 13
Views: 13562

Re: Watchdog slowing program down

Hi Dave, The watchdog command simply resets the watchdog count register back to 0 so there is no problem with calling it repeatedly. From the top of my head the auto clear watchdog command adds the function to delays and hardware macro calls so if you have multiple of these calls in a loop then it ...
by daveb0360
Thu Aug 30, 2012 12:52 pm
Forum: Flowcode 4 Bugs
Topic: Watchdog slowing program down
Replies: 13
Views: 13562

Re: Watchdog slowing program down

Hi, Thanks Martin, I understand what you're doing. i don't have the luxury of hyperterminal in Win7 64Bit pro. Don't know why they would drop such basic functionality......it hardly bloats the OS ! There are alternative comm apps on the net I can explore but for now, I'll run with this. Certainly wo...
by daveb0360
Thu Aug 30, 2012 2:33 am
Forum: Flowcode 4 Bugs
Topic: Watchdog slowing program down
Replies: 13
Views: 13562

Re: Watchdog slowing program down

Hi Martin, This is brilliant..........I can see what you are doing and although it hasn't cured the problem, this is only because the overall loop time needs to be included in the timings which I hadn't accurately done......I can take this from here so BIG thanks to you. I am going to add a diag out...
by daveb0360
Wed Aug 29, 2012 10:28 am
Forum: Flowcode 4 Bugs
Topic: Watchdog slowing program down
Replies: 13
Views: 13562

Re: Watchdog slowing program down

Hi Martin, I have tried what you suggested and there is approx 30% increase in timing of main program loop. I will try and set up scope and publish the traces shortly but in the interim, could it be because the watchdog icon is in the read macros that are looping 64 times within the main loop? would...
by daveb0360
Tue Aug 28, 2012 10:23 am
Forum: Flowcode 4 Bugs
Topic: Watchdog slowing program down
Replies: 13
Views: 13562

Watchdog slowing program down

Hi, I have almost finished my code with great thanks to members debugging my efforts. I learned a lot in the process. However, a final part of the project was to have watchdog enabled to avoid lockups since my project is fairly critical. As soon as I run the code with watchdog icon and auto clear wa...
by daveb0360
Fri Aug 24, 2012 3:15 pm
Forum: Flowcode V4
Topic: Problem with heaps & Stacks when compiling
Replies: 15
Views: 11932

Re: Problem with heaps & Stacks when compiling

Hi Guys, Since the use of WDT is so complex and fraught with possible problems, would someone mind 'inserting' and configuring it into my code for me when I've finished it please. It's such an important aspect to my design that I don't want to 'trial and error' it. Ideally, I'd like to use external ...
by daveb0360
Thu Aug 23, 2012 12:40 pm
Forum: Flowcode V4
Topic: Problem with heaps & Stacks when compiling
Replies: 15
Views: 11932

Re: Problem with heaps & Stacks when compiling

Understood Enamul,
But......This circuit MUST have a way of preventing lock up to avoid the heater going overtemp during use.

Any suggestions?

Dave
by daveb0360
Wed Aug 22, 2012 5:51 pm
Forum: Flowcode V4
Topic: Problem with heaps & Stacks when compiling
Replies: 15
Views: 11932

Re: Problem with heaps & Stacks when compiling

Hi Guys, It would seem, It is still unknown why it wasn't working but I suspect it was the WDT symbol entered at the top of the code........when I removed it and disabled it in config (see image)......the 617 works in the breadboard. I'm not going to try the 675 now as I suspect it's the same issue....
by daveb0360
Wed Aug 22, 2012 1:52 pm
Forum: Flowcode V4
Topic: Problem with heaps & Stacks when compiling
Replies: 15
Views: 11932

Re: Problem with heaps & Stacks when compiling

Hi Enamul, I have used this PK2 with lots of different pics in the past without issue. However, until the last update, the PK2 was not compatible with 617...I had to download an updated definition file to make 617 appear in the supported list. MPLAB application still lists the 617 as 'NOT SUPPORTED'...
by daveb0360
Wed Aug 22, 2012 11:36 am
Forum: Flowcode V4
Topic: Problem with heaps & Stacks when compiling
Replies: 15
Views: 11932

Re: Problem with heaps & Stacks when compiling

Hi Enamul, The problem is more serious. I wrote the code for the 12F617 but had a 675 soldered to the board.........I changed chip in FC to 617 and exported files to hex etc. No Problems. However, NOW the programmer is destroying my 617 chips during programming!!! :evil: :twisted: :? Of Course, I'd ...
by daveb0360
Wed Aug 22, 2012 1:04 am
Forum: Flowcode V4
Topic: Problem with heaps & Stacks when compiling
Replies: 15
Views: 11932

Problem with heaps & Stacks when compiling

Hi All, With much help from certain class individuals on the forum, I got my code working in simulation and in Real Pic. We wrote the code around a 12F617. However, I then tried to recompile for a 12F675 as my target board had this in place - soldered. I changed the chip configuration in FC and re-e...
by daveb0360
Mon Aug 20, 2012 6:37 pm
Forum: Flowcode V4
Topic: ADC Averaging macro
Replies: 13
Views: 9332

Re: ADC Averaging macro

Hi Enamul, I never thought you interfered at all ! please don't think that. Martin and yourself have been tremendously helpful. I went my own way because, for whatever reason, Martin and I could not get the code to work reliably and it was eating up loads of his time! I haven't lost faith, I just di...
by daveb0360
Mon Aug 20, 2012 6:09 pm
Forum: Flowcode V4
Topic: ADC Averaging macro
Replies: 13
Views: 9332

Re: ADC Averaging macro

Thanks guys, I got the warning about the variables and immediately understood what it was saying. Modified, added the necessary variables and trialled a compile.......no errors !! (I'd be on my bugle now if I had one... :lol: Now just the switch to configure.....(left the hardest bit till the end.. ...