Search found 30 matches

Return

by medelec35
Tue Sep 02, 2014 11:55 am
Jump to forum
Jump to topic

Re: Bit testing in a register

Hi viki2000, With boost C compiler (8 bit pic devices): Within a C code box, registers are in lowercase and bits are uppercase. So perhaps one way is to first add a bool variable and assign with a bit name e.g Any_Name_You_Like (case is not important as you are just adding a flowcode variable). Then...
by medelec35
Tue Sep 02, 2014 10:58 am
Jump to forum
Jump to topic

Re: Where is the PWM and LUT

Hi viki2000,
To add PWM and LUT the easiest way is to click on the search icon.
Then in the search box enter PWM or LUT.
search LUT.png

search PWM.png

Martin
by Benj
Thu Sep 18, 2014 2:26 pm
Jump to forum
Jump to topic

Re: Lighting communication protocols

Hello, I've got to add a bit of polish and I'm out of the office today so can't do it right now, however the code is now pretty much ready for export to components (e.g. like RS232 or USB). Both DMX and DALI have master and slave components allowing you to create both master controllers and slave re...
by Benj
Fri Sep 19, 2014 10:42 am
Jump to forum
Jump to topic

Re: Lighting communication protocols

Hello, Here are the exported components. If you give them a go then please let me know how you get on. DALISlave.fcpx DALIMaster.fcpx DMX512Slave.fcpx DMX512Master.fcpx To add the components to your installation copy the .fcpx file into your "C:\Program Files (x86)\Flowcode 6\components" d...
by Benj
Mon Sep 08, 2014 10:24 am
Jump to forum
Jump to topic

Re: ADCON0 – ADC Channel 15 Error

Hello, As your not using the ADC I think the Proteus warning can simply be ignored. If you were using an ADC then it would automatically assign the correct ADC channel for you before starting the ADC conversion. The code at the top of main comes from the chip definition file .fcdx in Flowcode v6 and...
by ionize
Fri Oct 24, 2014 12:38 am
Jump to forum
Jump to topic

Re: LCD – OLED interface

Short answer: YES, no problem.
by Benj
Fri Nov 14, 2014 10:56 am
Jump to forum
Jump to topic

Re: Using the Data Scope

Hello,

You were very close but had missed the stream handle variable. I have added this now and your program should work correctly and give you a trace on the scope (note you might have to zoom in a bit to see the values).

PIC18F4550_SCOPE_LED.fcfx
by Benj
Fri Nov 14, 2014 1:31 pm
Jump to forum
Jump to topic

Re: Using the Data Scope

Hello, To get RB3 working I changed the mask from 0x04 to 0x08, 0x04 is the mask for bit 2. 0 = 0x01 1 = 0x02 2 = 0x04 3 = 0x08 4 = 0x10 5 = 0x20 6 = 0x40 7 = 0x80 PIC18F4550_SCOPE_LED_PORTB.fcfx Regarding the pack mask question the setting only really applies if your using multiple bits on a single...
by Benj
Fri Nov 14, 2014 3:15 pm
Jump to forum
Jump to topic

Re: Rotary Quadrature Encoder

Hello, Aha, the negative numbers are occurring because the IOC interrupt only works for pins RB4-RB7 and you have one of the encoder pins set to RB3 so it was missing this change. If you really need to use RB3 then take my example and change the IOC interrupt for a fairly high speed timer interrupt ...
by Benj
Tue Nov 18, 2014 12:48 pm
Jump to forum
Jump to topic

Re: Rotary Quadrature Encoder

Hello, I've added the WriteCounter macro so you can set and bound the count value. quadenc.fcpx The changes can be loaded by copying the attached file into your "C:\Program Files (x86)\Flowcode 6\components" directory before starting Flowcode. As for digital filtering this would be simple ...
by Steve
Mon Dec 05, 2016 10:50 am
Jump to forum
Jump to topic

Re: Panacea library component

Hi, Thanks for posting - this is an interesting topic and we have discussed it internally before. It would be a real benefit for our users to be able to use existing C libraries and we are working towards making this easier, although this might need to wait for v8 of Flowcode. I'm also aware that co...
by Benj
Tue Dec 13, 2016 2:05 pm
Jump to forum
Jump to topic

Re: Slow Graphical LCDs

Hello, The textfield component is a new development and relies on existing v7 gLCD modifications so is not currently compatible with Flowcode 6 and unfortunately would be a fairly significant amount of work to make it so. Here are two new SH1106 compatible components for Flowcode 7. Both require the...
by medelec35
Thu Jan 12, 2017 11:32 pm
Jump to forum
Jump to topic

Re: PIC16F1825 Configuration Errors – I2C Master

