Search found 68 matches

Return

by Sean
Wed Jun 13, 2012 9:23 pm
Jump to forum
Jump to topic

Re: MX003 - Look-up tables

Hello, Yes, it is possible to change the array data type to suit the range of the data values being stored. The Flowcode variables used to handle the data (including the table reader macro return variable) will also need to be changed to match the selected data type. The C data types that are direct...
by Benj
Thu Jun 14, 2012 5:17 pm
Jump to forum
Jump to topic

Re: MX003 - Look-up tables

Hello, You can normally pass the address of the resource using the ampersand syntax. function (&L0i_Ai, idx); And here is the function. function (char* data, char index) { data[index] = ...; or ... = data[index]; } I don't think you can use addresses or pointers directly in Flowcode v5 at the mo...
by Sean
Thu Jun 14, 2012 6:49 pm
Jump to forum
Jump to topic

Re: MX003 - Look-up tables

Another possibility, if all the individual arrays are the same size and type, might be the use of a single, 2-dimensional array (I am not currently able to test this): const double L[x][y] = { {1,2,3,4,.,.,.,.,.}, {.,.,.,.,.,.,.,.,.,.,.,.,.,.}, : : : {.,.,.,.,.,.,.,.,.,.,.,.,.,.} }; where x is the n...
by Sean
Thu Jun 14, 2012 10:58 pm
Jump to forum
Jump to topic

Re: MX003 - Look-up tables

Yes, for a 2-dimensional array the parameters can be considered to be:

Array[Row][Column]
by Benj
Fri Jun 29, 2012 9:43 am
Jump to forum
Jump to topic

Re: ARM PWM Channels

Hello, Sorry for the delay. All 4 PWM channels are supported in v5 for ARM which is released next week. You could instead use software driven PWM using a timer interrupt. See this article for more help on generating software PWM. http://www.matrixmultimedia.com/article.php?a=52 You should be able to...
by JonnyW
Wed Jul 25, 2012 4:32 pm
Jump to forum
Jump to topic

Re: Incorrect calculation result

Hi. Yeah, ARM is 32 bit, but so are the 24 bit floats. A floating point number is just an integer with a special format. 1 bit is set aside for the sign (s) of the value, 7 buts are the exponent (e), and 24 bits are the mantissa (m). The cpu works the value out as s * m * (1 << e) In a double-width ...
by Benj
Thu Jul 19, 2012 4:59 pm
Jump to forum
Jump to topic

Re: ARM and GPS EB056

Hello Mantas, Right here are the details of my setup. EB031 with 12V PSU, Power Selection - PSU and Programming - USB EB056 - PortC, Jumper settings: C, 2 and 3V3 EB005 - PortA, Jumper setting default Here is my Flowcode program. Flowcode1.fcf_arm And here is a replacement CAL file as the existing f...
by JohnCrow
Fri Jul 27, 2012 8:56 am
Jump to forum
Jump to topic

Re: LCD ASCII codes

Hi
Ive found the following codes work on my hardware

ASCII 223 - on a Matrix 2 x 16 lcd
ASCII 178 - on my custom 4 x 20 lcd

Though they both still use the Hitachi compatible chipset.
Note they dont show correctly in simulation.
by Enamul
Fri Jul 27, 2012 1:03 pm
Jump to forum
Jump to topic

Re: LCD ASCII codes

Hi Mantas, Hitachi 44780 LCD ascii table can be found in the bottom chart of the link http://meteosat.pessac.free.fr/Cd_elect/Doc-CI/LCD/lcd-htm/LCD%20Hitachi.htm °(deg) is Decimal=223 Hex= 0xDF Binary=0b11011111 so for Hitachi LCD (EB005 Board MM) you have to use any of the above format. But as Flo...
by Enamul
Mon Aug 20, 2012 11:50 pm
Jump to forum
Jump to topic

Re: MX026 - RS485 using the EB062 E-Block

Hi, If I use a RS485 interface via EB062 to transmit MODBUS RTU protocol which uses 8 data bits instead of 9 databits mentioned in this article it should be ok, I just have to set the databits to 8 in the properties window, right? You have to set as follows... RS485.png where the 9-bits will be.. 9t...
by Benj
Wed Aug 22, 2012 9:55 am
Jump to forum
Jump to topic

Re: MX026 - RS485 using the EB062 E-Block

Hello, I think it should really be like this. data_send=(Addr_H<<8) | Addr_L This version is doing a logical or and will return 1 if either Addr_H or Addr_L has a bit that is set. data_send=(Addr_H<<8) || Addr_L This versions is raising (Addr_H * 256) to the Power of whatever is in Addr_L. data_send...
by Benj
Tue Mar 20, 2012 5:00 pm
Jump to forum
Jump to topic

