TOOTHPIC RF Solutions, TOOTHPIC Datasheet - Page 115

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)
}
void BMTEvent( unsigned char EventID, void *pData1, void *pData2 )
{
}
Serial UART
The PIC18LF6720’s USART2 is available for developer use.
ToothPIC.h to aid its use:
InitUART(BRGVal,BRGHighVal) initializes the UART with high priority receive interrupt. The baud rate
arguments can be one of the following:
Other baud rates may be obtained by consulting Microchip Technology documentation. Examples of the use
of these macros is given in the HappyTerminal and ToothPIC Slave Firmware Solutions.
SPI Synchronous Serial I/O
The PIC18LF6720’s SPI Synchronous Serial I/O is available for developer use on the SDO, SDA and SCL
pins. The Hardware Peripheral Library provided with C18 provides SPI functions.
Page 115
}
if ( EventID==BMTE_Disco )
{
}
}
StartSlave = True;
9-Apr-06
Semaphore / Macro
InitUART
UARTFrameErr
UARTOverrunErr
UARTEnable
UARTTxEnable
UARTRxIntFlag
UARTTxIntFlag
UARTRxIntEnable
UARTIntAfterTx
UARTCnclIntAfterTx
UARTChIn
UARTChOut
UARTNotTxmitting
StartSlave = False;
Baud rate
Toothpick 3.0.00007
115200
19200
38400
57600
1220
2400
4800
9600
DS380-8
Function
Initializes UART (see note below)
UART frame error flag
UART overrun error flag
Receive enable flag
Transmit enable flag
Receive interrupt flag
Transmit interrupt flag
Receive interrupt enable flag
Enable interrupt on transmission complete
Disable interrupt on transmission complete
Received byte (reading this value clears UARTRxIntFlag )
Transmit byte (setting this value starts transmission)
Transmission (not) in progress flag
SPBaudBrghOne115200
SPBaudBrghZero1220
SPBaudBrghZero2400
SPBaudBrghZero4800
SPBaudBrghOne19200
SPBaudBrghOne38400
SPBaudBrghOne57600
SPBaudBrghOne9600
BRGVal (#define)
© FlexiPanel Ltd
Patents apply and/or pending
The following macros are provided in
// Raise semaphore to
// restart slave mode
BRGHighVal
0
0
0
1
1
1
1
1
www.FlexiPanel.com

Related parts for TOOTHPIC