Search found 13282 matches

by Benj
Tue Jun 25, 2019 8:15 pm
Forum: Flowcode V6
Topic: Call a macro for time delays
Replies: 2
Views: 9

Re: Call a macro for time delays

Hi John,

Maybe try making a new constant, assigning the value 10 and then referencing the constant. If this fails then it's worth a go.

The compile to hex option allows you to compile without programming.
by Benj
Tue Jun 25, 2019 4:41 pm
Forum: Flowcode V8
Topic: Ghost error massage
Replies: 3
Views: 35

Re: Ghost error massage

It appears that the file has been programmed onto the E-block 2 board. Is the program running?

We are investigating the issue for you.
by Benj
Tue Jun 25, 2019 9:57 am
Forum: Flowcode V8
Topic: Issues with reading an analogue voltage signal
Replies: 3
Views: 46

Re: Issues with reading an analogue voltage signal

Hello,

This should help. I've added an ADC input from the Inputs component category and connected it to pin E2 via the component properties.

AnalogueMeasurement.fcfx
(15.83 KiB) Downloaded 2 times
by Benj
Tue Jun 25, 2019 9:53 am
Forum: Flowcode V8
Topic: glcd ssd1306 I2C and PIC16F1509
Replies: 3
Views: 91

Re: glcd ssd1306 I2C and PIC16F1509

Hi Jörg 128 x 32 = 4096 pixels / 8 = 512 Bytes to host the LCD pixel buffer. e.g. all of the RAM on your device. Unbuffered display components do not require a pixel buffer by allowing the display to host it's own buffer. The requirement for this to work is that the pixel data must be able to be rea...
by Benj
Tue Jun 25, 2019 9:49 am
Forum: Flowcode V8
Topic: Ghost error massage
Replies: 3
Views: 35

Re: Ghost error massage

Hello,

I've not seen that error before. Does it always happen or has it been working ok previously.

What hardware are you using?
by Benj
Mon Jun 24, 2019 5:19 pm
Forum: Bug Reports
Topic: Components cosmetic issues
Replies: 1
Views: 53

Re: Components cosmetic issues

Thanks Martin :D

I thought I had caught them all but obviously not. Should all be fixed now.
by Benj
Mon Jun 24, 2019 1:09 pm
Forum: Flowcode V8
Topic: ENC28J60 webserver string with """"
Replies: 3
Views: 86

Re: ENC28J60 webserver string with """"

This is also another option.

link2page2_strg ="<input type=\"button\" onclick=\"location.href='http://192.168.30.207/page2';\" value=\"Go to page2\" />"
by Benj
Wed Jun 19, 2019 12:33 pm
Forum: Bug Reports
Topic: FC8.2 PIC18LF67K40 I2C brocken
Replies: 2
Views: 62

Re: FC8.2 PIC18LF67K40 I2C brocken

Hi Igor,

Can you post a demo program that shows the lock up so we can investigate. Can you also confirm if the lock up is resolved if you switch to a software I2C channel.
by Benj
Wed Jun 19, 2019 12:28 pm
Forum: Bug Reports
Topic: string concatenation bug
Replies: 1
Views: 46

Re: string concatenation bug

Hi Igor,

It's not something I can fix I'm afraid it's very much down in the detail of the Flowcode executable core code generation. We do have it as a task on our to do list so I'll see if I can bump up the priority a bit for you.
by Benj
Mon Jun 17, 2019 5:31 pm
Forum: Foro de soporte español
Topic: Uso de registros a nivel de byte
Replies: 2
Views: 270

Re: Uso de registros a nivel de byte

Hola, Sí, esto es posible. Digamos que tenemos una variable de byte que queremos poder leer y escribir 8 bits individuales. Para establecer el bit usaríamos un código como este, bit es un valor entre 0 y 7, es decir, la posición del bit. Reg = Reg | (1 << bit) Para borrar el bit usaríamos este códig...
by Benj
Mon Jun 17, 2019 3:58 pm
Forum: Bug Reports
Topic: dsPIC33EP256GP502 Resets if CAN Bus Component is Used
Replies: 13
Views: 133

Re: dsPIC33EP256GP502 Resets if CAN Bus Component is Used

Hello,

It's probably worth trying the large version of the compiler and linker using the compiler options to see if this makes a difference.

Let us know how you get on.
by Benj
Mon Jun 17, 2019 10:05 am
Forum: Bug Reports
Topic: dsPIC33EP256GP502 Resets if CAN Bus Component is Used
Replies: 13
Views: 133

Re: dsPIC33EP256GP502 Resets if CAN Bus Component is Used

Hello, I've just compared the Flowcode definition files for the two devices and can't see anything specific which looks out of place here. Do you get any warnings when you compile to hex? It might be worth trying with a newer version of the XC16 compiler to see if it's a compiler bug causing the pro...
by Benj
Mon Jun 17, 2019 9:59 am
Forum: Flowcode V8
Topic: MPU9250 Component!
Replies: 11
Views: 351

Re: MPU9250 Component!

Hello,

I've just looked at your program and it looks like the problem is the CollectXYZData macro call. You use the variable XX as the parameter but this should be either 0, 1 or 2 to specify which axis you want to read x, y or z. The return value should then be assigned to the XX variable.
by Benj
Fri Jun 14, 2019 3:48 pm
Forum: General Programming
Topic: USB PC Keyboard
Replies: 4
Views: 503

