Search found 13467 matches

by Benj
Fri Sep 13, 2019 5:24 pm
Forum: Bug Reports
Topic: Error in character representation in a string
Replies: 2
Views: 36

Re: Error in character representation in a string

Hi Christina, If the encrypted string contains NUILL characters then you may need to use a byte array instead of a string, a NULL would effectively mark the end of the string. Otherwise a string should do exactly what you need it to. The print as hex is likely just done by the console or whatever yo...
by Benj
Fri Sep 13, 2019 5:16 pm
Forum: Flowcode V8
Topic: TCP IP Examples (W5500)
Replies: 6
Views: 200

Re: TCP IP Examples (W5500)

I've been working on the W5500 support for the network comms component today and though I've fixed a number of problems it's still not working 100% nicely for me. I've pushed the various changes to the update system so you can see if it's any better for you now. Here's my project file. NetworkComms-...
by Benj
Fri Sep 13, 2019 5:13 pm
Forum: Bug Reports
Topic: Bad mistake in FC8!
Replies: 1
Views: 29

Re: Bad mistake in FC8!

Hi Christina,

Many thanks we will investigate what might be causing this.
by Benj
Fri Sep 13, 2019 3:01 pm
Forum: General Programming
Topic: IOC dilema
Replies: 2
Views: 34

Re: IOC dilema

Hello, To discount anything in your program causing the problem can you disable the other code or at least add a while 1 loop so that it enables the interrupt and then loops forever in main without doing anything else. I'm thinking maybe an ADC read on that pin or something else similar is maybe swi...
by Benj
Fri Sep 13, 2019 11:32 am
Forum: Flowcode V8
Topic: Clock Settings for Pic32
Replies: 16
Views: 578

Re: Clock Settings for Pic32

Hello, First we try the calculation using the high speed baud rate, this gives higher resolution so will be able to acheive faster baud rates with less error. If the calculation results in a value that is too big for the baud rate register (> 65535) e.g. a fairly low baud rate then we switch to the ...
by Benj
Wed Sep 11, 2019 5:25 pm
Forum: Flowcode V8
Topic: USB Serial
Replies: 4
Views: 144

Re: USB Serial

Hello,

Working fine for me.

Here is a Flowcode project to receive the data from the USB Serial Component.

Just set the correct port for the COM Port component, then click run and it should receive the data.

Flowcode1.fcfx
(6.93 KiB) Downloaded 4 times


Data.jpg
Data.jpg (27.39 KiB) Viewed 68 times
by Benj
Wed Sep 11, 2019 4:10 pm
Forum: Bug Reports
Topic: PWM 18F27K40
Replies: 14
Views: 402

Re: PWM 18F27K40

Woohoo, :D :D :D

Excellent, sorry this was so long in getting to you and really happy this is working correctly now.

Thanks for bearing with and letting me know.
by Benj
Wed Sep 11, 2019 4:03 pm
Forum: Flowcode V8
Topic: Clock Settings for Pic32
Replies: 16
Views: 578

Re: Clock Settings for Pic32

Hi Stefan, The baud calc is done here in this file which also references the project options clock speed. C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC32BIT\PIC32BIT_CAL_UART.c If no dividor is specified in the device definition file then we currently default to 4. #ifndef MX_UART_BAUD_DIV #define MX_...
by Benj
Wed Sep 11, 2019 3:31 pm
Forum: Flowcode V8
Topic: Clock Settings for Pic32
Replies: 16
Views: 578

Re: Clock Settings for Pic32

Hello, These PIC32 devices are very odd, some work fine but others do not and the rules seem to change mid family so rolling out a divider is very hard. I've tried multiple times to get this right. Which PIC32 device(s) are you currently testing. I could maybe change the UART baud calulation for the...
by Benj
Wed Sep 11, 2019 3:10 pm
Forum: Flowcode V8
Topic: Modbus tcp/ip master/slave simulation problem
Replies: 17
Views: 823

Re: Modbus tcp/ip master/slave simulation problem

I'll put together an ESP8266 example for you.

In fact I might do various examples as this will allow me to proove to myself that things are well supported and working.
by Benj
Wed Sep 11, 2019 3:09 pm
Forum: Flowcode V8
Topic: Capture Custom Interrupt Code
Replies: 5
Views: 122

Re: Capture Custom Interrupt Code

Hi Dave,

I had a look and didn't spot anything obvious. Have you tried the timer component to see if that will do what you need?
by Benj
Wed Sep 11, 2019 3:08 pm
Forum: Flowcode V8
Topic: BL0032 20x4 liniers LCD display with I2C
Replies: 6
Views: 126

Re: BL0032 20x4 liniers LCD display with I2C

Hi Monie,

Have you tried the component I highlighted in the screenshot - LCD I2C (LCM1602)?

This has the PCF8574 code built into it. If this isn't working then do you have any example code to work from that I can compare with the component.
by Benj
Wed Sep 11, 2019 3:06 pm
Forum: Bug Reports
Topic: PWM 18F27K40
Replies: 14
Views: 402

