Search found 429 matches

by echase
Wed Mar 13, 2013 12:48 pm
Forum: Flowcode V5
Topic: A/D component - V3 to v5 changes
Replies: 21
Views: 11380

Re: A/D component - V3 to v5 changes

kersing very kindly looked at my code and says : “In Flowcode 3 the code generated for the interrupt is: Code: Generic Interrupt code, calls (level 1) Increment_time, calls (level 2) ADC1_SampleADC (level 3) For Flowcode 5: Code: Generic Interrupt code, calls (level 1) Increment_time, calls (level 2...
by echase
Tue Mar 12, 2013 12:24 pm
Forum: Flowcode V5
Topic: A/D component - V3 to v5 changes
Replies: 21
Views: 11380

Re: A/D component - V3 to v5 changes

Is the stack problem dependent on the processor type? I wonder if the fact that my aforementioned heavily modified code does work properly in v5 and does not compile with a stack error message is because it’s using the more capable/modern but pin compatible 18F14K22 PIC, instead of the 16F690 for th...
by echase
Mon Mar 11, 2013 8:13 pm
Forum: Flowcode V5
Topic: A/D component - V3 to v5 changes
Replies: 21
Views: 11380

Re: A/D component - V3 to v5 changes

Great, that means I do have a clean copy of the v3 file now, named with v20. Just have to reinstall v3, make all the needed tweaks to components and use it for all updates to this project. Is it safe to cut and paste sections of the flowchart, where I have made updates, from v5 back to v3? In long t...
by echase
Mon Mar 11, 2013 6:58 pm
Forum: Flowcode V5
Topic: A/D component - V3 to v5 changes
Replies: 21
Views: 11380

Re: A/D component - V3 to v5 changes

Found some files with v20 endings that probably date back to my v3. Never had v2 so why is v20 used and not v30?
by echase
Mon Mar 11, 2013 2:22 pm
Forum: Flowcode V5
Topic: A/D component - V3 to v5 changes
Replies: 21
Views: 11380

Re: A/D component - V3 to v5 changes

If I have simply opened the file in v5, compiled it to hex without making any change to the flowchart, can I open it now in v3 and get back to exactly the v3 version I had? Hi Echase No as when you compile the flowchart it saves it as a V5 file. if you have the001 file which is a copy of the fcf an...
by echase
Mon Mar 11, 2013 12:11 pm
Forum: Flowcode V5
Topic: A/D component - V3 to v5 changes
Replies: 21
Views: 11380

Re: A/D component - V3 to v5 changes

Can a v5 file be opened with v3 because that might be one way to restore it to working again? No, but you can make your own code in V3 if you really feel that important to do in V3 and also if not too big. [/quote] If I have simply opened the file in v5, compiled it to hex without making any change...
by echase
Mon Mar 11, 2013 11:30 am
Forum: Flowcode V5
Topic: A/D component - V3 to v5 changes
Replies: 21
Views: 11380

Re: A/D component - V3 to v5 changes

Hi If you call any component macro inside the interrupt it will cause stack corruption..Please avoid to use delay and LCD macro which uses delay in any interrupt. Did you mean a delay in an interrupt or delays that happened whist interrupts are in background? I do the latter but not the former. I c...
by echase
Sun Mar 10, 2013 12:56 am
Forum: Flowcode V5
Topic: A/D component - V3 to v5 changes
Replies: 21
Views: 11380

Re: A/D component - V3 to v5 changes

Unfortunately adjusting the Fosc setting has not stopped my A/D returning erratic results some of the time. Could it have anything to do with the error message below and what should I do about it to reduce the stack usage? Don’t understand stacks. The stack message disappears if I remove a block of ...
by echase
Fri Mar 08, 2013 3:26 pm
Forum: Flowcode V5
Topic: A/D component - V3 to v5 changes
Replies: 21
Views: 11380

Re: A/D component - V3 to v5 changes

What units are used for your 0-40 acquisition time? Is it usec as a 690 recommends 11.5 usec?
by echase
Fri Mar 08, 2013 11:32 am
Forum: Flowcode V5
Topic: A/D component - V3 to v5 changes
Replies: 21
Views: 11380

A/D component - V3 to v5 changes

I opened an old v3 project in v5 and it has messed up the A/D performance. I think it is because it has defaulted to a sample time of 1 and speed of Fosc/2. What defaults are normally set and has it changed globally because I used Fosc/2 on another project? The former is OK as I am only using one ch...
by echase
Thu Mar 07, 2013 4:29 pm
Forum: Flowcode V5
Topic: RS485 protocol
Replies: 17
Views: 12577

Re: RS485 protocol

I see my Picoscope has a facility for reading the RS485 port and converting the data to ASCII so I can do some checks with that. At least it can read RS232 so I assume it can also read 485 although I think 485 uses different voltages. Flowcode is suggesting a crystal of 19.66 MHz whereas 20Mhz is cu...
by echase
Thu Mar 07, 2013 10:45 am
Forum: Flowcode V5
Topic: RS485 protocol
Replies: 17
Views: 12577

Re: RS485 protocol

Many thanks. So is \r the ASCII 2 character string for <CR> then? Their manual is thus rather unhelpful in steering me to 13 or 0x0D instead!
by echase
Thu Mar 07, 2013 1:01 am
Forum: Flowcode V5
Topic: RS485 protocol
Replies: 17
Views: 12577

Re: RS485 protocol

Have finally got around to writing this programme. Their protocol is 8 bits, no parity and 1 stop bit. Flowcode says nothing about parity and stop bits. Do I have to add anything to Flowcode to add the stop bit? Their manual says I need to send an ASCII string in form %PVAL:xxyy<CR>. All binary valu...
by echase
Tue Feb 05, 2013 11:14 pm
Forum: Flowcode V4
Topic: I would like to write to Eeprom
Replies: 20
Views: 16025

Re: I would like to write to Eeprom

Thanks Martin for offer but I can work that out myself. Is corruption of EEPROM that common that your test is needed? My values might get deliberately altered only a couple of times in the whole life of the equipment.

Still would be easier to preload the EEPROM.
by echase
Tue Feb 05, 2013 10:48 am
Forum: Flowcode V4
Topic: I would like to write to Eeprom
Replies: 20
Views: 16025

Re: I would like to write to Eeprom

What I would like to do is preload one or two EEPROM locations with set values. Can this be done when loading the hex? Problem with doing it as part of the normal programme is that it rewrites it back to the default value every time you boot and I don't want this as the user may later legitimately c...
by echase
Mon Feb 04, 2013 3:38 pm
Forum: Flowcode V4
Topic: I would like to write to Eeprom
Replies: 20
Views: 16025

Re: I would like to write to Eeprom

I believe in Flowcode they are just random. On real hardware, all addresses default to FF Martin Google tells me that usually the default values in a new EEPROM are all FFh (255). But it does depend on the complier options you are using and some can be set to give other values. In Flowcode v5 are t...
by echase
Sun Dec 09, 2012 1:11 am
Forum: Flowcode V5 Free Edition
Topic: PicKit2 = USB Cable not Connected error
Replies: 26
Views: 20617

Re: PicKit2 = USB Cable not Connected error

Is there any hope for a Flowcode/Microchip update to fix this? Otherwise looks like more and more people will get this problem as they turn to using more modern updates to Windows.
by echase
Fri Nov 30, 2012 3:05 pm
Forum: Article Discussion
Topic: MX024 - MIAC Controlled Underfloor Heating System
Replies: 15
Views: 30982

Re: MX024 - MIAC Controlled Underfloor Heating System

My first house was a Victorian terrace with a floor like that. The previous owner had replaced all the floorboards beautifully using brass screws, as he was a boat builder. When I moved out the new owner was quickly on the phone asking us if we knew the floor was riddled with dry rot. We did not, as...
by echase
Wed Oct 31, 2012 11:18 pm
Forum: Flowcode V5 Free Edition
Topic: PicKit2 = USB Cable not Connected error
Replies: 26
Views: 20617

Re: PicKit2 = USB Cable not Connected error

You can download the Microchip stand alone PICKit 2 programmer software from here. http://ww1.microchip.com/downloads/en/DeviceDoc/PICkit%202%20v2.61.00%20Setup%20A.zip If this works then the PK2CMD app used by Flowcode should also work. Unfortunately not the case. I installed the application from ...
by echase
Tue Oct 30, 2012 7:25 pm
Forum: Flowcode V5 Free Edition
Topic: PicKit2 = USB Cable not Connected error
Replies: 26
Views: 20617

Re: PicKit2 = USB Cable not Connected error

So there is no solution?

Don't know anything about HID.
by echase
Tue Oct 30, 2012 12:50 pm
Forum: Flowcode V5 Free Edition
Topic: PicKit2 = USB Cable not Connected error
Replies: 26
Views: 20617

Re: PicKit2 = USB Cable not Connected error

Any chance of an answer to above please? Way it’s looking at the moment I am going to have to swap my brand new laptop with my wife’s or I won’t be able to programme PICs. Is this a similar problem to the Windows 7 one described here http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=2&t=8097 ...
by echase
Sat Oct 27, 2012 2:28 pm
Forum: Flowcode V5 Free Edition
Topic: PicKit2 = USB Cable not Connected error
Replies: 26
Views: 20617

Re: PicKit2 = USB Cable not Connected error

Get this error message when I try it on my new Windows 7 machine with V5.4 Pro. It has never yet worked to programme a chip. Launching the programmer... C:\Program Files (x86)\Flowcode\v5\Tools\PICkit2\PK2CMD.exe -BC:\Program Files\Flowcode\V5\Tools\PICkit2\ -PPIC18F14K22 -Ftest.hex -M -A5 -R PK2Dev...
by echase
Fri Oct 26, 2012 3:50 pm
Forum: Flowcode V5
Topic: RS485 protocol
Replies: 17
Views: 12577

Re: RS485 protocol

Not a bad idea. I went on one of Microchip's courses and they gave us one of these http://www.microchip.com/pagehandler/en-us/events/trainingseminar2012/tools.html that uses a 16F1939. Wish there was an easier way to select a PIC. I used their tool for selection of 877/4550 equivalents and don’t thi...
by echase
Thu Oct 25, 2012 11:37 pm
Forum: Flowcode V5
Topic: RS485 protocol
Replies: 17
Views: 12577

Re: RS485 protocol

Benj wrote:
The existing chip may have been locked so it cannot be reprogrammed. Worth a go though :)
Now see it is actually a 16C family device so can’t be reflashed. But is pin compatible with many like a 877 so not difficult to change it over. Might try a 18F4550 as more modern.
by echase
Thu Oct 25, 2012 12:19 pm
Forum: Flowcode V5
Topic: RS485 protocol
Replies: 17
Views: 12577

Re: RS485 protocol

I have found an off the shelf remote control with all the right physical interfaces, e.g. right buttons, LEDs and RS485 connectors. It uses a 40 pin PIC of unknown type, as label is obscured, but I suspect it’s a 16F877 as they were ubiquitous when this unit was made. 20 MHz xtal. The 877 datasheet ...