Search found 190 matches

by Mantas
Thu Aug 22, 2013 9:08 am
Forum: Feature requests
Topic: User interface!
Replies: 12
Views: 9175

Re: User interface!

Hi Jonny, additionally I would say I preferred the way v5 components were modified, with a new window opening to configure external properties. Everything was clearly seen. Now all those properties are on the side property window together with position and other...and they don't stand out, now you h...
by Mantas
Mon Aug 19, 2013 8:42 am
Forum: Bug reports
Topic: BUG: SQRT from FLOAT on ARM
Replies: 5
Views: 3970

Re: BUG: SQRT from FLOAT on ARM

Thank you Benj!
by Mantas
Sat Aug 17, 2013 7:50 am
Forum: Bug reports
Topic: BUG: SQRT from FLOAT on ARM
Replies: 5
Views: 3970

Re: BUG: SQRT from FLOAT on ARM

Hi Benj,

How can I fix this in v5 myself?

Regards,
Mantas
by Mantas
Fri Aug 16, 2013 1:06 am
Forum: Feature requests
Topic: Muti dimentional LUT
Replies: 1
Views: 2530

Muti dimentional LUT

Any chance to have some kind of option to use multidimensional LUT's in v6? As for now I am using supplementary code and C code blocks to reach values, and simulation does not work, just HW for debugging, which is not the fastest way. example of the LUT: #define N_TERM 12 #define M_TERM 13 #define C...
by Mantas
Wed Aug 14, 2013 5:23 pm
Forum: Bug reports
Topic: BUG: SQRT from FLOAT on ARM
Replies: 5
Views: 3970

BUG: SQRT from FLOAT on ARM

The same was in v5 and it's still not fixed, and now it's the same in v6, get a compilation error when you try to get a sqrt from floating point number:

Code: Select all

Test.c:94: warning: implicit declaration of function 'float32_sqrt'
BR,
Mantas
by Mantas
Wed Aug 14, 2013 2:00 pm
Forum: Flowcode v6 Beta
Topic: Welcome to the Flowcode V6 Beta Forums!
Replies: 16
Views: 16524

Re: Welcome to the Flowcode V6 Beta Forums!

dazz wrote:HI Mantas
Dont panic, the closed beta threads have been moved. As matrix are preparing for the open Beta, so starting with a clean forum

REgards
Dazz
Hi Dazz,

Pheww I thought something happened to my account :)

Regards,
Mantas
by Mantas
Wed Aug 14, 2013 1:41 pm
Forum: Flowcode v6 Beta
Topic: Welcome to the Flowcode V6 Beta Forums!
Replies: 16
Views: 16524

Re: Welcome to the Flowcode V6 Beta Forums!

What happened? I can't see all the topics. They are all gone!
by Mantas
Wed Jul 10, 2013 7:32 pm
Forum: Flowcode V4
Topic: I2C Compass GY-271
Replies: 6
Views: 7197

Re: I2C Compass GY-271

Hi, One thing you should check is the pull-up resistors, that should be 47k as far as as I remember for communication speeds up to 400kHz. Otherwise system will not work. Edit: also sometimes if you are not using external interrupts, you need to do polling for reading the data. I'm also attaching un...
by Mantas
Tue Jul 09, 2013 6:02 pm
Forum: Flowcode V5
Topic: Need help to translate C code to Flowcode
Replies: 2
Views: 2687

Re: Need help to translate C code to Flowcode

Hi Mathy,

I have already done this last year. Have a look at this post: http://www.matrixmultimedia.com/mmforum ... 48&t=11633

BR,
Mantas
by Mantas
Mon Jul 01, 2013 8:39 pm
Forum: Flowcode V5
Topic: getting started with I2C
Replies: 7
Views: 5599

Re: getting started with I2C

Hi,

here are some sample macros that I made and use very often:
master_read_i2c.fcm
read
(5.36 KiB) Downloaded 454 times
master_write_i2c.fcm
write
(3.74 KiB) Downloaded 406 times
Hope it helps.

BR,
Mantas
by Mantas
Sun Jun 30, 2013 8:26 am
Forum: Flowcode V5 Suggestions
Topic: SPI - on the fly
Replies: 5
Views: 8424

Re: SPI - on the fly

Hi Benj,

Save your energy for v6 as v5 will soon be obsolete :) I am waiting for v6 and I am also hoping that I will be able to port my v5 projects to v6! :) Otherwise it will be "cry me a river..." :D

Best regards,
Mantas
by Mantas
Fri Jun 28, 2013 3:20 pm
Forum: Flowcode V5 Suggestions
Topic: SPI - on the fly
Replies: 5
Views: 8424

Re: SPI - on the fly

But as I can see from the C code it is for PIC mics. For ARMS and AVRS you would need to refer to datasheets for specific C commands. Why not just make a macro where you choose the settings like setings in the component windowby setting ones and zeroes?

Best regards,
Mantas
by Mantas
Fri Jun 28, 2013 7:35 am
Forum: Flowcode V5 Suggestions
Topic: SPI - on the fly
Replies: 5
Views: 8424

SPI - on the fly

Hi,

Would it be possible to make some additional macros to be able to change clock polarity and similar settings on the fly? Just in case you have multiple SPI devices with different settings.

Regards,
Mantas
by Mantas
Tue Jun 18, 2013 3:22 pm
Forum: Flowcode V5
Topic: Grades Centigrade to Farenheit
Replies: 11
Views: 5906

