Search found 14418 matches

by Benj
Wed Dec 23, 2020 8:00 pm
Forum: Flowcode V8
Topic: Login FC9!
Replies: 13
Views: 585

Re: Login FC9!

Hi Jorgen while we sort this out I have manually changed your v9 forum password. I'll send you it via a pm
by Benj
Tue Dec 22, 2020 12:43 pm
Forum: General Programming
Topic: Built-in extended ASCII
Replies: 4
Views: 628

Re: Built-in extended ASCII

Hello, The LCD (Generic Configurable) component has a property called remap characters that allows you to take a character and automatically remap it to a different character when printing strings. I beleive this is what you need. For example this macro would replace any occurance of the character '...
by Benj
Tue Dec 22, 2020 12:27 pm
Forum: Flowcode V8
Topic: Timer2 ATMEGA328P Problem
Replies: 2
Views: 120

Re: Timer2 ATMEGA328P Problem

Hi Christian,

Yes Viktor is correct the ATMEGA328p lacks the period register and so the period is locked to 256 counts. There is a warning about this in the compiler messages but it's easy to miss.
by Benj
Tue Dec 22, 2020 12:13 pm
Forum: Flowcode V8
Topic: MCP3201 12-Bit ADC Component
Replies: 18
Views: 521

Re: MCP3201 12-Bit ADC Component

Hi Abhi, In your calculation that converts from a float to a string try changing the code to this. ADC_Global_ST = FloatToString$ (ADC_Global_Real,1) ADC_Global_ST = ADC_Global_ST + " " This will add some spaces to the end of the string and avoid leaving values on the GLCD at the end of the number f...
by Benj
Tue Dec 22, 2020 12:09 pm
Forum: Flowcode V8
Topic: Merry Christmas!
Replies: 11
Views: 364

Re: Merry Christmas!

Xmas.jpg
Xmas.jpg (34.26 KiB) Viewed 339 times
by Benj
Mon Dec 21, 2020 3:01 pm
Forum: Flowcode V8
Topic: MCP3201 12-Bit ADC Component
Replies: 18
Views: 521

Re: MCP3201 12-Bit ADC Component

Thanks Abhi,

What about this instead?
MCP3201_Demo.fcfx
(9.39 KiB) Downloaded 18 times
by Benj
Mon Dec 21, 2020 1:15 pm
Forum: Flowcode V8
Topic: MCP3201 12-Bit ADC Component
Replies: 18
Views: 521

Re: MCP3201 12-Bit ADC Component

Hi Abhi,

Let me know how you get on with the example code, if that works ok then I'll use that for the component. There is a shift that i'm slightly unsure of so would be nice to confirm if the range is correct or /2.

e.g. 0-2047 instead of 0-4095.
by Benj
Mon Dec 21, 2020 1:12 pm
Forum: Flowcode V8
Topic: SSD1963 hardware not working properly
Replies: 43
Views: 1767

Re: SSD1963 hardware not working properly

Ooh if you don't mind that would be very helpful.
by Benj
Mon Dec 21, 2020 11:07 am
Forum: Flowcode V8
Topic: MCP3201 12-Bit ADC Component
Replies: 18
Views: 521

Re: MCP3201 12-Bit ADC Component

Hi Abhi,

I'll have a go at creating a component but here is an example using the SPI master component.
MCP3201_Demo.fcfx
(8.99 KiB) Downloaded 14 times
by Benj
Sat Dec 19, 2020 12:32 am
Forum: Flowcode V8
Topic: SSD1963 hardware not working properly
Replies: 43
Views: 1767

Re: SSD1963 hardware not working properly

I haven't manage to get my hands on one of these displays so I'll get one purchased so we can investigate the problem for you.
by Benj
Sat Dec 19, 2020 12:31 am
Forum: Flowcode V8
Topic: ILI9341 SPI (slow) speed with PIC24F16KA101
Replies: 2
Views: 147

Re: ILI9341 SPI (slow) speed with PIC24F16KA101

Hi Rov,

Have you tried the SPI version of the component that uses the SPI hardware rather then a bit banged SPI interface. This should run a air bit quicker for you.
by Benj
Thu Dec 17, 2020 12:22 pm
Forum: 8-Bit PIC
Topic: Hz flash using interupt
Replies: 6
Views: 356

Re: Hz flash using interupt

