14.11.2012 Views

Guide to adding PIC micro-controllers to Flowcode - Matrix ...

Guide to adding PIC micro-controllers to Flowcode - Matrix ...

Guide to adding PIC micro-controllers to Flowcode - Matrix ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

. [Config]<br />

This optional section forces the chip <strong>to</strong> compile with a certain set of configuration data. All 14 entries<br />

(0 <strong>to</strong> 13) need <strong>to</strong> be entered, even if the chip has only 1 or 2 configuration words.<br />

16F Example:<br />

[Config]<br />

0=0x3F2A<br />

1=0xFFFF<br />

2=0xFFFF<br />

3=0xFFFF<br />

4=0xFFFF<br />

5=0xFFFF<br />

6=0xFFFF<br />

7=0xFFFF<br />

8=0xFFFF<br />

9=0xFFFF<br />

10=0xFFFF<br />

11=0xFFFF<br />

12=0xFFFF<br />

13=0xFFFF<br />

18F Example:<br />

[Config]<br />

0=0x20<br />

1=0x0E<br />

2=0x3E<br />

3=0x1E<br />

4=0x00<br />

5=0x81<br />

6=0x81<br />

7=0x00<br />

8=0x0F<br />

9=0xC0<br />

10=0x0F<br />

11=0xA0<br />

12=0x0F<br />

13=0x40<br />

c. [Pins]<br />

Used by the real time “Chip” diagram in <strong>Flowcode</strong>, Assigns string names <strong>to</strong> the pins.<br />

Pin1="RA2/AN2"<br />

Pin2="RA3/AN3"<br />

d. [Ports]<br />

Used <strong>to</strong> configure where the I/O is on the real time “Chip” diagram. Pins that are assigned <strong>to</strong> I/O<br />

should be listed with their port and pin information.<br />

Examples<br />

PortPin1=0x0002 – Means that pin 1 of the <strong>micro</strong>-controller is RA2<br />

PortPin5=0x0007 – Means that pin 5 of the <strong>micro</strong>-controller is RA7<br />

PortPin8=0x0102 – Means that pin 8 of the <strong>micro</strong>-controller is RB2<br />

PortPin21=0x0107 – Means that pin 21 of the <strong>micro</strong>-controller is RB7<br />

PortPin25=0x0302 – Means that pin 25 of the <strong>micro</strong>-controller is RD2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!