USING I2C WITH PICAXE(使用I2C PICAXE).pdf
文本预览下载声明
USING I2C WITH PICAXE
Contents:
This article provides an introduction into how to
use i2c parts with the PICAXE system.
This article:
1) Describes the i2c bus
2) Explains how the i2c bus is used with the
PICAXE system
3) Gives an example of using the i2c bus with a
24LCxx series EEPROM
4) Gives an example of using the i2c bus with a
DS1307 real time clock.
5) Gives an example of using the i2c bus with a
SPE030 speech synthesizer.
All the information in this datsheet applies to the
PICAXE-X parts (18X, 28X, 40X). If you wish to
experiment with use of the i2c bus, we recommend
use of the AXE110 Datalogger fitted with the
AXE034 Real Time Clock Upgrade. This will provide
you with a board that has the PICAXE-18X, a
24LC16B EEPROM memory chip, and a DS1307
real-time-clock chip fitted.
Terms used in this article:
IC - integrated circuit or ‘chip’
Master - a microcontroller IC that ‘controls’ the operation of a circuit
Slave - a slave IC that does certain specialised tasks for the master IC
Byte - a number between 0 and 255
Register - a memory location within the slave that stores 1 byte of data
Register Address - an address that ‘points’ to a particular memory register
Block - group of 256 registers
EEPROM IC - a slave IC that can store a large amount of data
RTC IC - a slave IC that can maintain the date / time (real-time-clock)
ADC IC - a slave IC that can perform analogue-to-digital conversions
Sample i2c circuit
PICAXE-18X datalogger circuit.
显示全部