Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Need help! I2c data bus with pic 16f84a

Status
Not open for further replies.

rukshankb

New Member
hi to all
I have a simple micro controller project. It's an intelligent switch based on lighting systems. I need to read the status in another light in same i2c data bus.
It has 21 switches (with one bulb in each switch).
The main task is the switch should be able to control our bulb and others bulbs by using a switch.
That's why i need to read the status of another switch and control it. I know i2c is a simple method to do it.
My question is "How can use i2c data bus with pic 16f84a?" . Do i need a A/D converter?
If you have asm file which shows the instruction it will very useful to me!!!!!!!!!
Regards
 
Please forgive me for side-stepping your question.

If there's a substantial distance between switch devices you might want to consider serial I/O between devices with RS485 driver ICs on each device. The RS485 signals are relatively immune to noise and can cover some very decent distances

You can implement bit-banged serial I/O on the 'F84 but I would strongly recommend upgrading to another more modern PIC which has a hardware serial port built-in.
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top