Page 1 of 1
Flowcode & I2C
Posted: Fri Jul 27, 2007 10:55 am
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
Posted: Fri Jul 27, 2007 1:10 pm
by Steve
Flowcode produces standard HEX files, so can be used with any hardware.
Flowcode & I2C
Posted: Fri Jul 27, 2007 1:49 pm
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.
Posted: Fri Jul 27, 2007 1:54 pm
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.
Flowcode & I2C
Posted: Fri Jul 27, 2007 2:06 pm
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
Posted: Fri Jul 27, 2007 2:34 pm
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.