Search found 1523 matches

by kersing
Tue Nov 24, 2020 8:25 pm
Forum: General Programming
Topic: Putting PIC16F18857 MCU in to sleep mode and coming out from sleep mode
Replies: 3
Views: 58

Re: Putting PIC16F18857 MCU in to sleep mode and coming out from sleep mode

Having issues posting on the microchip forum does not mean you should post messages unrelated to flowcode on this forum.
by kersing
Fri Nov 20, 2020 8:52 pm
Forum: Freelance Embedded Engineers
Topic: Help+AC current transformer + Flowcode
Replies: 1
Views: 71

Re: Help+AC current transformer + Flowcode

Are you willing to pay for this project? If not it needs to be moved to another part of the forum. If you do, please provide more detailed specifications.
by kersing
Tue Nov 17, 2020 9:11 pm
Forum: Flowcode V8
Topic: Compiler problem PIC 18F4450
Replies: 7
Views: 96

Re: Compiler problem PIC 18F4450

Does your flowchart contain C code to set the oscillator settings?
by kersing
Mon Nov 16, 2020 5:26 pm
Forum: Flowcode V7
Topic: iC2 2004A from Flowcode 7 via ATMEGA32 FAILURE
Replies: 5
Views: 111

Re: iC2 2004A from Flowcode 7 via ATMEGA32 FAILURE

Resistors as a rule of thumb 4k7.

The same contrast behavior is something I’ve seen with perfectly working displays so isn’t necessarily an issue.
by kersing
Mon Nov 16, 2020 1:47 pm
Forum: Flowcode V7
Topic: iC2 2004A from Flowcode 7 via ATMEGA32 FAILURE
Replies: 5
Views: 111

Re: iC2 2004A from Flowcode 7 via ATMEGA32 FAILURE

Are there pull up resistors on the I2C lines? Those might be present on the display module, however if there aren’t any yet you will need to add them to your hardware setup.
by kersing
Mon Nov 02, 2020 8:32 pm
Forum: Electronics products
Topic: (re)programming a PIC over USB
Replies: 6
Views: 481

Re: (re)programming a PIC over USB

To search for chips you can use the Microchip parametric search . With the right parameters you should find the 16F1459 which meets the requirements. A quick google for USB boot loaders suggests Microchip provides code for one (HID boot loader). To use the result with Flowcode you will need to provi...
by kersing
Wed Oct 21, 2020 8:03 pm
Forum: General Programming
Topic: calculation question
Replies: 11
Views: 432

Re: calculation question

Have you added the local variable to the macro? You can add it in the macro properties (last tab from memory).
by kersing
Tue Oct 13, 2020 4:53 pm
Forum: Flowcode V8
Topic: Cannot compile to HEX with Pro lisence
Replies: 4
Views: 231

Re: Cannot compile to HEX with Pro lisence

The naming of PIC devices with PIC, PIC16, PIC24 and PIC32 when there are 8 bit pics called pic16f<whatever> which is a PIC, not PIC16 doesn’t make things easy for the non expert users. May-be Matrix can reconsider the naming of the chip packs?
by kersing
Mon Oct 12, 2020 9:38 pm
Forum: Programming Tips & Tricks
Topic: Interface board for Flowcode V8 and above. Now added RTC
Replies: 32
Views: 1527

Re: Interface board for Flowcode V8 and above. Now added RTC

Download is an item of the “Code” “button”. Works for me...
by kersing
Wed Oct 07, 2020 8:03 pm
Forum: Flowcode V8
Topic: Re-position code start address not working
Replies: 1
Views: 133

Re: Re-position code start address not working

DoNothing does what the name implies: nothing. Adding arguments won’t make it do anything else, it still does nothing.

You need to modify the compiler settings which in FC8 does both compilation and linking of the code.
by kersing
Mon Sep 28, 2020 4:56 pm
Forum: Flowcode V8
Topic: USB Slave on PIC
Replies: 7
Views: 218

Re: USB Slave on PIC

I get your point. It's interesting that you should bring up PCB design software. I am a CID certified PCB design engineer. If the software doesnt have a component I just create one as required. Which is pretty much what I want to do in FC. That is pretty much what I’ve done for a couple of customer...
by kersing
Sun Sep 27, 2020 3:16 pm
Forum: Flowcode V8
Topic: USB Slave on PIC
Replies: 7
Views: 218

Re: USB Slave on PIC

The problem i am finding with FC right now is that it if you arent using the paid for components, you cant really do much with it. There is a lot you can do with Flowcode. However it is unrealistic to expect to be able to implement every use case with it. There are just too many different microcont...
by kersing
Sun Sep 27, 2020 10:19 am
Forum: Flowcode V8
Topic: USB Slave on PIC
Replies: 7
Views: 218

Re: USB Slave on PIC

