Search found 28 matches

Return

by medelec35
Tue Dec 27, 2016 6:13 pm
Jump to forum
Jump to topic

Re: Interrupt Timer Wrong

Simulation is not in real time, it can be much faster.
It depends on PC calualtion abilities as well.
Should be fine in the real world on hardware.

Martin
by QMESAR
Wed Dec 28, 2016 11:37 am
Jump to forum
Jump to topic

Re: Interrupt Timer Wrong

Sorry I don't have a thumbs up icon.


It can not be just look properly :D
by kersing
Thu Dec 22, 2016 1:27 pm
Jump to forum
Jump to topic

Re: Internal Components

The ADC components are software components, not external hardware components. To control the internal ADC you just use an ADC component.
by Benj
Tue Jan 03, 2017 11:16 am
Jump to forum
Jump to topic

Re: Interrupt Timer Wrong

Hi Doc, eg native onboard RTCC Native RTCC would certainly be a very good feature addition. The reason we haven't done it yet is that there are a lot of different implementations of RTCC's in chips over the years. Getting all the variants working with all the different clocking options would be a mo...
by LeighM
Mon Jan 30, 2017 11:19 am
Jump to forum
Jump to topic

Re: String Variable Length

Edit the default 20 byte length parameter...

string.jpg
by LeighM
Tue Feb 07, 2017 2:43 pm
Jump to forum
Jump to topic

Re: Returning a Value - from an Interupt

Hi
As an interrupt can occur anywhere in your program, a return variable would be unusable.
You need to use Global variables to transfer information between an interrupt and the main/foreground program.
by medelec35
Tue Feb 07, 2017 3:21 pm
Jump to forum
Jump to topic

Re: Wiping old Code

Hi Matt, Interestingly, I could not delete this left over component because it was still 'apparently' assigned to a Component Macro. I had to start completely from scratch - deleting the project to get things working properly again, I would imagine this highlights an issue for you guys?? If you have...
by Benj
Thu Feb 09, 2017 1:37 pm
Jump to forum
Jump to topic

Re: Large Numbers

Hi Matt,

I need to count 3 things (anticipated each close to a million). What would be the best, quickest and most efficient method in FC? Would just setting three Ulong variables suffice?


That's probably by far the easiest way and hopefully also the most efficient.
by Benj
Thu Feb 09, 2017 12:09 pm
Jump to forum
Jump to topic

Re: LCD Custom Characters - A Tutorial

Hi Matt,

A very nice tutorial there, many thanks for sharing.
by johnsondav
Wed Jul 19, 2017 3:54 pm
Jump to forum
Jump to topic

Building Components - Step by Step Guide

RF_ASK Module Component I have build a component to control a pair of modules - Receiver & transmitter on the 433MHZ frequency. I have included a step-by-step guide to build the component to control these modules. This is all about how to make your own components, not about the actual modules th...
by Benj
Mon Aug 14, 2017 10:54 am
Jump to forum
Jump to topic

Re: LCD ScrollDisplay

Hi Matt,

Thanks for letting us know of the problem. Here is a updated component that should fix the issue for you.

ctrl_lcd.fcpx
by medelec35
Tue Aug 15, 2017 10:43 am
Jump to forum
Jump to topic

Re: Component Required

Hi Matt,
I have modified Flowchart Ben Posted.
I have not created a component as not had time.
I hope Flowchart works for you.

Martin
by medelec35
Sun Oct 22, 2017 12:49 pm
Jump to forum
Jump to topic

Re: Inter uC communication

Hi Matt,
Have you seen this by viki2000
Some very interesting reading and example flowcharts.

Martin
by LeighM
Mon Oct 23, 2017 2:15 pm
Jump to forum
Jump to topic

Re: PIC to PIC over I2C – Default Examples

Yes, of those options, it would likely be best to call the cal_i2c::Slave_Status() on a timer interrupt.
Another option would be to have a short/fast main loop and poll, then take action based on status (aka state machine), depending of course on what else is being processed.
by kersing
Sun Oct 22, 2017 8:51 pm
Jump to forum
Jump to topic

