Search found 14463 matches

by Benj
Wed Apr 21, 2021 1:57 pm
Forum: Feature Requests
Topic: Improvements for RS232 serial component
Replies: 1
Views: 110

Re: Improvements for RS232 serial component

Hello Fernando, Thanks for the suggestions. The use of a FIFO buffer would rely on the interrupt being switched on behind the scenes. I beleive this is how Arduino do it, it's certainly something we can consider adding as it would simplify things for a user not used to adding their own interrupt. If...
by Benj
Wed Apr 21, 2021 1:53 pm
Forum: Flowcode V8
Topic: Can V8 simulate RXINT?
Replies: 1
Views: 96

Re: Can V8 simulate RXINT?

Hello Fernando, No sorry at the moment v8 cannot simulate the RXInt, a workaround is to call the macro as part of your main program loop. You can use the IsSim component to decide if you are in simulation mode or not. In v9 we have more capability to allow us to do this via new simulation API comman...
by Benj
Wed Apr 21, 2021 9:38 am
Forum: Flowcode V7
Topic: FC7 project won't compile with Win10(64) + xc8 2.31
Replies: 3
Views: 145

Re: FC7 project won't compile with Win10(64) + xc8 2.31

Excellent thanks for letting us know :D
by Benj
Wed Apr 21, 2021 9:37 am
Forum: Electronics products
Topic: How to test ceramic capacitor
Replies: 1
Views: 271

Re: How to test ceramic capacitor

Hello,

How about something like this?
https://www.flowcode.co.uk/forums/viewt ... ?f=9&t=412
by Benj
Mon Apr 19, 2021 11:29 pm
Forum: General Programming
Topic: ENC28J60
Replies: 15
Views: 4261

Re: ENC28J60

Hello, I'm guessing the MySQL database is running on a LAMP type server (Linux, Apache, MySQL, PHP). I would setup a PHP page that logs data to the MySQL from parameters that are passed to the page. You can then pass parameters to the page by using the URL and doing a page request using the ENC28J60...
by Benj
Mon Apr 19, 2021 12:33 pm
Forum: General Programming
Topic: Draw a circle using 2 stepper motors
Replies: 3
Views: 461

Re: Draw a circle using 2 stepper motors

Hello, Some G code converters will simply use linear interpolation making the circle up of lots of individual straight lines. However some more advanced G code converters will use circular interpolation. It's very similar to linear interpolation but uses SIN and COS with a radius and a central offse...
by Benj
Mon Apr 19, 2021 12:26 pm
Forum: General Programming
Topic: ECIO40P16 and dsPIC33EP256MU806 chip
Replies: 9
Views: 484

Re: ECIO40P16 and dsPIC33EP256MU806 chip

Aha well done glad you got it working. In our bootloader firmware we check to see if a voltage on an input pin used as a USB detect pin is present when starting. The pin is pulled low by a resistor and connected to the VUSB pin from the USB socket. If the voltage is not present then we jump directly...
by Benj
Mon Apr 19, 2021 12:19 pm
Forum: General Programming
Topic: ENC28J60
Replies: 15
Views: 4261

Re: ENC28J60

Hello, The IP address http://192.168.0.100/ is basically just a link to the IP. If you leave the file blank then normally a default file is used usually with the name index.htm. If you want to have a link to the file then you can simply have a piece of html like this. <a href="http://192.168.0.100/"...
by Benj
Thu Apr 15, 2021 10:00 am
Forum: General Programming
Topic: ECIO40P16 and dsPIC33EP256MU806 chip
Replies: 9
Views: 484

Re: ECIO40P16 and dsPIC33EP256MU806 chip

Hello, We use the onboard PLL to multiply up the 8MHz input clock frequency up to 140MHz. Unfortunatley you currently have to do this using C code. //Setup configuration for 70MIPs using 8MHz Crystal PLLFBD = 68; // M=70 CLKDIVbits.PLLPOST = 0; // N1=2 CLKDIVbits.PLLPRE = 0; // N2=2 OSCTUN = 0; //Tu...
by Benj
Wed Apr 14, 2021 9:44 am
Forum: Bug Reports
Topic: Property changes requires exit to be effective
Replies: 1
Views: 80

Re: Property changes requires exit to be effective

Hello Fernando,

Please can you post a project that demonstrates these problems and I will investigate for you. The changes on both of those properties should be immediate and not require a reload of the project.
by Benj
Wed Apr 14, 2021 9:43 am
Forum: Feature Requests
Topic: Support for PIC18F55K42
Replies: 7
Views: 208

Re: Support for PIC18F55K42

Hello,

Yes if you copied one of the existing K42 FCDX files and changed the pins and other sections to match the device then that should work. I'm a bit wary of adding more K42 device support at the moment as I know there are problems with these devices which we are slowly wading through.
by Benj
Mon Apr 12, 2021 12:25 pm
Forum: Flowcode V8
Topic: 18F14K22 Timer question
Replies: 10
Views: 742

Re: 18F14K22 Timer question

Hello,

I've had a look for you and that is a puzzler, hmm. I'm not aware of anything that might cause this and looking I can't spot anything obvious.

I'll think on it.
by Benj
Mon Apr 12, 2021 12:11 pm
Forum: Bug Reports
Topic: SSD1322 Init Doesn't Work
Replies: 12
Views: 550

Re: SSD1322 Init Doesn't Work

