<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Brian,<div><br></div><div>Interesting. That was originally used because of the old DX modem, but the thresholds on the SIM908 / SIM900 do seem more generous.</div><div><br></div><div>The SIM908 is powered at 3.3V, and the PIC18F2685 at 5.0V.</div><div><br></div><div><div>From the SIM908 manual:</div><div><br></div><div><img id="8a82d98e-9a7f-44c1-8eb4-6d3bd9f6efb6" height="314" width="750" apple-width="yes" apple-height="yes" src="cid:EDAD35B8-0340-4032-B6C7-69BE24E1C53F"></div><div><br></div><div>From the PIC18F2685 manual:</div><div><br></div><div><img id="239597e0-ab59-475b-978d-0513727cddce" height="609" width="750" apple-width="yes" apple-height="yes" src="cid:017B8FCF-B7B9-4343-B7F3-9B20CD0012D2"></div><div><br></div><div><img id="199bc421-9a37-4b31-8540-e47536dfe057" height="505" width="750" apple-width="yes" apple-height="yes" src="cid:B5ACFD95-9C3A-438E-8D9B-E7DEDD745C1B"></div><div><br></div><div>That would seem to say that the SIM908 will use 2.7V as it's minimum output voltage, and the PIC18F2685 will accept anything above 2.0V. So, SIM908 TX -> PIC RX should be ok.</div><div><br></div><div>For the other way, the PIC18F2685 will transmit at VDD-0.7 - 4.3V, and the SIM908 will accept anything above 2.4V.</div><div><br></div><div>From that description, the entire MAX942 circuit is not required. The RX and TX pins of the SIM908 and PIC18F2685 can be directly connected to each other.</div><div><br></div><div>What do you think? Perhaps it is time to find my old breadboard and try it...</div><div><br></div><div>Regards, Mark.</div><div><br></div><div><div>On 6 Jul, 2012, at 5:28 PM, HONDA S-2000 wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>On Jul 4, 2012, at 17:27, Mark Webb-Johnson wrote:<br><blockquote type="cite">The MAX942 chip is used for the SIMCOM TX -> PIC RX line, to convert the 3.3v SIMCOM async communication to 5v TTL for the PIC.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">My understanding of this is that the SIMCOM chip, while expecting 3.3v can accept 5v (TX from PIC, RX to SIMCOM) - and a diode is used on the circuit for this. But on the line from the SIMCOM to the PIC (TX from SIMCOM, RX to PIC), the SIMCOM only gives out 3.3v, but the PIC requires 5v TTL levels. One half of the MAX942 is used for that, and the other half is unused.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Has anyone done anything similar?<br></blockquote><br>Yes, this is very common. Many newer chips are 3.3 V while many older chips are 5 V, and sometimes it is difficult to design with all chips the same.<br><br>The thing to do is start with the data sheets.<br><br>A) What is the minimum output voltage of the SIMCOM TX pin?<br>B) What is the minimum input voltage for the PIC RX pin to detect a logic one?<br><br>If A is greater than B, then you don't have to do anything at all. I have many designs where this is the case.<br><br>Looking at the data sheet for the PIC18F2580, on page 433, it shows that anything over 2.0 V is considered a one, so long as the PIC is getting at least 4.5 V of power. If you're running the board at 5.0 V then you're set. Just connect the SIMCOM TX directly to the PIC RX, with no resistor, diode, or anything that costs money.<br><br>The only exception would be if the SIMCOM dips below 2.0 V output under certain conditions.<br><br>I'm sure you still need the diode to protect the SIMCOM RX from the 5 V PIC TX.<br><br>Brian<br><br>_______________________________________________<br>OvmsDev mailing list<br><a href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a><br>http://lists.teslaclub.hk/mailman/listinfo/ovmsdev<br></div></blockquote></div><br></div></body></html>