For an USB drive you need usb mass storage. It might be possible to implement that using usb slave, but I don’t think that will be trivial.
Check this message concerning the subject.
by kersing
Tue Sep 22, 2020 7:48 pm
Forum: Bug Reports
Topic: Signed/Unsigned int property
Replies: 7
Views: 234

Re: Signed/Unsigned int property

Hi Martin,

That screenshot is in Flowcode, not on hardware... I agree it would be better to limit the size for values to 16 bit on display, but I am still curious what happens if you use this variable on hardware. My money is on it being 16 bit...

Best regards,

Jac
by kersing
Mon Sep 21, 2020 7:26 pm
Forum: Flowcode V8
Topic: Return to the charging base robot
Replies: 10
Views: 514

Re: Return to the charging base robot

RTK GPS requires correction data from either a second RTK GPS module at a fixed known location within 15 km of the rover or a (commercial) supplier of correction data. And even with correction data the antenna must have a clear view of the sky to get to cm precision. (No trees, buildings or other ob...
by kersing
Mon Sep 21, 2020 6:29 pm
Forum: Bug Reports
Topic: Signed/Unsigned int property
Replies: 7
Views: 234

Re: Signed/Unsigned int property

Have you tested on hardware or in simulation?
by kersing
Sat Sep 05, 2020 6:06 pm
Forum: Flowcode V8
Topic: Semiduplex asynchronism serial 10bit
Replies: 10
Views: 482

Re: Semiduplex asynchronism serial 10bit

Are you using the SendChar macro? This should send the 00. If you use SendString the 00 will be considered a string terminator and not transmitted.
by kersing
Fri Sep 04, 2020 8:13 am
Forum: Flowcode V8
Topic: Semiduplex asynchronism serial 10bit
Replies: 10
Views: 482

Re: Semiduplex asynchronism serial 10bit

This is just a difficult way to describe 8n1, so you can use use the regular uart component with 8 bits, no parity and 1 stop bit.
by kersing
Wed Aug 26, 2020 12:51 pm
Forum: Flowcode V8
Topic: OLED with SPD0301 driver
Replies: 17
Views: 951

Re: OLED with SPD0301 driver

Malloc/free are part of a library. Having them available is a luxury, not a given in my experience. Memory management functions use memory themselves in runtime overhead (ram use for the administration) and code overhead (flash). So small platforms usually don’t offer them. Check https://microchipde...
by kersing
Wed Aug 26, 2020 11:31 am
Forum: Flowcode V8
Topic: OLED with SPD0301 driver
Replies: 17
Views: 951

Re: OLED with SPD0301 driver

New is not part of C. In plain C you use things like malloc/free, however these rely on a library that provides memory management which is not present in small controllers. (That memory management library would be required for new/delete as well)
by kersing
Sun Aug 23, 2020 12:58 pm
Forum: Flowcode V8
Topic: OLED with SPD0301 driver
Replies: 17
Views: 951

Re: OLED with SPD0301 driver

Keep in mind the compiler needs to be able to allocate the entire array in continuous memory. That is easier for multiple smaller arrays...
There might be devices where the XC8 compiler can not allocate arrays > 128 bytes.
by kersing
Sat Aug 22, 2020 3:56 pm
Forum: General Programming
Topic: 64Bit Variables
Replies: 1
Views: 411

Re: 64Bit Variables

1. Please do not start a topic in Tips and Tricks for questions. Share your knowledge over there. 2. Flowcode does not implement 64 bit variables by itself. You might be able to use them in C code, depending on: 3. It helps if you specify which version of Flowcode you are using and what target chip ...
by kersing
Sat Aug 22, 2020 11:51 am
Forum: Flowcode V8
Topic: PIC Compiling issue
Replies: 4
Views: 322

Re: PIC Compiling issue

Apart from Flowcode itself you need to install the compiler package(s) for the target controller(s). You seem to be missing the PIC 8 bit compiler. If you login to the Matrix website you can choose to download Flowcode. Just below the Flowcode download there is a ‘line’ Download Toolchains. You need...
by kersing
Mon Aug 17, 2020 5:22 pm
Forum: General Programming
Topic: 2d Arrays, Accessing and External LUT
Replies: 5
Views: 662

Re: 2d Arrays, Accessing and External LUT

Last time I checked 32 bits were 4 bytes, not 8 bytes. (4 * 8 = 32)
by kersing
Sat Aug 15, 2020 8:54 am
Forum: Flowcode V8
Topic: Scroll Line instead of Display
Replies: 3
Views: 322

Re: Scroll Line instead of Display

Sounds like you could just use the cursor positioning options and write the new data to the second display line. For other solutions Flowcode would have to buffer what you write to the display in ram which is a resource not all processors have a lot off. BTW, when rewriting, don’t forget to add spac...