TOOTHPIC RF Solutions, TOOTHPIC Datasheet - Page 95

MODULE, BLUETOOTH, DATA ACQUISITION

TOOTHPIC

Manufacturer Part Number
TOOTHPIC
Description
MODULE, BLUETOOTH, DATA ACQUISITION
Manufacturer
RF Solutions
Datasheet

Specifications of TOOTHPIC

Svhc
No SVHC (15-Dec-2010)
To set or read the I/O direction, set the direction setting variable as appropriate using the constants
DirInput and DirOutput. For example:
To retrieve an input or output value, or set an output value, use the value storing variable as appropriate, for
example:
Digital I/O (Parallel)
Parallel I/O reads or sets multiple I/O bits in one instruction. The following can provide parallel I/O provided
the pins are not used for another function. Only one each of PAx, PBx and PCx may be used at a time.
To set or read the I/O direction, set the direction setting function as appropriate using the constants
DirParInput and DirParOutput. For example:
Page 95
Name
PA7
PA6
PA5
PA4
PA3
PA2
PB5
PB4
PB3
PB2
PC5
PC4
PC3
PC2
DirRxD = DirInput;
DirTxD = DirOutput;
if ( RxDPin == 1 )
TxDPin = 0;
DirPA7( DirParInput );
Bits
7
6
5
4
3
2
5
4
3
2
5
4
3
2
9-Apr-06
Pin
AN10
AN11
CCP1
CCP2
CCP3
CCP4
CCP5
INT0
INT1
RxD
SCL
SDA
SDO
TxD
Pins (MSB first)
AN11 – AN5
AN11 – AN6
AN11 – AN7
AN11 – AN8
AN11 – AN9
AN11,AN10
AN4 – AN0
AN4 – AN1
AN4 – AN2
AN4,AN3
CCP5,CCP4,RxD,TxD,CCP3
CCP5,CCP4,RxD,TxD
CCP5,CCP4,RxD
CCP5,CCP4
Toothpick 3.0.00007
Direction setting variable
DirAN10
DirAN11
DirCCP1
DirCCP2
DirCCP3
DirCCP4
DirCCP5
DirINT0
DirINT1
DirRxD
DirSCL
DirSDA
DirSDO
DirTxD
DS380-8
© FlexiPanel Ltd
// RxD is a digital input
// TxD is a digital ouput
// if RxD is at logic 1
// set TxD to logic 0
// Set up PA7 digital input
Direction setting
function
DirPA7( char )
DirPA6( char )
DirPA5( char )
DirPA4( char )
DirPA3( char )
DirPA2( char )
DirPB5( char )
DirPB4( char )
DirPB3( char )
DirPB2( char )
DirPC5( char )
DirPC4( char )
DirPC3( char )
DirPC2( char )
Value storing variable
AN10Pin
AN11Pin
CCP1Pin
CCP2Pin
CCP3Pin
CCP4Pin
CCP5Pin
INT0Pin
INT1Pin
RxDPin
SCLPin
SDOPin
SDAPin
TxDPin
Patents apply and/or pending
Value setting
function
SetPA7( char )
SetPA6( char )
SetPA5( char )
SetPA4( char )
SetPA3( char )
SetPA2( char )
SetPB5( char )
SetPB4( char )
SetPB3( char )
SetPB2( char )
SetPC5( char )
SetPC4( char )
SetPC3( char )
SetPC2( char )
www.FlexiPanel.com
Value getting
variable
GetPA7
GetPA6
GetPA5
GetPA4
GetPA3
GetPA2
GetPB5
GetPB4
GetPB3
GetPB2
GetPC5
GetPC4
GetPC3
GetPC2

Related parts for TOOTHPIC