Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 7th October 2007, 06:42 AM   (permalink)
Exclamation Need help! I2c data bus with pic 16f84a

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
rukshankb is offline  
Reply With Quote
Old 7th October 2007, 11:04 AM   (permalink)
Default

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 by Mike, K8LH; 7th October 2007 at 11:06 AM.
Mike, K8LH is offline  
Reply With Quote
Old 7th October 2007, 11:57 AM   (permalink)
Default

Heh, I guess your not familiar with I2C at all, or uProcessors?


Dallas has a range of 1-Wire products that includes switches. I'm not sure of a supplier for them though
__________________
Spency.

PIC Micro's - Your mind is the limit

PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net
gramo is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Can i make an Intelligent Switch by using PIC 16F84A rukshankb Micro Controllers 3 22nd September 2007 03:58 PM
Need some help with a code provided by ATMEL ikalogic Micro Controllers 1 23rd January 2007 02:45 PM
Hardcode a PIC by hand? (or 16F74 + par.port.prog = problem) smilen Micro Controllers 15 21st November 2005 09:23 AM
Just Joined, Got some bugs I can't find. Thedoctorisin136 Micro Controllers 0 1st March 2005 06:07 PM
An error in pic16f84a, why? Zener_Diode Micro Controllers 6 11th April 2004 02:55 AM



All times are GMT. The time now is 10:02 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.