PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Jan 02, 2007 11:53 am |
|
|
You're really asking how to initialize an array. You need to use
commas as separators, not semi-colons. Example:
Code: |
int16 Pins[3]=
{
PIN_E0,
PIN_E1,
PIN_E2
}; |
Note that for 18F PICs, the pin constants are 16 bits, so the array
must be declared as an int16 (as shown above). For the 16F series,
the pin constants are int8 values. This is shown in the .H files for the
PICs, in the #define statements for the pins. |
|