Hi Bob, Yes an interrupt firing at 15.2 Hz will run the selected macro 15.2 times a second. Your program looks ok but will likely be flashing at a rate of 0.5Hz. 1second on and 1 second off. The problem with your program is you are also calling the pop macro within your main loop, remove the macro c...
by Benj
Thu Dec 17, 2020 12:18 pm
Forum: Flowcode V8
Topic: FC9 XMEGA ILI9341 SPI problem
Replies: 12
Views: 455

Re: FC9 XMEGA ILI9341 SPI problem

Should be fixed for you now.
by Benj
Wed Dec 16, 2020 1:24 pm
Forum: Bug Reports
Topic: ATTiny85 SPI
Replies: 8
Views: 343

Re: ATTiny85 SPI

Hello, It might be worth trying the SPI master component as this might give you more control over things like the clock speed and bus settings. Looking at the device datasheet SDO (MOSI) is on B0 and SDI (MISO) is on B1 and this seems to tally with what is in the definition file. When using the hard...
by Benj
Mon Dec 14, 2020 10:35 pm
Forum: Flowcode V8
Topic: XC8 1.45 syntax error programming PIC18F47K40
Replies: 4
Views: 286

Re: XC8 1.45 syntax error programming PIC18F47K40

Hi Roy, Rather then go off into a similar macro for each test I now do the test inside the test macro, the .NumTests = .NumTests + 1 command simply increments the value in the NumTests variable so we know how many steps are in the test. Here is a snippet taken from one of your macros ported to the n...
by Benj
Mon Dec 14, 2020 3:03 pm
Forum: Bug Reports
Topic: WS2812B
Replies: 5
Views: 239

Re: WS2812B

Thanks for the code.

Maybe try a small delay (100ms) before calling the initialise function. Initialise does a refresh I beleive and if the chip isn't running at full speed when it does this then it may clock out incorrect data.
by Benj
Mon Dec 14, 2020 10:56 am
Forum: Bug Reports
Topic: WS2812B
Replies: 5
Views: 239

Re: WS2812B

Hello,

Can we please see your program, my guess is it's something there that is causing the white output.
by Benj
Fri Dec 11, 2020 1:41 pm
Forum: Flowcode V8
Topic: SSD1963 hardware not working properly
Replies: 43
Views: 1767

Re: SSD1963 hardware not working properly

Hello,

I had a dig for my 1963 display but couldn't lay my hands on it. I'll keep looking to see if I can help.

PIC32 shouldnt be required.
by Benj
Fri Dec 11, 2020 1:37 pm
Forum: General Programming
Topic: High-Endurance Flash in pic12f1612
Replies: 3
Views: 1054

Re: High-Endurance Flash in pic12f1612

I've had a stab at adding it in Flowcode v9, it's been a while since I did it so not sure how well implemented it got but it certainly was working on some devices.

What compiler / software are you using?
by Benj
Thu Dec 10, 2020 1:21 pm
Forum: Flowcode V8
Topic: Double click query
Replies: 5
Views: 270

Re: Double click query

Excellent, thanks for letting us know and well done :D
by Benj
Thu Dec 10, 2020 1:00 pm
Forum: Flowcode V8
Topic: Modbus slave on USB serial macro
Replies: 12
Views: 451

Re: Modbus slave on USB serial macro

Excellent, thanks for letting me know. :D
by Benj
Wed Dec 09, 2020 2:03 pm
Forum: Electronics products
Topic: Dual RS232 Ports
Replies: 7
Views: 11949

Re: Dual RS232 Ports

Hello,
An error is appearing when I try to record with pickit3.
What error message are you getting?
by Benj
Wed Dec 09, 2020 11:42 am
Forum: Flowcode V8
Topic: BL0140 and BL0061
Replies: 2
Views: 130

Re: BL0140 and BL0061

Hello,

I might know what's causing this. Please can you try changing the CAN component property SPI CHANNEL to software and let me know if this works correctly.
by Benj
Wed Dec 09, 2020 11:25 am
Forum: Flowcode V8
Topic: atmega328p DHT22 problem
Replies: 13
Views: 362

Re: atmega328p DHT22 problem

Are you driving the Atmega with a 16MHz crystal? Are your load capacitors correct? Can you post your circuit so we can check.

You settings look ok to me for 16MHz operation.
by Benj
Wed Dec 09, 2020 11:16 am
Forum: Foro de soporte español
Topic: Es posible cambiar una variable de Int a String
Replies: 1
Views: 134

Re: Es posible cambiar una variable de Int a String

Hola,

La función ToString $ () debería hacer lo que quieras.


Hello,

The ToString$() function should do what you want.