27297 Parallax Inc, 27297 Datasheet - Page 204
27297
Manufacturer Part Number
27297
Description
KIT STAMPWORKS WITH BS2-IC
Manufacturer
Parallax Inc
Datasheet
1.27297.pdf
(230 pages)
Specifications of 27297
Lead Free Status
Contains lead
Product
Microcontroller Accessories
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
- Current page: 204 of 230
- Download datasheet (3Mb)
' *** Receive Byte ***
I2C_RX_Byte_Nak:
I2C_RX_Byte:
I2C_RX:
' *** Stop Sequence ***
I2C_Stop:
Behind the Scenes
While it is possible to implement rudimentary timekeeping functions in code with
PAUSE, problems arise when BASIC Stamp needs to handle other activities. This is
especially true when an application needs to handle time, day, and date. The
cleanest solution is an external real-time clock. In this experiment, we’ll use the
Maxim-Dallas DS1307. Like the 24LC32, the DS1307 connects to its host though an
I2C bus. Unlike the 24LC32, however, it is not addressable, so only one DS1307 can
exist on a given I2C bus.
Once programmed the DS1307 runs by itself and accurately keeps track of seconds,
minutes, hours, day of week, date, month, year (with leap year compensation
through the year 2100), and a control register for the SQW output. As a bonus, the
DS1307 contains 56 bytes of RAM (registers $08 - $3E) that can be used for general-
purpose storage. And for projects that use main’s power, the DS1307 is easily
backed-up by a 3v Lithium battery (good for up to 10 years).
Like most I2C devices, the DS1307 is register-based, that is, each element of the
time and date is stored in its own register (memory address). For convenience, two
i2cAck = Nak
GOTO I2C_RX
i2cAck = Ack
SHIFTIN SDA, SCL, MSBPRE, [i2cWork\8]
SHIFTOUT SDA, SCL, LSBFIRST, [i2cAck\1]
RETURN
LOW SDA
INPUT SCL
INPUT SDA
RETURN
' no Ack = high
' Ack = low
' get byte from device
' send ack or nak
' I2C stop bit sequence
Related parts for 27297
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: