PDA

View Full Version : OT: Hardware question



PlantBob
- 19th January 2011, 19:44
I am using a PIC18F2450 that is powered with 5v. I need two of my outputs to go to about 7.5 volts or at least a RTS DTR level. What is the best way to accomplish this?

Thanks,
Bob

mackrackit
- 19th January 2011, 20:04
Usually a MAX232 or similar is used for serial stuff.

But you could roll your own with a transistor or mosfet.

PlantBob
- 19th January 2011, 20:33
No this isn't for serial, I have a device that I need to communicate with that uses only the RTS, DTR lines to communicate. It just counts the pulses on each line.

Bob

PlantBob
- 19th January 2011, 20:46
Do you know what parts I might need?

mackrackit
- 19th January 2011, 23:27
http://www.electronics-tutorials.ws/transistor/tran_4.html

Dave
- 20th January 2011, 22:15
BobPlant, If you are just receiving (counting) pulses from some external device, just use a voltage divider set to give you 5 volts out from your 7.5 volt source. Then you can just use any pin as an input....

Dave Purola,
N8NTA