Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

IS IT POSSIBLE IN I2C USING 1 MC AS MASTER AND 2 MCS AS SLA?

Status
Not open for further replies.

rajtech

Member level 2
Joined
Dec 25, 2007
Messages
45
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,288
Activity points
1,569
Hi All,
I am new to micro controller, Please help to explain, is it possible to connect PIC16F877 A(AS MASTER) AND PIC16F689 (2 ICS) AS SLAVE?. thanks
 

Re: IS IT POSSIBLE IN I2C USING 1 MC AS MASTER AND 2 MCS AS

Yes absolutely. You can have 1 master and up to 112 slaves on I2C bus.
 

    rajtech

    Points: 2
    Helpful Answer Positive Rating
yes no problem
 

    rajtech

    Points: 2
    Helpful Answer Positive Rating
Re: IS IT POSSIBLE IN I2C USING 1 MC AS MASTER AND 2 MCS AS

Yes is posible because I2C is using address for each slave.
 

    rajtech

    Points: 2
    Helpful Answer Positive Rating
Re: IS IT POSSIBLE IN I2C USING 1 MC AS MASTER AND 2 MCS AS

Hi All,

Thanks for your reply, please explain how to write the code. i know how to write code for master. but i don't know how to write for slave. my project is to display some value in two lcd display. it is not poassible to use one pic16f877 to control two lcd display, that why i go for one pic16f877 as master and two pic16f689 (as slave) to control the lcd.

Please refer attachment:

master PIC read some inputs and store the information in EEPROM using i2c and then tranfer the data to slave to display in LCD. please help me and give some idea . realy i need your help. thanks
 

Re: IS IT POSSIBLE IN I2C USING 1 MC AS MASTER AND 2 MCS AS

It is possible to control two or more LCD's using one 16F877. You don't need 3 microcontrollers to do this job. Just connect enable pins of each LCD to different GPIO pin. Rest all pins can be on same ports for both of them.
 

Re: IS IT POSSIBLE IN I2C USING 1 MC AS MASTER AND 2 MCS AS

Hi rajtech,
You can connect how many LCD you want to the uC if you fave enough I/O pins. For LCD using HD44780 you can connect toghether all data pins (all 8 or 4) depend how your software is working and also the control pins RS, RW. Only for the pin EN is used diferent pins for each display. The data that you will send to the LCD will be display it only to the LCD that will receive also the EN "command". In this case the hw will be simplified and you don't need more uC and I2C communication.
 

Re: IS IT POSSIBLE IN I2C USING 1 MC AS MASTER AND 2 MCS AS

A good tutorial about how to drive the LCD was by TekUT and can be found at
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top