Flowcode & I2C

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

Moderators: Benj, Mods

Post Reply
KeithSloan
Posts: 114
Joined: Fri Jul 27, 2007 10:50 am
Been thanked: 1 time

Flowcode & I2C

Post by KeithSloan »

I am interested in Flowcode. I have a version 2 development board and would like to connect up an I2C device ( Ultrasound range finder ). I was expecting to connect to a port with pull up resistors and have to bang the bits in assembler. What is the situation with Flowcode? Can I use flowcode and a version 2 board or do I need a new programmer

Thanks

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Post by Steve »

Flowcode produces standard HEX files, so can be used with any hardware.

KeithSloan
Posts: 114
Joined: Fri Jul 27, 2007 10:50 am
Been thanked: 1 time

Flowcode & I2C

Post by KeithSloan »

What about attaching the I2C device. In order to use the I2C facilities of Flowcode. Do I have to add the I2C device to a certain Port, Pins and add pullup resitors etc.

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Post by Steve »

The latest version of Flowcode v3.2.0 (very shortly to become v3.2.1) contains a "master" I2C component which can be used to control slave I2C devices. This component can either use the internal MSSP module of the PIC, or implement I2C in a bit-bang approach. The bit-bang approach allows you to use any pins.

You will need to provide the appropriate pull-ups.

KeithSloan
Posts: 114
Joined: Fri Jul 27, 2007 10:50 am
Been thanked: 1 time

Flowcode & I2C

Post by KeithSloan »

Am I correct in assuming that to use the I2C support I would need the professional version of Flowcode and that it would not be available in the student edition.

Thanks

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Post by Steve »

Yes - you are correct. The free/demo version and the student version both have limits on the components allowed.

Sorry - I should have mentioned this before.

Post Reply