Re: Grades Centigrade to Farenheit

Hi,

try changing it to:

Code: Select all

ADC_Value1 = ADC_Value1 * 9.0
ADC_Value1 = ADC_Value1 / 5.0
ADC_Value1 = ADC_Value1 + 32.0
Best regards,
Mantas
by Mantas
Sun Jun 09, 2013 5:15 pm
Forum: Flowcode V5
Topic: Using 2 Costum Code Blocks !!Help!!
Replies: 26
Views: 11111

Re: Using 2 Costum Code Blocks !!Help!!

Why do you have written the ASCII data to rom twice??? the first you begin at line 526 and end at 620, and then you do the same with defines starting at line 1443 and ending 1542. I think you should remove the first one, as I understand it is in the supplementary code. And the one with defines is in...
by Mantas
Sat Jun 08, 2013 5:37 pm
Forum: Flowcode V5
Topic: Using 2 Costum Code Blocks !!Help!!
Replies: 26
Views: 11111

Re: Using 2 Costum Code Blocks !!Help!!

Try adding another #endif after the last #endif...

BR,
Mantas
by Mantas
Fri Jun 07, 2013 5:11 pm
Forum: Flowcode V5
Topic: SPI in Flowcode 5
Replies: 8
Views: 4949

Re: SPI in Flowcode 5

Mervin try writing and reading to one of the registers, like control register or some other static user register, to see if you get the same value back, which you wrote previously. If you get the same value back that means SPI is working correctly. Other only way to troubleshoot SPI communications i...
by Mantas
Fri Jun 07, 2013 1:23 am
Forum: Flowcode V5
Topic: SPI in Flowcode 5
Replies: 8
Views: 4949

Re: SPI in Flowcode 5

To be honest, it's one of the worst manuals that I have read. But from what I understood, I would suggest changing the sample bit settings to sample at the end of data output time. And also set the clock to Focs/64, to make sure the clock speed isn't too high for the chip. The clock polarity is not ...
by Mantas
Thu Jun 06, 2013 5:23 am
Forum: Flowcode V5
Topic: SPI in Flowcode 5
Replies: 8
Views: 4949

Re: SPI in Flowcode 5

Hello Mervin, You can always try it, I think there shouldn't be any problems to use it in reverse order Those NVM bits. If it fails, you can always use General I/O pins in FC by manually setting or clearing bits, to enable and disable the chip you are using. I attached a sample macro from my softwar...
by Mantas
Wed Jun 05, 2013 3:30 am
Forum: Flowcode V5
Topic: SPI in Flowcode 5
Replies: 8
Views: 4949

Re: SPI in Flowcode 5

Hello Mervinm, SPI_init initializes all SPI configuration settings for you SPI component, and setts the micro controller register for proper operation. It is not absolutely mandatory to use those DAC and NVM select pins, you can choose a port for them but leave them unconnected (I do this), and use ...
by Mantas
Wed Jun 05, 2013 3:10 am
Forum: Flowcode V5
Topic: Control Area Network (CAN) bus
Replies: 3
Views: 3253

Re: Control Area Network (CAN) bus

Hi,

or you can use http://www.ti.com/product/sn65hvd230 as a CAN signal driver.

BR,
Mantas
by Mantas
Tue May 28, 2013 6:32 am
Forum: Flowcode V5
Topic: ARM TWI or I2C
Replies: 15
Views: 7903

Re: ARM TWI or I2C

Update: I changed the Data2Send array variable to Data2send non array type and it fixed the flip endings issue...I have no Idea why it is flipping, but now it is working like a charm, just the issue is that only one byte can be written...maybe MM will find a fix for this, but for me it is enough to ...
by Mantas
Tue May 28, 2013 3:29 am
Forum: Flowcode V5
Topic: ARM TWI or I2C
Replies: 15
Views: 7903

Re: ARM TWI or I2C

Mantas wrote:And the component custom functions:
The attachment TWI_DEFINES.fcc is no longer available
The attachment TWI_TX.fcc is no longer available
The attachment TWI_RX.fcc is no longer available
Best regards,
Mantas

Updated RX and TX macros:
TWI_RX.fcc
RX_TWI
(12.27 KiB) Downloaded 224 times
TWI_RX.fcc
RX_TWI
(12.27 KiB) Downloaded 224 times
But still some issues with the TX macro......should be 0b00000101 but sending 0b10100000...very strange :?

Regards,
Mantas
by Mantas
Tue May 28, 2013 2:50 am
Forum: Flowcode V5
Topic: ARM TWI or I2C
Replies: 15
Views: 7903

Re: ARM TWI or I2C

And the component custom functions:
TWI_DEFINES.fcc
Custom defines
(12.27 KiB) Downloaded 216 times
TWI_TX.fcc
TX TWI
(12.27 KiB) Downloaded 193 times
TWI_RX.fcc
RX_TWI
(12.27 KiB) Downloaded 189 times
Best regards,
Mantas
by Mantas
Tue May 28, 2013 2:47 am
Forum: Flowcode V5
Topic: ARM TWI or I2C
Replies: 15
Views: 7903

Re: ARM TWI or I2C

Hello everyone, So I was waiting and waiting, and decided to do it my self. I managed to write a code and macros for TWI (I2C) hardware. I attached the CAL file ARM_CAL_I2C.c and specific macros for I2C component, which you have to import, and also a modified defines function. The problem is very st...