32 Threads found on edaboard.com: i2c Interface 8051
This code is useless for you.
Not necessarily if you put in software i2c routines for i2c_xxx() functions. Or replace transceiver() respectively.
Microcontrollers :: 06-13-2016 07:28 :: FvM :: Replies: 5 :: Views: 2458
I'm trying to interface the freescale mma7660 accelerometer with an 8051 processor (c8051f020 silicon labs).
I get some problems while I communicate with the smbus:
I receive acks from the accelerometer, but the data I get is always 0.
This is my initialization code (for the accelerometer):
SMB_DATA_IN = 0x07; //stand by mode
SM
Microcontrollers :: 06-21-2014 01:12 :: tretra :: Replies: 0 :: Views: 979
These might help you.
A 8051 software
Microcontrollers :: 03-29-2014 04:30 :: milan.rajik :: Replies: 8 :: Views: 1437
RTC 8563 uses i2c and 8051 doesn't have hardware i2c. You have to write software i2c code and use it to read and write RTC.
Microcontrollers :: 03-24-2014 06:40 :: milan.rajik :: Replies: 6 :: Views: 1200
Inter_integrated Circuit Communication you have to use
First assign make some function like i2c Start , i2c Write , i2c Stop , i2c Read ,
Then You have to read the value from DS1307 via i2c
for getting data on LCD, DS1307 YOu have to convert it from BCD to ASCII Code
Microcontrollers :: 02-14-2014 12:02 :: embRTS :: Replies: 3 :: Views: 831
Hello All,
I would like to use AT89C52 as a master to interface few AT89LP4052 (slave) with using i2c. This two MCU doesn't have build in i2c feature.
This few day i have do some research and can't find any useful information and sample code for 8051 i2c slave. But i do found this "Implementation of (...)
Microcontrollers :: 11-26-2013 03:26 :: Help :: Replies: 7 :: Views: 1549
Hi All,
I tried to use IO expansion chip that can controls up to 16 output by just using 2 wires (SDA and SCL). I'm using PCF8575 and interface with 8051 microcontroller (P89C51RD2HBA). I've connected 16 LED at the output side to see the result for the testing purpose. However, I'm stuck in the writing to the slave process, where i need to send
Microcontrollers :: 11-25-2013 15:18 :: chiart :: Replies: 6 :: Views: 1152
Interfacing a 4-bit mode LCD is pretty simple.
You can refer this Link
And the EEPROM and RTC can be interface to the controller by using the i2c protocol.
Microcontrollers :: 10-11-2013 11:07 :: errakeshpillai :: Replies: 11 :: Views: 1558
how do i write on a i2c bus as well as read data from a i2c. i want to read and write data from the ds1307 ic. and i want to know how do i code it in c to interface it.
Embedded Linux and Real-Time Operating Systems (RTOS) :: 09-14-2013 15:24 :: nikhil0802 :: Replies: 4 :: Views: 1215
Kiosk provider seeking an 8051 assembly language developer to patch firmware to:
* Add two i2c commands:
1-turn on
2-turn off
Notes:
1. Device has pre-existing soft power control.
2. Device has pre-existing operational i2c interface.
3. Current firmware is available only as ROM image.
4. We (...)
EDA Jobs :: 04-23-2013 21:01 :: pfedorow :: Replies: 0 :: Views: 858
I am using a temperature sensor TMP141 from Texas Instruments. I would like to know which controller would be good enough to interface it using i2c protocol. The controller should be operate-able in low-power mode. Could any one help me out.!
Microcontrollers :: 03-25-2013 13:45 :: akash reddy :: Replies: 2 :: Views: 606
Yes, you can, in a similar way as you'd connect PIA 8255.
You have to map it as Ext-Memory, and you have to use 373 Latch to sort out D0-D8 and A0.
INT pin has to go through NEG-Gate, and so on ..
I don't know why would you do all this, when you can get i2c I/O expanders with interrupt, and they would only require 2 general I/O pins as i2c bus .
Microcontrollers :: 10-10-2012 06:55 :: IanP :: Replies: 2 :: Views: 1623
A serial eeprom is smaller and more durable than a battery. You'll need to spend some lines of code for an i2c or SPI/microwire interface however.
Microcontrollers :: 03-17-2012 22:32 :: FvM :: Replies: 5 :: Views: 794
how can i learn programming using keil in i2c interface . what basics should an individual know if i have to connect ds1307 to controller , i have to create automatic college bell so i have used ds1307 as rtc but i m not able to get how should i do programming in keil .can anyone help me .. . how should i get a delay of one hour through ds1307. s
Microcontrollers :: 03-17-2012 10:22 :: piaaadi :: Replies: 1 :: Views: 1363
also check this
i2c Two Wire interface Tutorial: PIC 16F877 i2c Code Example : 8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes
Microcontrollers :: 08-23-2011 14:30 :: ckshivaram :: Replies: 11 :: Views: 3167
I'm doing a project named "Implementation of i2c Protocol"
I'm required to show the working of i2c protocol using a micro controller (say AT89s52) as a master and two slave-devices.
Slave Device #1: LCD
Slave Device #2: Not decided yet
I did some research on the internet and learned that 89s52 doesn't have hardware i2c (...)
Microcontrollers :: 03-12-2011 08:23 :: shreyas.p :: Replies: 2 :: Views: 3501
DS1307 RTC is interface using i2c interface.
you have set time and then start the clock..
later u can read the time
here is program which sets time and reads time using PC interface MAX232..
on hyperterminal
here u can find datasheet
Microcontrollers :: 09-23-2010 18:34 :: nikhilele :: Replies: 6 :: Views: 2325
interface 7 Segment, LED, LCD, SD Card, CAN, SPI, i2c, UART, Keypad to demonstrate some solution to problems ~~
Embedded Linux and Real-Time Operating Systems (RTOS) :: 09-06-2010 18:21 :: john blue :: Replies: 7 :: Views: 3817
Hi
Im using atmel 8051 dev board with an At24c02 EEPROM(i2c enabled). i need to read a string of data from eeprom and display it in lcd(16x2)....
Can someone help me with the c coding of it.... pls
Microcontrollers :: 07-08-2010 06:21 :: vignesh2708 :: Replies: 0 :: Views: 959
The DS12887 uses multiplexed Address/Data Bus, Atmega, on the other hand, doesn’t have that bus ..
There is a lot of i2c-based RTCs so that would be the natural choice, or you can change horses (8051-microcontroller) but if you really have to connect the DS12887 to Atmega32 here is what you can do:
- connect the DS12887 8-bi
EDA Jobs :: 02-05-2010 03:48 :: IanP :: Replies: 2 :: Views: 2724