CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

OT:1-wire iButton protection

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
cstan_02



Joined: 24 Jul 2005
Posts: 13

View user's profile Send private message

OT:1-wire iButton protection
PostPosted: Sun Mar 25, 2007 9:06 pm     Reply with quote

I have done this i-button reader of which the MCU is PIC16LF73 working with 3V. Now that's not at all the problem. The 1-wire data line is connected to the PIC pin directly with just a few ohms of resistance and a zener diode in parallel. The idea is to protect the PIC pin in case somebody tries to sabotage the system by applying high voltages on the 1-wire dataline in which case the PIC pin will be rendered useless. I'm afraid that my setup might not be fully protected. I've seen other circuits which use a schottky diode just in series with the dataline with the anode towards the PIC. And another I/o pin connected to the data line. Like this..

[INT0]
PIN_B0 Schottky 10-30 Ohm
[]PIC------------------|>|-------------/\/\/\/------------------|Reader data line
| |
| |
| |-----|<|---------------GND
PIN_B4----------| Zener Diode


This is the circuit that i'm talking about. How can i make it work through the firmware ? I'm using the CCS library for the touch device. Hope you guys can give me some hints. Thanks.
cstan_02



Joined: 24 Jul 2005
Posts: 13

View user's profile Send private message

Oops!
PostPosted: Sun Mar 25, 2007 10:03 pm     Reply with quote

The picture that i draw does not appear exactly as i thought it would. Too bad that we can't upload pictures drectly. Sad
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Mar 25, 2007 10:30 pm     Reply with quote

1. Edit your original post.

2. Put the ASCII art inside a "code block". This will preserve the
formatting. One problem is that the font used to enter the post is
not the same as the one used to display it. So you need to:

3. Preview your edited post. If it doesn't look correct, edit it slightly
and preview it again. Repeat this until you get it right. Then post it.
cstan_02



Joined: 24 Jul 2005
Posts: 13

View user's profile Send private message

Any way to do this?
PostPosted: Mon Mar 26, 2007 1:15 am     Reply with quote

Code:

                           Schottky           33 Ohm
PIN_B0-------------------------|>|-------------/\/\/\/----------------|Reader data line
                         |             |
                         |             |
            5K6          |             |-----|<|---------------GND
PIN_B4--/\/\/\/----------|                Zener Diode



The schottky is for added protection in case of sabotage by applying high voltage, but the the 1-wire does not work with the diode on the line. The pin_b4 is used to overcome the problem. I'm just wondering how. Thanks.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group