Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Interfece between router and PIC18f452

Status
Not open for further replies.

engcu90

Newbie level 4
Joined
Oct 23, 2010
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,320
Hello,

I am doing a project where I should send data from my router to PIC18f452. May you suggest me the suitable interface circuit?

I use tp-link WR741ND Router, with openWRT firmware.
I have 4 wires Tx, Rx, GND, Vcc from router as shown:

https://wiki.openwrt.org/_media/toh/tp-link/wr741nd-09-serial-pins.jpg?w=700

I need suggestions for interface circuit to connect Tx pin of the router to Rx pin of the PIC?

Thanks
 

It appears that the router board is running at 3.3V, so assuming that the serial output from it is at that level, you just need a logic level shifter between it and the PIC.

To connect the Router-TX to the PIC-RX, an easy way to shift the level is to use a 74LS04 logic chip. It's a hex inverter and will will detect anything above 2V as high input, so will work from the 3.3V signal. Power the 74LS04 from your 5V, connect an inverter input to the Router-TX, and the inverter's output to the input of another inverter. Then the output of that inverter (so the signal is now at 5V, and back to high for a high input) to the PIC-RX.

If you need to connect the PIC-TX to the router-RX to talk back to the router, then you can just use two resistors to drop the 5V to 3.3V. Connect the PIC-TX to a 1.8K resistor, to the other side of that resistor connect a 3.1K resistor, and connect the other side of that to ground. Then connect the middle of the resistors to the Router-RX.
 
Really appreciate your help! The inverter was a great suggestion :)
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top