Re: RS232 with parity and 2 stop bits

Hi Dirk, For calculating the parity of a byte you could do something like this. calculation: parity = 0 decision: data & 0x01 yes: calculation: parity = (parity + 1) & 0x01 decision: data & 0x02 yes: calculation: parity = (parity + 1) & 0x01 decision: data & 0x04 yes: calculation...
by JohnCrow
Sun Sep 16, 2012 10:54 am
Jump to forum
Jump to topic

Accelerometer DataLogger

Accelerometer DataLogger This is my first project using the “001-Tech” Accelerometer Board. It is fully compatible with the accelerometer module in Flowcode 5. It is designed to show the principles of operation and test the unit. The sensor used is the the LIS3LV02DQ 3 axis accelerometer. This devi...
by Benj
Wed Nov 14, 2012 1:15 pm
Jump to forum
Jump to topic

Re: ARM TWI or I2C

Hello Mantas, Great glad you managed to get it up and running using the software implementation. Apart from the speed and SMbus limitations there shouldn't be anything else that you cannot do using the macros. As for the hardware implementation, I believe this is the first request we have had to do ...
by Jaspervdw
Wed Jul 22, 2009 10:20 am
Jump to forum
Jump to topic

Re: Digital Low Pass Filter

Hey, You could use an IIR-filter. IIR ask a litle CPU from the chip. At the site: http://www-users.cs.york.ac.uk/~fisher/mkfilter/trad.html you can design your filter. Here is a little guide to use the site: 1) For audio you choose the "Butterworth" filter (this has a flat passband). The y...
by brandonb
Thu Nov 22, 2012 9:24 am
Jump to forum
Jump to topic

removing smd chips without effort

i recently converted the boards i create for fun to all surface mount components, and since im paranoid i bought a pack of this https://www.sparkfun.com/products/10925? well i had a situation with a 18f26k80 chip that wouldnt do much of anything and had to remove it, applying some of the special flu...
by brandonb
Sun Oct 28, 2012 11:49 pm
Jump to forum
Jump to topic

flowcode supported lut macro

it would be amazing if we could have a macro that looks like the eeprom component where we could just write in the look up table values to the right of the lut index number, and make it to where we could simulate it and have as many lut macros as we want to have, would this be possible since the c c...
by Benj
Mon Dec 03, 2012 11:57 am
Jump to forum
Jump to topic

Re: ICD Plotter

Hello Mantas, For Flowcode v6 we are adding Test mode which will supplement ICD mode and should do something along the lines of what you are suggesting. I am currently working on the new EB006 firmware so hopefully we will have more news on this soon. v6 should also be able to do some of this using ...
by JonnyW
Fri Dec 07, 2012 1:54 am
Jump to forum
Jump to topic

Re: Macro local variable limit

Hi. Its to do with memory and speed on the PC, as it goes. Each Flowchart and sub-flowchart that is created contains that number of variables in an array. This means we would have to create, say, 256 variables for every flowchart just on the off chance they are needed. This seems extreme for 99.9% o...
by Benj
Fri Nov 16, 2012 10:12 am
Jump to forum
Jump to topic

Re: RS232 Component enhancement

Hi Tom,

That's a fantastic suggestion. I don't think this will make it into v5 but I will look and see if we can make this type of functionality available in v6.
by Enamul
Mon Dec 10, 2012 12:30 pm
Jump to forum
Jump to topic

Re: Setting Interrupt to 512Hz

Hi Mantas, I don't have ARM flowcode that's why make it in FCv5.4 for PIC. You can modify that for ARM. What you need to do you can select any of the timer interrupt like TMR0, then you have to go for pre-scaler which gives interrupt frequency less than your required frequency. Now you just need to ...
by Enamul
Tue Dec 11, 2012 12:05 am
Jump to forum
Jump to topic

Re: Setting Interrupt to 512Hz

Thanks for the head into the expression. I will use your expression later on whenever I need to calculate. I would be nice to get this option in Flowcode.
by JonnyW
Sat Jan 26, 2013 11:53 am
Jump to forum
Jump to topic

Flowcode v5.5 with DSP for all variants

Good morning. Just to let you all know that there is a latest install of Flowcode v5.5 for all variants available. This is the first Flowcode version to package DSP components. You can upgrade your current version through Flowcode. Select 'Online Resources' or 'Check For Updates' in your registered ...
by medelec35
Sat Jan 26, 2013 10:21 pm
Jump to forum
Jump to topic

Re: Flowcode v5.5 with DSP for all variants

Hi Wayne, This is from Benj, he gets 100% of the credit. There are examples using DSP components and a document explaining how it works The document is not complete yet, i have posted it to give you an idea. So you will need to bare that in mind. I believe the document will be officially released on...