TOOTHPIC RF Solutions, TOOTHPIC Datasheet - Page 118

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)
Bool is defined as unsigned char. Corresponding True (0xFF) and False (0x00) constants are also
defined.
Breakpoint( unsigned char FlashVal )
The Breakpoint function provides a low-level debugging breakpoint-and-watch and error reporting service.
Breakpoint will flash the LEDs in the following manner according to FlashVal:
or
After a short delay, the sequence will repeat. Provided default pushbutton interrupt handling has not been
overridden, Breakpoint will return to the calling routine when the pushbutton is briefly pressed and released.
Example:
CalcDayOfWeek( unsigned char& DayOfWeek, unsigned char Year,
Returns the day of week in DayOfWeek given the Year, Month and Date. The calculation is based on the
Gregorian calendar which was adopted variously between 1582 and 1919. Use of this algorithm for dates
before 1920 requires good understanding of Gregorian / Julian calendars. This utility is #defined in order to
minimize overheads; however, it remains copyright of FlexiPanel Ltd and is provided only for use with its
products unless permission is otherwise granted.
CyclesDelay3p2plus3p2times( unsigned char DelayLen )
CyclesDelay16plus16times provides a delay of exactly (DelayLen+1) multiples of 16 instruction cycles.
At normal 20MHz operating speed, this is exactly (DelayLen+1) multiples of 3.2µs.
Example:
msDelay( unsigned char ms )
msDelay provides a delay of (slightly over) 1 to 255 milliseconds, as specified by the ms argument. Works
correctly even at 8192IPs clock speed.
Example:
Page 118
-
-
-
-
As many green and red simultaneous flashes as the hundreds digit of FlashVal
As many red flashes as the tens digit of FlashVal
As many green flashes as the units digit of FlashVal
Three green and red simultaneous flashes if FlashVal is zero
char ReceivedByte = 10;
Breakpoint( ReceivedByte );
CyclesDelay3p2plus3p2times( 4 );
msDelay( 10 );
9-Apr-06
Toothpick 3.0.00007
unsigned char Month, unsigned char Date )
DS380-8
© FlexiPanel Ltd
// 10ms delay
// report the value of ReceivedByte
// (4+1)*16 = 80 cycle delay or 16us
Patents apply and/or pending
www.FlexiPanel.com

Related parts for TOOTHPIC