Quote:
Originally Posted by xheavenlyx
1. If your PIC's datasheet states it can accept serial 12v input then interface the device directly to the PIC skipping your 4021.
2. Check your 4021 datasheet, if it is a CMOS chip it will work on the 12V input but, I THINK, will give a 5v parallel output. See the datasheet, it has a lot of information of allowed inputs and the available output level.
3. If the powersupply for your CMOS 4021 is 5V the output data will be 5V. thats how it works, again, this is an assumption. Datasheet is your best friend.
4. Do tell us what the datasheet says about all this.
|
1. Absolute maximum input direct to the PIC is 7.5V. So not an option.
2. The parallel output of the 4021 is determined by the input. It'll happily work from 5v to 15v. ie. a 12v input produced ~12V output. The chip is reversible, that is, can work as serial -> parallel and parallel -> serial hence the input voltage becomes the output.
3. Power supply to the 4021 is 12V. The other end is a 3rd party device which I have no control over. Its clock and data lines are at 12V levels.
4. See above answers
With the help of my CRO i have determined that the clock is always driven by the remote device. Thus my thinking is to use a few opto-couplers. One for the incoming clock signal and 2 for the data line. One for when reading, another for when writing.
Would love to hear your thoughts...
Thanks,
Matt.