Re: USB PC Keyboard

Hello,

The HID Keyboard section here should help. It has a Flowcode example and an Excel file showing the various byte combinations for different keys.

https://www.matrixtsl.com/wiki/index.php?title=Component:_ID_06a0a9b3_dd23_4592_a781_537a31b97c2a
by Benj
Fri Jun 14, 2019 3:46 pm
Forum: Flowcode V8
Topic: LCD Display components vanished
Replies: 6
Views: 173

Re: LCD Display components vanished

Hi Dave,

If you do the full update everything should appear back again.

this may take a long time-do you wish to continue


This is usually less than a minute :wink:
by Benj
Fri Jun 14, 2019 3:45 pm
Forum: Bug Reports
Topic: RPI modbus TCP
Replies: 29
Views: 1223

Re: RPI modbus TCP

Hi James, Many thanks for your time and effort here. The Modbus TCP components have only been tested together and not with other third party equipment. The None TCP Modbus components have been tested with third party equipment though and is known to work. The code bases for the modbus part should be...
by Benj
Wed Jun 12, 2019 3:44 pm
Forum: Flowcode V7
Topic: ERROR IN PIC16F1709 CODE
Replies: 7
Views: 176

Re: ERROR IN PIC16F1709 CODE

Hello,

I do bang on about the one second flasher but this will help to save yourself from these types of headaches time and time again.
https://www.matrixtsl.com/wiki/index.ph ... ED_flasher
by Benj
Wed Jun 12, 2019 1:47 pm
Forum: Formula AllCode
Topic: formula allcode
Replies: 42
Views: 29129

Re: formula allcode

Hello,

Please can you try this and see how you get on.
FA_2x_Display.fcfx
(11.43 KiB) Downloaded 18 times
by Benj
Wed Jun 12, 2019 1:25 pm
Forum: Flowcode V8
Topic: Beginner using an EB013 board
Replies: 9
Views: 302

Re: Beginner using an EB013 board

Thanks for letting us know.

I have now fixed the problem and uploaded the fix to the Flowcode 8 update system. Use the Help -> Check for updates menu to get the updated SPI_Legacy component.
by Benj
Tue Jun 11, 2019 4:59 pm
Forum: Flowcode V8
Topic: DHT11 not measuring, SampleSensor stays '1' and show no reply on LCD
Replies: 21
Views: 774

Re: DHT11 not measuring, SampleSensor stays '1' and show no reply on LCD

8MHz is still quite low in terms of clock speed. So to try and achieve the tight timings, in the DHT22 component properties try changing the Clock Adjustment setting from Auto to Manual. Next try decrementing the 28us Nops property a couple of counts at a time and compiling to the target device. Hop...
by Benj
Tue Jun 11, 2019 4:55 pm
Forum: Flowcode V8
Topic: Beginner using an EB013 board
Replies: 9
Views: 302

Re: Beginner using an EB013 board

Hello,

Try this one, the readback of the DAC voltage wasn't done correctly and I'm not sure this is possible so I just use the RAM value instead.

EB013_project.fcfx
(20.57 KiB) Downloaded 15 times
by Benj
Tue Jun 11, 2019 4:51 pm
Forum: Flowcode V8
Topic: switch a PIC32MZ2048ECG100 to PIC32MZ2048EFG100 problem
Replies: 2
Views: 116

Re: switch a PIC32MZ2048ECG100 to PIC32MZ2048EFG100 problem

Hello, It looks like the micro switch happens ok but Flowcode finds a disabled output icon to pin D7 which I guess isn't available on the EFG device. I deleted the icon and was able to continue. On compiling I'm getting ADC related compile errors so I need to investigate this and see if there is a p...
by Benj
Tue Jun 11, 2019 12:02 pm
Forum: Flowcode V8
Topic: Beginner using an EB013 board
Replies: 9
Views: 302

Re: Beginner using an EB013 board

Here's an example to drive the DAC using the SPI Master component from the Hardware - E-blocks 1 component category. It has specific macros to drive the various features of the EB013 E-block. EB013_DAC.fcfx You'll need to configure the Pin connection properties to match your hardware. Let us know ho...
by Benj
Tue Jun 11, 2019 10:59 am
Forum: Flowcode V8
Topic: DHT11 not measuring, SampleSensor stays '1' and show no reply on LCD
Replies: 21
Views: 774

Re: DHT11 not measuring, SampleSensor stays '1' and show no reply on LCD

Hello, The 16F887 has an internal oscillator but the default speed is 4MHz and the fastest speed is 8MHz. Use the IntOsc helper component to help you configure it for 8MHz using a C icon at the start of main and then set the project options speed to match. To double check oscillator speed you can us...
by Benj
Tue Jun 11, 2019 10:24 am
Forum: Bug Reports
Topic: RPI modbus TCP
Replies: 29
Views: 1223

Re: RPI modbus TCP

Hi James, Many thanks for keeping on with this and sorry for the delay. I've now managed to have a look and hopefully fixed the problem where we were getting incorrect reply. I've tested the readback of the various types of storage and all seem to be working fine now too. I've pushed the updated com...