TOOTHPIC RF Solutions, TOOTHPIC Datasheet - Page 112

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)
The current time is stored in the DateTimeU structure (see the section Date-Time Values) named
RealTimeClock. The timer 1 counts at a rate of 32768Hz and then generates a high interrupt every second.
During the high interrupt, the ToothPIC OS updates the RealTimeClock structure and then generates a
SWI_Tick software interrupt which the developer should clear. The following variables and macros are
defined:
Name
RealTimeClock.sec
RealTimeClock.min
RealTimeClock.hour
RealTimeClock.date
RealTimeClock.dow
RealTimeClock.month
RealTimeClock.year
SuspendT1Int
ResumeT1Int
SetSecFracs( sF )
GetSecFracs( sF )
ClearSecFracs
In FlexiPanel Designer, one Date-Time control can be tied to the real time clock. If it is, ToothPIC will:
The BQS_ClientTick flag may be cleared if the developer wishes to arrange to update the client less
frequently.
A utility exists in ToothPIC.h to automatically calculate the day of the week given the date, month and year.
This is detailed in the Utility Services section.
Daylight Savings Time adjustments are implemented. Daylight Savings Time rules vary from region to region.
The variable DSTEvent defines an event which the Real Time Clock will check for each hour. If the event
occurs, the clock is changed and the DSTEvent event is exchanged for its seasonal converse: (Bit 6 is set for
Summer and clear for Winter.)
ToothPIC.h. It can thereafter be modified at will.
The DSTEvent Daylight Savings Time events are defined in the following table. Please note that Daylight
Savings Time data for some countries may become out of date as laws change. We rely on customer
feedback to keep this information up to date. Countries in the tropics do not implement Daylight Savings Time.
If a specific day of the week is specified, the event is triggered on the first corresponding day on or after the
date specified. We have put considerable effort into compiling this data and we disclose it for customer
reference only. It remains our copyright and its reproduction or use without our prior consent is not permitted.
Page 112
DSTEvent
Value
0
1
33
2
34
3
• Automatically update the control value every second.
• If the ToothPICSettings flag BQS_ClientTick is set, automatically update the client with the
• Automatically update the real time clock time if the user changes the control’s time.
9-Apr-06
new control value every second.
#defined as…
DST_NONE
DST_AUSTRALIA
DST_AUSTRALIA_SUMMER
DST_BAHAMAS
DST_BAHAMAS_SUMMER
DST_BRAZIL
Toothpick 3.0.00007
Description
Second (0-59)
Minute (0-59)
Hour (0-23)
Date (1-31)
Bits 0-2: Day of week (0 – 6 Sunday to Saturday respectively; 7 =
Unknown)
Month (1-12)
Year (0-65536)
Disables timer interrupt; call immediately prior to modifying
RealTimeClock values.
Enables timer interrupt; call immediately after modifying
RealTimeClock values.
Sets the fractions of a second to the unsigned short value sF (0-32767)
Writes the fractions of a second to the unsigned short sF (0-32767)
Sets the fractions of a second to zero
On power-up DSTEvent is initialized to DSTDEFAULT as defined in
DS380-8
Month
n/a
10
3
4
10
11
© FlexiPanel Ltd
Date
n/a
25
25
1
25
1
Patents apply and/or pending
Day of
week
n/a
Sunday
Sunday
Sunday
Sunday
Sunday
Hour
0
1
0
1
0
n/a
Action taken
None
Hour advanced 1
Hour retarded by 1
Hour advanced 1
Hour retarded by 1
Hour advanced 1
www.FlexiPanel.com

Related parts for TOOTHPIC