Search found 2067 matches

by LeighM
Tue Dec 21, 2021 11:10 am
Forum: Bug Reports
Topic: EXTI
Replies: 2
Views: 6429

Re: EXTI

exti.jpg
exti.jpg (60.73 KiB) Viewed 6407 times
by LeighM
Fri Oct 22, 2021 8:16 am
Forum: Flowcode V7
Topic: error return 255
Replies: 5
Views: 8186

Re: error return 255

Have you got a folder C:\Program Files\Flowcode 7\compilers\pic16?
by LeighM
Fri Oct 15, 2021 8:28 am
Forum: Flowcode V8
Topic: ADC internal Vref Activate
Replies: 10
Views: 6113

Re: ADC internal Vref Activate

What device are you using?
by LeighM
Fri Oct 15, 2021 8:23 am
Forum: General Programming
Topic: PWM Control for elektrical motor with potentiometer.
Replies: 18
Views: 21443

Re: PWM Control for elektrical motor with potentiometer.

Try removing the 0 -> B6
If that does not fix the issue, please could you provide more info on the hardware that you are using?
by LeighM
Thu Sep 09, 2021 12:39 pm
Forum: Flowcode V8
Topic: Can THE ST F3 series replace the ST F1 series?
Replies: 1
Views: 2837

Re: Can THE ST F3 series replace the ST F1 series?

Hi,
No, we don't support the F1 series.
But I think an F4 program could likely run on F2
by LeighM
Mon Sep 06, 2021 10:56 am
Forum: Flowcode V8
Topic: SRM32F411RE,Port output variable not working
Replies: 3
Views: 4659

Re: SRM32F411RE,Port output variable not working

OK, good, thanks for letting us know.
Also, I have been reminded that historically in Flowcode the operators AND, OR and NOT have always been bitwise operators.
So this confirms that you do need to use D=!D in this scenario.
Thanks
Leigh
by LeighM
Mon Sep 06, 2021 9:56 am
Forum: Flowcode V8
Topic: SRM32F411RE,Port output variable not working
Replies: 3
Views: 4659

Re: SRM32F411RE,Port output variable not working

