![]() | ![]() | ![]() |
| | |||||||
| Datasheet/Parts Requests Request a datasheet or enquire about part equivalents and/or difficult-to-find parts here. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| Hi, Was wondering if someone here may be knowing of an interface chip, which can sit between a microcontroller and a sensor and do the level shifting per the following scenario: Inputs pulses coming from a sensor (12v), need to be shifted down to 5v level by this chip, before feeding to microcontroller pins. On the reverse, output from micro must be shifted up to 12v by the interace chip. This digital 12v level must appear on 8 pins on the interface chip, on the return path to the sensor. (pulses will be 20 microsecond wide.) Thank you. | |
| |
| | (permalink) | |
| Quote:
__________________ "I share, thus I am" Jay.slovak Read this! ICD2 Clone Best PIC/DsPIC Bootloader Read my Inchworm ICD2 review! | ||
| |
| | (permalink) | |
| Quote:
As suggested, for the output, a resistor from the PIC pin to the base of an NPN transistor, then a pull-up resistor from collector to 12V is all that's required - note that this will invert the polarity of the output, but this is easily compensated for in the software. There are examples in the 'hardware extras' section of my tutorials. It's not very clear exactly what you mean?, but if it's 8 bit parallel you will need eight of these!. | ||
| |
| | (permalink) | |
| Quote:
__________________ "I share, thus I am" Jay.slovak Read this! ICD2 Clone Best PIC/DsPIC Bootloader Read my Inchworm ICD2 review! | ||
| |
| | (permalink) | |
| Quote:
__________________ "I share, thus I am" Jay.slovak Read this! ICD2 Clone Best PIC/DsPIC Bootloader Read my Inchworm ICD2 review! | ||
| |
| | (permalink) |
| If you use NPN to switch on the PNP (or use open colector pin on PIC), that would work.
__________________ "I share, thus I am" Jay.slovak Read this! ICD2 Clone Best PIC/DsPIC Bootloader Read my Inchworm ICD2 review! | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) | |
| Quote:
(But it won't work with paralel or USART connection...) 8)
__________________ "I share, thus I am" Jay.slovak Read this! ICD2 Clone Best PIC/DsPIC Bootloader Read my Inchworm ICD2 review! | ||
| |