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
Oops!
Posted: Sun Mar 25, 2007 10:03 pm
The picture that i draw does not appear exactly as i thought it would. Too bad that we can't upload pictures drectly.
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Sun Mar 25, 2007 10:30 pm
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
Any way to do this?
Posted: Mon Mar 26, 2007 1:15 am
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.
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