Re: PWM 18F27K40

Thanks Martin,

Third time's the charm (hopefully) :D
by Benj
Wed Sep 11, 2019 12:22 pm
Forum: Flowcode V8
Topic: Modbus tcp/ip master/slave simulation problem
Replies: 17
Views: 823

Re: Modbus tcp/ip master/slave simulation problem

Hello,

I beleive the W5500 is fine and also the ESP8266 should be ok too. I'll double check these now.
by Benj
Wed Sep 11, 2019 12:20 pm
Forum: Bug Reports
Topic: PWM 18F27K40
Replies: 14
Views: 402

Re: PWM 18F27K40

Hi Martin,

Wow thanks for getting back so fast. I beleive I have now found and fixed the problem for you.
by Benj
Wed Sep 11, 2019 12:12 pm
Forum: Flowcode V8
Topic: Analogue input always reading 255
Replies: 2
Views: 39

Re: Analogue input always reading 255

Hi Dave, I've just looked at the code for the ADC on the K22 devices and it looks to be ok. The ADC component in your project is pointed to AN0 though I'm guessing this isn't the cause of the issue. Maybe try a conversion rate other then the FRC setting. Might also be worth getting rid of the C code...
by Benj
Wed Sep 11, 2019 11:28 am
Forum: Flowcode V8
Topic: Modbus tcp/ip master/slave simulation problem
Replies: 17
Views: 823

Re: Modbus tcp/ip master/slave simulation problem

Hello, The ENC28J60 component is not supported by the Network Comms component at the moment. Just looking into this now for you but it looks like it may be hard to impossible to support the ENC28J60 module with the Network Comms component as the ENC28J60 module exposes a lot of the lower layers that...
by Benj
Wed Sep 11, 2019 10:26 am
Forum: Flowcode V8
Topic: SPI read 216 Bit problem
Replies: 7
Views: 258

Re: SPI read 216 Bit problem

Hi Stefan,

Excellent glad it's working well for you now and thanks for letting us know.
by Benj
Wed Sep 11, 2019 10:20 am
Forum: Flowcode V6
Topic: Can not read the ADC at Attiny84
Replies: 2
Views: 116

Re: Can not read the ADC at Attiny84

Hello Ralf, Just looking into this for you and the ADC code looks ok. One thing I spotted is that there is a digital input disable register mentioned in the datasheet. It doesn't say it is required to be set for ADC conversion but it's work a go. DIDR0 = 0x3F; //Disable Digital Inputs DIDR0 = 0x00; ...
by Benj
Wed Sep 11, 2019 10:05 am
Forum: Flowcode V8
Topic: MQTT basics
Replies: 3
Views: 90

Re: MQTT basics

Thanks for the suggestion.

I've added the info to the wiki page now.
by Benj
Wed Sep 11, 2019 10:02 am
Forum: Flowcode V8
Topic: KS0108 gLCD working slowly
Replies: 2
Views: 65

Re: KS0108 gLCD working slowly

Hello,

Can you post your Flowcode project file and we can investigate for you.

It's worth checking your config and clock speed are setup correctly so the best way to do this is to do the 1 second flash test.
https://www.matrixtsl.com/wiki/index.ph ... ED_flasher
by Benj
Wed Sep 11, 2019 9:56 am
Forum: Bug Reports
Topic: PWM 18F27K40
Replies: 14
Views: 402

Re: PWM 18F27K40

Hi Martin,

I've had another look into the problem this morning and pushed a change to the device definition files which hopefully solves the problem.

Thanks for chasing this one up.
by Benj
Tue Sep 10, 2019 4:38 pm
Forum: Flowcode V7
Topic: Reading Buffer
Replies: 2
Views: 56

Re: Reading Buffer

Hello,

If everything is delimited with a full stop then I would do something like this using a finite state machine approach.

Parser.fcfx
(11.17 KiB) Downloaded 3 times


You might need a timeout to reset the RxMode back to 0 if no data is received for several seconds.
by Benj
Tue Sep 10, 2019 3:42 pm
Forum: Flowcode V8
Topic: Help with the "ILI9341 Display 8bit Data Bus"
Replies: 4
Views: 148

Re: Help with the "ILI9341 Display 8bit Data Bus"

Hello,

The Connection type property allows you to select if the display is serial, 8-bit or 16-bit.

The Data[7:0] and Data[15:8] properties allow you to specify the port connections.

Or if you change the Use Ports property to No then you get individual pin properties you can set.
by Benj
Tue Sep 10, 2019 3:35 pm
Forum: Flowcode V8
Topic: BL0032 20x4 liniers LCD display with I2C
Replies: 6
Views: 126

Re: BL0032 20x4 liniers LCD display with I2C

Hi Monie,

It looks like that display uses the PCF8574 IO expander to drive it. So you will likely need to use this component instead.

Display.jpg
Display.jpg (52.21 KiB) Viewed 118 times


I beleive the backpack component uses the MCP23017 IO expander instead.