Hello, I've had another look at the code compared to what you posted and it all seems to look ok. However it appears the clear function is not working for some reason. Do you know the pixel dimensions of your display? It might be worth trying to increase the pixel height in the component properties ...
by Benj
Wed Mar 24, 2021 2:43 pm
Forum: User Components
Topic: New led string to play with. SK6812 - rgbw
Replies: 10
Views: 663

Re: New led string to play with. SK6812 - rgbw

Hi Chad.

I looked at the datasheet on the driver ic sk6812 and there were only three colour channels. Is the white led part of the same led package or a separate package? Do you have a datasheet for the white led?
by Benj
Wed Mar 24, 2021 11:05 am
Forum: Bug Reports
Topic: SSD1322 Init Doesn't Work
Replies: 12
Views: 550

Re: SSD1322 Init Doesn't Work

Hello,

Please can you try the new component file I've pushed to the update system.

Hopefully this will clear the display and if that works then I know how to fix the pixel functions too.

Let me know how you get on.
by Benj
Tue Mar 23, 2021 9:30 pm
Forum: Bug Reports
Topic: Problem with the WS2812B component in PIC32MX370F512H MCU
Replies: 14
Views: 766

Re: Problem with the WS2812B component in PIC32MX370F512H MCU

Hi Lagoda, I'm doing some more investigation for you now. I may end up buying one of the ICs so I can test here. Are you programming the IC directly with say a PICkit or do you have a bootloader loaded on the IC? Just wondering if we can trust the config values being assigned by Flowcode. It might a...
by Benj
Tue Mar 23, 2021 9:10 pm
Forum: Bug Reports
Topic: SSD1322 Init Doesn't Work
Replies: 12
Views: 550

Re: SSD1322 Init Doesn't Work

Hello,

Here's the component source, please let me know if you find anything. It looks like maybe the initialise is ok but the clear is not working correctly. Maybe to do with the GotoXY function.
glcd_SSD1322.fcfx
(132.61 KiB) Downloaded 28 times
by Benj
Tue Mar 23, 2021 12:07 pm
Forum: User Components
Topic: New led string to play with. SK6812 - rgbw
Replies: 10
Views: 663

Re: New led string to play with. SK6812 - rgbw

Hi Chad,

It looks like it should be compatible.

Have a go and let us know how you get on.
by Benj
Tue Mar 23, 2021 12:03 pm
Forum: Bug Reports
Topic: Problem with the WS2812B component in PIC32MX370F512H MCU
Replies: 14
Views: 766

Re: Problem with the WS2812B component in PIC32MX370F512H MCU

Hi Lagoda, As your delays are off that indicates things aren't setup correctly and the MCU likely isn't running at the speed you think it is. The first thing to focus on is getting the delays correct. Some advice here on testing and things to investigate. https://www.matrixtsl.com/wiki/index.php?tit...
by Benj
Tue Mar 23, 2021 11:57 am
Forum: 8-Bit PIC
Topic: convert two Int to one Float
Replies: 7
Views: 795

Re: convert two Int to one Float

Hello,

In your case it would look like this.

Code: Select all

Temp.AsInt[0] = FCV_INT0;
Temp.AsInt[1] = FCV_INT1;
FCV_FVAR = Temp.AsFloat;
by Benj
Mon Mar 22, 2021 12:04 pm
Forum: Flowcode V8
Topic: Program no longer works after V8 update
Replies: 4
Views: 438

Re: Program no longer works after V8 update

Hello, We recently fixed a long running bug with the reference voltage setting on the Arduino Uno / 328 / 328P devices. Before the settings the user selected was getting switched and potentially corrupted whereas now it should be correct. Check your ADC component property settings relating to the AD...
by Benj
Mon Mar 22, 2021 12:03 pm
Forum: Bug Reports
Topic: Analog input Arduino Nano is not working
Replies: 3
Views: 410

Re: Analog input Arduino Nano is not working

Hello, We recently fixed a long running bug with the reference voltage setting on the Arduino Uno / 328 / 328P devices. Before the settings the user selected was getting switched and potentially corrupted whereas now it should be correct. Check your ADC component property settings relating to the AD...
by Benj
Fri Mar 19, 2021 10:48 am
Forum: 8-Bit PIC
Topic: convert two Int to one Float
Replies: 7
Views: 795

Re: convert two Int to one Float

Hi George,

This topic should help.
viewtopic.php?f=28&t=12561&p=49907

In your case the union could instead look like this.

Code: Select all

typedef union
{
  MX_FLOAT AsFloat;
  MX_UINT16  AsInt[2];
} MX_UnionFloat;
by Benj
Fri Mar 19, 2021 10:34 am
Forum: Bug Reports
Topic: Problem with the WS2812B component in PIC32MX370F512H MCU
Replies: 14
Views: 766

Re: Problem with the WS2812B component in PIC32MX370F512H MCU

Hi Lagoda,

Thanks for the files.

How about changing the LED type property to custom and then reducing the T0H timing, maybe to 0.1 and see how that works.

I'll investigate the delays being wrong here on the hardware I have available.
by Benj
Tue Mar 16, 2021 11:38 pm
Forum: General Programming
Topic: Build to C code
Replies: 3
Views: 750

Re: Build to C code

Hello,

I can't solve the FAT problem for you but the RS232 and I2C components can be used for free by using the hidden CAL version of the component. It's not as polished but it might enable you to proceed.
CAL.jpg
CAL.jpg (14.9 KiB) Viewed 692 times