Ah, well spotted, this is the issue with your Timer interrupt program. In my test version I used D = !D which does work. (as I've been a C programmer for the last 40 years :lol: Bools are simple in C, in that 0 is false, anything else is true. But this can have complications depending upon how they ...
by LeighM
Mon Sep 06, 2021 7:56 am
Forum: Flowcode V8
Topic: SRM32F411RE Interrupts don't work
Replies: 9
Views: 10675

Re: SRM32F411RE Interrupts don't work

Hi, I don't have them with me at the moment. But I suggest you use the project that you first posted. That used the internal HSI. (So will eliminate any possible issues with your external crystal) In the project options screen, change the clock speed to 16MHz (from 8MHz) and then in the Timer interr...
by LeighM
Fri Sep 03, 2021 2:53 pm
Forum: Flowcode V8
Topic: SRM32F411RE Interrupts don't work
Replies: 9
Views: 10675

Re: SRM32F411RE Interrupts don't work

I've just run a similar program on a 32F446 and it works fine.

I also just noticed that in your latest Flowcode project that you have not changed the Timer Interrupt properties,
you still have Rollover as 1000, so unless you have an oscilloscope on your LED you might not see the on/off state change.
by LeighM
Fri Sep 03, 2021 11:24 am
Forum: Flowcode V8
Topic: SRM32F411RE Interrupts don't work
Replies: 9
Views: 10675

Re: SRM32F411RE Interrupts don't work

It looks Ok.
Have you tried a simple 1 second LED flash loop, with LED on/off and 1/2 second delays?
Without the timer interrupt.
Just to check the chip is programming and running OK?
by LeighM
Fri Sep 03, 2021 8:56 am
Forum: Flowcode V8
Topic: SRM32F411RE Interrupts don't work
Replies: 9
Views: 10675

Re: SRM32F411RE Interrupts don't work

Hi, I've done an example based on your original Flowchart, because on your settings above you have changed to HSE, but I don't know your external crystal frequency. btw. For HSI the clock speed should be set to 16MHz (not 8MHz, I was getting confused with the Nucleo board) clock_speed.jpg Or set thi...
by LeighM
Thu Sep 02, 2021 9:02 am
Forum: Flowcode V8
Topic: SRM32F411RE Interrupts don't work
Replies: 9
Views: 10675

Re: SRM32F411RE Interrupts don't work

Hi, The timer interrupt is likely working on the target device, but much faster than you expect. Unfortunately, the calculated period in the Flowcode timer interrupt properties dialogue is incorrect. This is because Flowcode is not aware of the PLL multiplier and other clock configuration parameters...
by LeighM
Mon Aug 30, 2021 11:02 am
Forum: Bug Reports
Topic: Arduino MEGA 2560 Cannot Compile to Chip
Replies: 1
Views: 5898

Re: Arduino MEGA 2560 Cannot Compile to Chip

Determine the correct programmer COM port for your Leonardo. Run Windows Device Manager. Press reset on the Leonardo and watch out for the Port (COM & LPT) that appears for a few seconds. Make a note of the COMxx port. Settings for Flowcode project "Project Options" screen. Ensure you...
by LeighM
Tue Aug 17, 2021 9:14 am
Forum: Flowcode V8
Topic: I can't login on new flowcode 9 forum
Replies: 3
Views: 4554

Re: I can't login on new flowcode 9 forum

Flowcode 9 and ESP32: Can I develop programs in flowcode 9 targeting ESP32 as a microcontroller,
Yes
by LeighM
Tue Aug 17, 2021 9:12 am
Forum: Flowcode V6
Topic: PIC18F45K22 Clock setup
Replies: 19
Views: 18191

Re: PIC18F45K22 Clock setup

Have you also checked (or tried variations for) Clock Phase, Polarity and Sample point?
by LeighM
Thu May 20, 2021 9:45 am
Forum: General Programming
Topic: ESP32-UART
Replies: 2
Views: 6619

Re: ESP32-UART

Hi Rafael,
Could give more details and post your Flowcode project?
What do you mean by "programming manually"?
What have you got connected to UART1?
by LeighM
Mon May 17, 2021 11:28 am
Forum: General Programming
Topic: ESP32
Replies: 9
Views: 14071

Re: ESP32

by LeighM
Mon May 17, 2021 10:55 am
Forum: General Programming
Topic: ESP32
Replies: 9
Views: 14071

Re: ESP32

UART0 is best avoided as this is the debug channel.
Do you have another unit to test?
by LeighM
Mon May 17, 2021 9:38 am
Forum: General Programming
Topic: ESP32
Replies: 9
Views: 14071

Re: ESP32

Each PORT represents 32 pins.
So PORTA 0 to 31 is GPIO0 to GPIO31
PORTB 0 is GPIO32 etc...
by LeighM
Mon May 17, 2021 9:17 am
Forum: General Programming
Topic: ESP32
Replies: 9
Views: 14071

Re: ESP32

Hi Rafael,
Even if the pin mapping on the board is different,
you should still be able to select IO via the GPIO/pin numbers,
e.g. GPIO6 is PORTA6
by LeighM
Wed May 12, 2021 4:35 pm
Forum: Formula AllCode
Topic: IR sensors with flowcode 9
Replies: 4
Views: 11210

Re: IR sensors with flowcode 9

Hi Andrew,
Sorry for the delay in getting back to you.
Do you have more than one Formula Allcode,
such that we can determine if it is just this one unit that might be at fault?
by LeighM
Wed Mar 17, 2021 1:31 pm
Forum: General Programming
Topic: Analog Multiplexer for ADC Stm32f103c8t6
Replies: 3
Views: 7685

Re: Analog Multiplexer for ADC Stm32f103c8t6

As you probably realise, the ADC will only be capable of accepting input voltages between its power rails. So you would need to buffer the signal with an Op Amp so as to provide a gain or signal reduction as well as an offset such that 0v at the test point gives mid-rail at the ADC input. Google som...
by LeighM
Wed Mar 17, 2021 11:50 am
Forum: Flowcode V8
Topic: RPi 4B HDMI Component Touchscreen
Replies: 8
Views: 7301

Re: RPi 4B HDMI Component Touchscreen

Here's an update, please try this ...
by LeighM
Mon Mar 15, 2021 10:27 am
Forum: Flowcode V8
Topic: RPi 4B HDMI Component Touchscreen
Replies: 8
Views: 7301

Re: RPi 4B HDMI Component Touchscreen

Thanks for the info. I've made some changes and attached an updated component, if you could please drop this into the following directory on your PC and then retry C:\ProgramData\MatrixTSL\FlowcodeV8\Components As before, GetTouchCoordinates should be called first, this will return non-zero if there...