Search found 97 matches

Return

by DavidA
Wed Aug 10, 2011 2:35 pm
Jump to forum
Jump to topic

PLEASE READ BEFORE POSTING IN THIS FORUM!

This forum is for posting programming tips and tricks only. If you would like to share projects, programming methods, other tips to help out other users then post away. ***This forum is NOT for questions or technical support*** If you post topics like these your thread will be moved to a more relava...
by Benj
Mon Jan 05, 2015 11:44 am
Jump to forum
Jump to topic

Re: Available RAM in the PIC16F676

Hello, The Heap size refers to the software stack used and created by the Sourceboost compiler. We can't really do anything about this at the moment. If you need more RAM then my advice would be to use one of the newer chips e.g. 16F18xx or 16F19xx, they are far more capable and usually come with a ...
by Benj
Mon Jan 05, 2015 12:47 pm
Jump to forum
Jump to topic

Re: Available RAM in the PIC16F676

Hello, Flowcode 6 uses C in the background so using the same C compiler (BoostC) would likely use exactly the same amount of memory. i.e. the heap to allow the BoostC routines to function. Using a different C compiler will probably give you better results. However the XC8 compiler is probably the be...
by kersing
Wed May 06, 2015 7:33 pm
Jump to forum
Jump to topic

Re: Characters/Letters on the 7 Seg Display

Please post questions in the Flowcode 6 forum, "tips and tricks" is for sharing your clever solutions, not to start new topics with an question.
by JFinlayson
Mon Jan 06, 2014 6:38 pm
Jump to forum
Jump to topic

Having trouble with print string on displays

Hi having trouble with displays I was trying to use LCD but it kept having some problems so ordered new programmer and LCD board from Matrix. Then went on to try things with the GLCD board EB043. Graphics and print number OK but unable to print strings using print command either does not print at al...
by medelec35
Sun Apr 26, 2015 11:44 am
Jump to forum
Jump to topic

Re: Error message when compiling

