Chameleon-PIC Nurve Networks, Chameleon-PIC Datasheet - Page 205

MCU, MPU & DSP Development Tools PIC24 & PROPELLER DEV SYSTEM (SBC)

Chameleon-PIC

Manufacturer Part Number
Chameleon-PIC
Description
MCU, MPU & DSP Development Tools PIC24 & PROPELLER DEV SYSTEM (SBC)
Manufacturer
Nurve Networks
Datasheet

Specifications of Chameleon-PIC

Processor To Be Evaluated
PIC24
Data Bus Width
16 bit
Interface Type
USB, VGA, PS/2, I2C, ISP, SPI
Operating Supply Voltage
3.3 V, 5 V
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
26.3 API Functional Declarations
The following lists each function, a description, comments, and example usage of the function.
_________________________________________________________________________________________________
Function Prototype:
Description:
Example(s):
PropPort_SetDir( 0x0F );
_________________________________________________________________________________________________
Function Prototype:
Description:
Example(s):
PropPort_SetDir( 0x00 );
inputs = PropPort_Read();
_________________________________________________________________________________________________
Function Prototype:
Description:
Example(s):
PropPort_SetDir( 0xFF );
for (data = 0; data <= 255; data++)
{
PropPort_Write( data );
DELAY_MS( 10 );
} // end for data
int PropPort_SetDir(int dirbits);
int PropPort_Read(void);
int PropPort_Write(int data8);
Set the lower 4-bits to outputs, upper 4-bits to inputs.
Set the port to all input and read the port.
Write the binary patterns for 0..255 on the port at 10 millisecond intervals.
11110000 = out, out, out, out, in, in, in, in. Physically on the port header bit 0 is on the right, bit 7 on the
left, so its LSB to MSB right to left. Returns 1.
Returns the pin data.
Returns 1.
PropPort_SetDir(…) sets the direction of the 8 I/O bits on the Propeller local port. 1=output, 0=input, eg:
PropPort_Read() reads the pins of the input port that are set as inputs, pins set as outputs are invalid.
PropPort_Write(…) writes data8 to the port. I/Os that are set as inputs ignore the bits in those positions.
© 2009 NURVE NETWORKS LLC “Exploring the Chameleon PIC 16-Bit”
205

Related parts for Chameleon-PIC