Hi, I would either calculate OSCCON value shown in this example Or if using Flowcode V7 there is an Osccon Helper component called IntOsc Helper within Tools menu. Add to a panel, then select the IntOsc Helper on the panel. Then its just a simple case of selecting correct speed from the drop-down li...
by Benj
Wed Apr 26, 2017 2:54 pm
Jump to forum
Jump to topic

Re: Panacea library component

Hello, The answer is Yes and Yes. Here are the description and overview for the new features. https://www.matrixtsl.com/wikiv7/index.php?title=New_Component_Features For the complete overview see the Component Creation section of this page. https://www.matrixtsl.com/wikiv7/index.php?title=Flowcode_H...
by Benj
Mon Jul 17, 2017 4:32 pm
Jump to forum
Jump to topic

Re: Assembler Errors

Right this now works for me, the components have a bit of random code generation so may not fully match up on your machine.

If you still get compile errors then look at the C code, specifically the main to get the 7-seg macro call syntax correct.

Embedding C and Assembler code.fcfx
by Benj
Wed Jul 19, 2017 4:20 pm
Jump to forum
Jump to topic

Re: XC compilers optimization level

Hello, For the 8-bit PICs the optimisation parameter can be specified in the Compiler Options -> Compiler -> Parameters. The default settings look like this. --chip=$(chip) "$(target).c" --MSGDISABLE=359,1273,1388 Simply add the required level of optimisation to the parameters. For example...
by Benj
Mon Jul 24, 2017 2:17 pm
Jump to forum
Jump to topic

Re: Third party programmers

Hello, It sounds like the compiler options for the CCS programmer should look something like this. Location: "C:\Program Files\picc\ccsload.exe" Parameters: +T$(target).hex However I'm guessing that this won't work because you're not even specifying which chip you're targeting. this might ...
by QMESAR
Tue Jul 11, 2017 6:23 am
Jump to forum
Jump to topic

Re: Do you make use of Ghost features?

Hi All. In my humble opinion if a tool chain does not give you the developer the opportunity to debug en inspect mcu variable and registers and even debug lines of code(as Ghost give us and for that matter all the ICD's from MCHP) it is not worth using the tool chain. Debugging and analyzing your co...
by Benj
Wed Sep 13, 2017 5:21 pm
Jump to forum
Jump to topic

Re: PIC to PIC over I2C – Default Examples

By the way how do we enable with C code the pull-up resistors on PORTB?


The following C code will enable the internal weak pull up resistors for all PortB pins on the 16F1937 device.

Code: Select all

OPTION_REG &= 0x7F;
WPUB = 0xFF;
by LeighM
Mon Sep 11, 2017 3:39 pm
Jump to forum
Jump to topic

Re: PIC to PIC over I2C – Default Examples

Hi, I used exactly the same Master, the Slave I changed the switch port to match my hardware (2x EB006) Modified Slave attached. Maybe try disabling the port read, and enable the "Data = Data + 1" icon as see if you get the counter on Master LEDs Leigh edit: I used 3K3 pull-up resistors, I...
by medelec35
Thu Sep 28, 2017 10:49 pm
Jump to forum
Jump to topic

Re: Custom Interrupts – PICmicro – Explanations

viki2000 wrote:P.S. How do I say thanks (thumbs up) in the new forum interface?

Must be logged in first:
Thumbs up.png


Martin
by LeighM
Thu Sep 28, 2017 9:10 am
Jump to forum
Jump to topic

Re: Custom Interrupts – PICmicro – Explanations

Hi, Just in answer to point (2)... "SSPIF" does not in itself reference the bit in the correct register. The compiler needs to understand the address location of the registers and their bit meanings, so these are defined in header files. These differ between compiler versions. For the V6 c...
by Benj
Tue Nov 14, 2017 6:18 pm
Jump to forum
Jump to topic

Re: FC7 - Global Options and Print missing or hidden

Hi Viki2000, I think this has been covered before but the print has been hidden from the menu because the output was not very well suited for a printer. You can still press control + P to bring up the print dialogue if required. A better way to print/document a project could be the File -> Save Imag...
by medelec35
Wed Dec 06, 2017 7:15 pm
Jump to forum
Jump to topic

Re: BME280 Pressure Sensor

Hi viki2000,
I have not got a BME280 Pressure Sensor.
However I would like to personally thank you for the time and effort you have put in for all the testing/developing you have done.

Kind Regards

Martin
by LeighM
Wed Dec 06, 2017 5:01 pm
Jump to forum
Jump to topic

Re: BME280 Pressure Sensor

Hi, In view of all the work you have done, we have decided to release the source, so that we just have the one component for this. So please use the attached, you can see how to do the property based code switching. Might be easiest to merge your changes into this code, then we will use your modifie...