Hi Brian, Serious Warning: Possible sw stack corruption, function 'FC_CAL_Port_In_DDR__x' called by more than one asynchronous thread (main/Task, interrupt, interrupt low) Serious Warning: Possible sw stack corruption, function 'FCI_TOSTRING' called by more than one asynchronous thread (main/Task, i...
by LeighM
Thu Sep 07, 2017 9:53 am
Jump to forum
Jump to topic

Re: Macro "Locking"

Hi, We do not have any facility to lock or write protect projects. But what you can do is create your own component from a project. That way you can provide the functionality of the macros from your project, exposing these for use by anyone else using your component. They will be able to use these i...
by Benj
Tue Sep 12, 2017 3:22 pm
Jump to forum
Jump to topic

Re: Macro "Locking"

Hello,

In v5-v7 if you Export a macro then you can Export it as "Read Only" and as "Private".

Using the Macro -> Export menu.

You can then import the macro into other projects and it will then not be editable or viewable based on your export settings.
by LeighM
Fri Nov 18, 2016 10:33 am
Jump to forum
Jump to topic

Re: Use the timer as counter for external pulses

Hi,
Try the attached.
(Change the target device to your 16F887)
Regards,
Leigh
by LeighM
Wed Oct 18, 2017 1:52 pm
Jump to forum
Jump to topic

Re: Use the timer as counter for external pulses

ah, right, sorry.
Yes you need to use t0con and tmr0l
by medelec35
Fri Jun 07, 2013 8:22 pm
Jump to forum
Jump to topic

Re: Problem programming Chip

Hi JDR04, If you post the flowchart your now using, then I can take a look at it for you and make adjustments if necessary.

Martin

Edit: I have posted a program for you to try.
You must make sure JP1 And JP2 are connected.
by Steve001
Thu Aug 23, 2018 12:55 pm
Jump to forum
Jump to topic

Re: MODBUS Slave

Hi Abhi

Had a quick look at your chart

Didn't see a "Modbus address" set .

https://www.matrixtsl.com/wiki/index.php?title=Component:_Modbus_Slave_(Comms:_System)#SetSlaveAddress

Steve
by Benj
Thu Aug 23, 2018 5:27 pm
Jump to forum
Jump to topic

Re: MODBUS Slave

Hi Abhi, Not sure if this is useful for you or not but I have just added a Modbus demo here using vNet so you can use one instance of Flowcode to control another instance of Flowcode. Please note I managed to fix a couple of bugs in the update related with the Modbus slave data receive in simulation...
by medelec35
Mon Jan 29, 2018 10:35 am
Jump to forum
Jump to topic

Re: PWM stops working...

Hi Graham,
You're welcome.
Have you tested to see if it still freezes?
Lord Grezington wrote:Caution: argument of 'delay_us' calls must have a value of 1 or more

Benj answered that one here

Martin
by medelec35
Mon Oct 15, 2018 10:05 am
Jump to forum
Jump to topic

Re: EEProm Initialize Help?

When sending hex to chip the programmer default setting is to erase all EEPROM values = 255 So if not wrote to EEPROM after programming chip then the value will be 255, that is expected. Your program needs to write to EEPROM if the value read is 255. After then when power is removed/restored then EE...
by medelec35
Mon Oct 15, 2018 2:43 pm
Jump to forum
Jump to topic

Re: EEProm Initialize Help?

In main, before the main loop just read the value of EEPROM.
If value = 255 then write new default value to EEPROM.
Then when power is restored next time the value won't be 255 so the new default value will not be written to EEPROM.
by Benj
Mon Oct 15, 2018 5:25 pm
Jump to forum
Jump to topic

Re: EEProm Initialize Help?

It's been a long while since I looked at Flowcode 5 and I could be overlooking some problem but the initial values field should set the EEPROM values after programming. Here is the programming sequence. Delete EE Contents - all values set to 255 Program initial values - anything with an initial valu...
by LeighM
Fri Jan 04, 2019 1:38 pm
Jump to forum
Jump to topic

Re: MODBUS Slave

Hi Abhi, Thanks for the update, glad you got it working. As for parity, the device (16F1938) does not have hardware parity generation. Hence we would need to make changes to the Modbus component to do this in software. I'm not sure that we currently have the time to do this, but I'll see what Ben th...
by Benj
Mon Jan 07, 2019 1:39 pm
Jump to forum
Jump to topic

Re: MODBUS Slave

Hello, My take on this is it should be possible but it would certainly be a software addition to the CAL UART where we increase the data bits from 8 to 9 ( or 7 to 8 ) to allow us to add a calculated parity bit when sending data. For completeness we would also need to check the parity bit against re...
by medelec35
Thu Jun 29, 2017 8:20 pm
Jump to forum
Jump to topic

Re: FC7 Professional - Compiler XC8

Hi Manuel, Memory Summary: Program space used F03h ( 3843) of 2000h words ( 46.9%) Data space used ACh ( 172) of 170h bytes ( 46.7%) EEPROM space used 0h ( 0) of 100h bytes ( 0.0%) Data stack space used 0h ( 0) of 60h bytes ( 0.0%) Configuration bits used 1h ( 1) of 1h word (100.0%) ID Location spac...
by Jan Lichtenbelt
Sun Feb 25, 2018 11:21 am
Jump to forum
Jump to topic

GLCD error message

My first try to use the GLCD with SSD1306 driver and using I2C, gives two errors: Test GLCD SSD1306 I2C_V1.c: 181: (1250) could not find space (128 bytes) for variable _FCV_0cc51_gLCD_SSD1306_i2c1__DRAM7 Test GLCD SSD1306 I2C_V1.c: 181: (1262) object "_FCV_0cc51_gLCD_SSD1306_i2c1__DRAM7" l...
by gdt
Mon Feb 26, 2018 4:14 pm
Jump to forum
Jump to topic

Re: GLCD error message

Hi,
it doesn't mean that the RAM is used only for the display.
If you want to make a test, just define the display 64x64 and compile. Then you will see how much RAM is used.
Regards
Giuseppe
by Jan Lichtenbelt
Wed Feb 28, 2018 8:22 pm
Jump to forum
Jump to topic

Re: GLCD error message

Setting flowcode to 128x64, I get a RAM overflow with 16F1847. Setting it to 128x32, it works fine.

Kind regards

Jan Lichtenbelt
by QMESAR
Wed Jan 23, 2019 3:10 pm
Jump to forum
Jump to topic

Re: 18F25K80 AND 18F24K22 MODBUS SLAVE PROBLEM

HI
Ok you posted in the FC 7 forum please post in the FC8 forum next time around :D .

Your code (FC chart) compile fine for me in FC8 V8.1
Please update to FC V8.1 and try again

P1.jpg