Sign in

username:

password:



Not a member?

Search basicx



Search tips

Subscribe to basicx



basicx by Keywords

Accelerometer | ADC | ADXL | Adxl20 | AVR | BasicStamp | BX-35 | BX28 | BX35 | COM3 | Compiler | Downloader | EEPROM | Electromagnet | GetADC | GP2D1 | GPS | I2C | IDE | Keypad | LCD | LCD+ | MIDI | Motors | Multitasking | Netmedia | Networking | PCB | PID | PlaySound | PWM | Relays | RTC | Servo | ShiftOut | SitePlayer | SPI | Stack | Timer | USB

Ads

Discussion Groups

Discussion Groups | BasicX | Bx24 and EEProm

Discussion forum for the BasicX family of microcontroller chips.

Bx24 and EEProm - Keith Ledgard - Dec 7 1:51:26 2007

That=92s an I2 C bus based IC and you=92ll need to write a set of routines =
to
clock the data to and from the BX.

It=92s not a difficult concept and there should be examples posted in the
files section for this group.

The code routines can then be reused in other projects using the II2 series
of IC.

If you read the IC Spec sheet along with the II2 code samples you will see
what has to be done.

An internet search using your own words =93software for using an EEProm
24C512=94 brings in plenty of references

How to Use IIC Module on

M68HC08, HCS08, and HCS12

MCUs

1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . =
.
. . . . 1

2 IIC Bus Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. 2

2.1 IIC Bus Terminology . . . . . . . . . . . . . . . . . . . . . . . 2

2.2 Bit Transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . =
.
2

2.3 START and STOP Conditions . . . . . . . . . . . . . . . . 3

2.4 Bus Communication. . . . . . . . . . . . . . . . . . . . . . . . 3

2.5 Control Byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . =
.
3

2.6 Address Byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . =
4

2.7 Acknowledge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

2.8 Read/Write Format . . . . . . . . . . . . . . . . . . . . . . . . 5

3 IIC Software Routines for MCUs . . . . . . . . . . . . . . . . . . . 5

Or try here =96 found by a simple search of the Internet -
http://www.eetkorea.com/ARTICLES/2007JUL/PDF/EEKOL_2007JUL31_CTRLD_EMS_AN_1=
1
.PDF?SOURCES=3DDOWNLOAD

3 IIC Software Routines for MCUs

Detailed descriptions of all IIC modules can be found in the MCU data sheet=
.
A short review follows:

=95 Address register =97 Used differently in the HC908 than in the S08 and =
S12
MCU types. In the

HC908 core, the address register=92s content is sent automatically after th=
e
START condition, and the

data register content follows the condition. This address register also
serves as its own IIC-slave

address in slave mode. In the S08 and S12 core, the address register is
active only in the slave mode

and comprises its own IIC slave address of the MCU on the bus. This can be
used by the

multi-MCU connection on the bus.

=95 Frequency divider register =97 Determines the SCL clock speed. The bus
frequency acts as the

source frequency for the IIC module.

=95 Control register =97 Controls all

=20

Anyone knows where can I find software for using an EEProm 24C512 ?
Thanks

massimo.negrotti@ libero.it

Professore Ordinario di Metodologia delle Scienze umane
IMES-LCA
Universit=E0 di Urbino

Via Bandini, 7
43100 Parma

Universit=E0 0722 305750
Ab. 0521 489259
Cell. 349 1884289

Internet Personal Site
http://digilander.
libero.it/maxnegro/Nuova1.html

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

=20

=20


(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )