FCD Data Collection

From Flowcode Help
Revision as of 17:03, 6 March 2014 by BenR (talk | contribs) (Created page with " For each target microcontroller device in Flowcode there is a FCDX file containing detailed specifics about the device. The FCDX file contains everything Flowcode needs to ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

For each target microcontroller device in Flowcode there is a FCDX file containing detailed specifics about the device.


The FCDX file contains everything Flowcode needs to be able to generate code for the device. From the number of pins, analogue channels, peripherals right through to the number of interrupts and the configuration options.


The FCDX file is similar to many Flowcode v6 file types in that it is XML based. XML is basically tagged in a tree style hierarchy.


Example FCDX contents.

<root> <device name='16F1937' product='PIC' family='16F' bits='8' >

   <clock max_speed='32000000' master_divider='4' default='19660800' />
   <memory >
       <flash bytes='16384' />
       <ram bytes='512' />
   </memory>

</device> </root>


To pull out the data from the FCD you can use the Simulation FCD Functions. This example collects the device name and stores it into a local string variable.

FCD Dev.jpg


To work out the number of pins a device has we can do this.

FCD NumPins.jpg


Similarly to do something like work out the number of PWM channels a device has we can do this.

FC6 Icon.png Count PWMs Example

FCD NumPWMs.jpg