Re: Inter uC communication

Serial would be nice between the two but the possible project is in a noisy environment and I have run out of room for a screened cable in the installed conduit. If the environment is too noisy for serial you should not even consider the i2c you mention in the original message as it is for short co...
by viki2000
Fri Nov 10, 2017 12:47 pm
Jump to forum
Jump to topic

Re: BME280 Pressure Sensor

The humidity is solved too. It was a bigger headache to trace down the problem. In the “ReadHumidityFloat” macro, the error came from C code of “v_x1_u32r” variable calculations. I had to split that impossible equations in many simple calculations and check the evaluation of each expression. With so...
by viki2000
Thu Nov 09, 2017 3:33 pm
Jump to forum
Jump to topic

Re: BME280 Pressure Sensor

For humidity the “.Return = (.Return >> 8) | (.Return << 8)” must be disabled in “I2C_Read2_Register” otherwise the TFINE gives wrong values. So, maybe 2 macros “I2C_Read2_Register” must be written, one for temperature and one for humidity. Or another options is to write in Read Calibration macro, a...
by viki2000
Thu Nov 09, 2017 2:26 pm
Jump to forum
Jump to topic

Re: BME280 Pressure Sensor

Hi, I spent some good hours trying to find the bug in the code from BME280 component. I think I found something and I would like to share it in order to have a final good component done by Ben. First of all, I think it would be good if the component would have as parameters the oversampling and norm...
by medelec35
Mon Nov 13, 2017 2:28 pm
Jump to forum
Jump to topic

Re: RGB Led.

Hi Matt,
Docara wrote:Does this apply to FC generally or just the chip mentioned

FC generally.
I reported it here
It's also been mentioned here

Martin
by Steve
Thu Jul 12, 2018 9:25 am
Jump to forum
Jump to topic

Re: CAN Eblock

Feel free to use our schematic if you wish. Regarding the switches, these are connected to the TXnRTS pins of the CAN controller and can have two alternate functions. One is to request-to-send one of the TX buffer CAN messages and the other is as a general purpose input. The request-to-send is proba...
by Jay Dee
Sat Sep 22, 2018 10:57 am
Jump to forum
Jump to topic

Working with Registers

Working With Registers. Hi Guys, as someone who drops in and out of Flowcode I often forget things so I started to write some of it down. Working with registers is something that took a little while for me to get my head around, so the following may help others who are new on the path to knowledge! ...
by LeighM
Thu Oct 17, 2019 10:41 am
Jump to forum
Jump to topic

Re: Howto :- 32bit addition from 4 Registers

Hi, As Martin mentioned, you need to use unsigned long ints, e.g. Get your 4 byte values into some ULONG variables: ULONG_M12 ULONG_M13 ULONG_M14 ULONG_M15 Then the total long value is ULONG_TOTAL = (ULONG_M15 << 24) + (ULONG_M14 << 16) + (ULONG_M13 << 8 ) +(ULONG_M12) You can then add whatever you ...
by mnf
Thu Oct 17, 2019 1:53 pm
Jump to forum
Jump to topic

Re: Howto :- 32bit addition from 4 Registers

You could also use the code here https://www.matrixtsl.com/mmforums/viewtopic.php?f=7&t=21470

But change the real results to unsigned long. Not sure if this would be quicker than the shift and add approach. A similar technique could be used to unpack the values too.

Martin
by mnf
Thu Oct 17, 2019 9:19 pm
Jump to forum
Jump to topic

Re: Printing Hexadecimal Numbers onto an LCD

Use the NumberToHex$ function - see post in other thread....
by AbhijitR
Mon Nov 25, 2019 3:39 pm
Jump to forum
Jump to topic

Re: Finished Code Estimate

Docara wrote:was that compiled code produced with Flowcode?


Yes indeed, I use FC8

Abhi