Search found 13273 matches

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: 143

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: 7
Views: 41

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: 7
Views: 41

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: 212

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: 223

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: 93

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: 28
Views: 1124

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: 118

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: 41
Views: 28799

Re: formula allcode

Hello,

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

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: 711

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: 212

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 11 times
by Benj
Tue Jun 11, 2019 4:51 pm
Forum: Flowcode V8
Topic: switch a PIC32MZ2048ECG100 to PIC32MZ2048EFG100 problem
Replies: 2
Views: 80

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: 212

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: 711

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: 28
Views: 1124

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...
by Benj
Mon Jun 10, 2019 3:46 pm
Forum: Flowcode V8
Topic: Beginner using an EB013 board
Replies: 9
Views: 212

Re: Beginner using an EB013 board

Hello, The DAC can generate an output voltage by itself, no DSP boards or components are required. The DAC output voltage might have a very limited current and so if you need to drive anything requiring current then you may need some sort of buffer, maybe using an OpAmp? The EB013 may have an amplif...
by Benj
Mon Jun 10, 2019 2:08 pm
Forum: Flowcode V8
Topic: Change module properties
Replies: 3
Views: 161

Re: Change module properties

Aha ok, In that case you will probably need to use 2 different PWM components and use the enable disable component macros to allow one to be enabled and the other to be disabled.
by Benj
Mon Jun 10, 2019 1:33 pm
Forum: Formula AllCode
Topic: formula allcode
Replies: 41
Views: 28799

Re: formula allcode

Hi Bruno, It appears that the code generation is working correctly in Flowcode 8, the problem exists only in Flowcode 7 and looks to be something to do with the core workings inside Flowcode being able to detect an instance of the UART when inside a component (the FA component). One workaround might...
by Benj
Mon Jun 10, 2019 1:10 pm
Forum: Feature Requests
Topic: MCP4161 - Digital Pot
Replies: 11
Views: 317

Re: MCP4161 - Digital Pot

Hi Rod, We have a plan for the future to be able to drive I/O expander pins as if they were micro pins and hence components will be able to connect to these virtualised pins. Unfortunately we cannot do this currently and so it becomes fairly tricky. Do you have access to an Arduino library that will...
by Benj
Mon Jun 10, 2019 1:01 pm
Forum: Flowcode V7
Topic: Software Controlled PWM
Replies: 2
Views: 108

Re: Software Controlled PWM

Hi Steve,

A single timer may be all that is required.

There is a software PWM example here that should hopefully help.
https://www.matrixtsl.com/wiki/index.ph ... Interrupts

Let us know how you're getting on.
by Benj
Thu Jun 06, 2019 3:34 pm
Forum: Flowcode V8
Topic: Change module properties
Replies: 3
Views: 161

Re: Change module properties

Hello,

The channel is fixed in the compiled code and there is no easy way of changing this.

What device are you using? You may be able to change the remap options for a specific channel if your device has this available.
by Benj
Thu Jun 06, 2019 9:10 am
Forum: Programming Tips & Tricks
Topic: Using XC8 V2.00 or greater with Flowcode 8
Replies: 2
Views: 228

Re: Using XC8 V2.00 or greater with Flowcode 8

Thanks Martin,

Some good info there! wow that memory usage jumped a lot. Not too up on the C standards so I wonder what C99 brings to the table that C90 cannot do?
by Benj
Fri May 31, 2019 8:08 pm
Forum: General Programming
Topic: Component Available for specific OLED???
Replies: 5
Views: 268

Re: Component Available for specific OLED???

I would try the parallel one first. The buffered one I believe uses SPI serial comms and will use more ram to buffer the pixel memory.
by Benj
Fri May 31, 2019 12:35 pm
Forum: General Programming
Topic: Component Available for specific OLED???
Replies: 5
Views: 268

Re: Component Available for specific OLED???

Hi Steve, Right it looks like the display is a OS128064PK16MY0A01 which uses a SSD0323 driver IC. Really had to go round the houses to get this info :roll: The SSD0323 is apparently compatible with the SSD1322, SSD1325, SSD1326, SSD1327, SSD1328, SSD1329 display driver ICs. We do support the SSD1322...