Flowcode V3 PIC USB Pack Released

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Flowcode V3 PIC USB Pack Released

Post by Benj »

Hello Kersing

The USB components have been updated in Flowcode V4 ready for the 4.1 release. The updated files are available from here if needed.
http://www.matrixmultimedia.com/support ... .php?t=553

The USB pack and USB components for V3 have not been updated. If you do require an EP0 address other then 0x500 then you will have to follow the fix listed above.

alazaro
Posts: 20
Joined: Mon Jun 15, 2009 1:06 pm
Location: Lisbon, Portugal
Contact:

Re: Flowcode V3 PIC USB Pack Released

Post by alazaro »

Hi all!

I'm using ECIO40 and I'm trying to transmit several bytes from PIC to PC and from PC to PIC.
At the moment I'm trying to pass data from PIC to the PC using FlowcodeV3 and following the USB_Slave examples from the USB Pack.

I wish to pass several bytes and I'm trying to pass them using the USB_Send_Byte function but I'm only able to pass one byte.
I call this function the same number of times as the bytes I want to transmit but I only see one byte in the PC side.
I undestand that it uses a buffer for out and in coming data and undestand how a slave works...
But it should be possible to pass more than one byte when a ECIO_Transmit(...) function is call in the PC side, right?

Can you give me some help... What is missing?

Thanks in advanced.
Γ‚ngela
Regards,
Ângela

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: Flowcode V3 PIC USB Pack Released

Post by kersing »

alazaro wrote: I wish to pass several bytes and I'm trying to pass them using the USB_Send_Byte function but I'm only able to pass one byte.
I call this function the same number of times as the bytes I want to transmit but I only see one byte in the PC side.
I undestand that it uses a buffer for out and in coming data and undestand how a slave works...
The name of the function implies it sends one byte and that is what it does, it does not buffer the data. If you want to send a number of bytes, you could create a string (array of bytes) put all the data you want to send in the string and call Send_String (with the string and a count of the number of bytes you put in the string)
Check the flowcode example available in http://www.matrixmultimedia.com/mmforum ... =26&t=6502. The host code in this article is for Linux but the flowcode example is generic.

Best regards,

Jac
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

alazaro
Posts: 20
Joined: Mon Jun 15, 2009 1:06 pm
Location: Lisbon, Portugal
Contact:

Re: Flowcode V3 PIC USB Pack Released

Post by alazaro »

Hi all!

I'm trying to install the ECIO-40P to be used as a USB Slave in a computer running windows vista and I’m having some problems. I can install the ECIO with the specified driver but I cannot install the drivers for the USB Slave, when I try to run the example from the USB Pack I cannot Open the connection, Open returns always zero.
In the Device Manager the device appears with the information: This device cannot start (code 10).

Does anyone tried this?

Thanks,
Γ‚ngela
Regards,
Ângela

darkmagic35
Posts: 5
Joined: Sun Sep 26, 2010 11:12 am
Has thanked: 2 times
Contact:

Re: Flowcode V3 PIC USB Pack Released

Post by darkmagic35 »

Hi,
I'm looking for informations about Flowcode and using USB. Is it true, that I can use only this PICs?

Code: Select all

Compatible PICmicro devices - Flowcode V3
18F2455, 18F2550, 18F4455, 18F4550

Compatible PICmicro devices - Flowcode V4
18F2450, 18F2455, 18F2550, 18F4450, 18F4455, 18F4550, 18F13K50, 18F14K50, 18LF13K50, 18LF14K50
http://www.matrixmultimedia.com/lc_USB_made_simple.php

What about 18F86J55, 18F67J50, 18F46J53 etc.?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Flowcode V3 PIC USB Pack Released

Post by Benj »

Hello,

This list is a bit old now as it was originally released in Flowcode v3.

Here are the current list of raw PIC devices supported by the Flowcode USB components. Note that the BoostC supplied with Flowcode v4.3 cannot currently support the entire range of devices. Not definate yet but we are hoping to release an update for this in the next few months.

PIC18
18F2450
18F2455
18F2550
18F4450
18F4455
18F4550
18F13K50
18LF13K50
18F14K50
18LF14K50
18F2458
18F2553
18F4458
18F4553
18F24J50
18F25J50
18F26J50
18F44J50
18F45J50
18F46J60
18F65J50
18F66J50
18F66J55
18F67J50
18F85J50
18F86J50
18F86J55
18F87J50

PIC24
24FJxxGB002
24FJxxGB004
24FJxxxGB106
24FJxxxGB108
24FJxxxGB110

Matrix Multimedia Products
ECIO28P
ECIO40P
Formula Flowcode
MIAC
Locktronics PIC

If BoostC is not supported for the device you require then in the mean time you can switch to the HiTech compiler by following this guide.
http://www.matrixmultimedia.com/mmforum ... =26&t=6812

18FxxJ53 chips are not currently available via Flowcode so I will generate FCDs for these but these chips are not included in the current BoostC compiler anyway.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Flowcode V3 PIC USB Pack Released

Post by Benj »

Here is a set of current FCDs including the 18FxxJ53 family for anyone using newer devices with the HiTech compiler.
Attachments
Flowcode v4 PIC FCD.zip
(1.01 MiB) Downloaded 856 times

darkmagic35
Posts: 5
Joined: Sun Sep 26, 2010 11:12 am
Has thanked: 2 times
Contact:

Re: Flowcode V3 PIC USB Pack Released

Post by darkmagic35 »

Hi Benj,
I have small question about USB. It's possible to programm PIC18F in Flowcode and than another aplication in Delphi 2007 for computer with Windows? I want to communicate with my PIC using computer's software.

PIC 18F <--------- USB ---------------> PC Win

I'm looking for a component for Delphi, do you know somethig about this?
I'm sorry if my question is to stupid :oops:

Thanks in advance :)

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Flowcode V3 PIC USB Pack Released

Post by Benj »

Hello,

Yes we have an example of PC control over USB written in Delphi written in Flowcode v4.

If you download the examples pack available from here.
http://www.matrixmultimedia.com/Downloa ... .php?id=63

Then go into Components / USB Slave / Slave Interface Delphi /

If you are using Flowcode v3 then the Delphi program from the v4 examples should still work with the v3 USB Slave examples.

Let me know if you need any help.

Post Reply