<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Ok i have to correct myself here..<br>
<br>
The 18<b>F</b>2680 will not work on 3.3 volt. You will have to use
the 18<b>LF</b>2680 for that.<br>
<br>
-Michael<br>
<blockquote cite="mid:4FF58CFF.2070106@stegen.com" type="cite">
<blockquote type="cite">For the hardware guys - Michael Stegen,
Brian, William - anyone :-)
<br>
<br>
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>
<br>
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.
<br>
</blockquote>
<br>
Actually i used the internal pullup of the UART in the GSM modem
(in my original design) as a logic "1", the PIC will pull the line
low when it wants to send a logic "0". The diode also blocks any
5V from going into the modem.
<br>
<br>
<blockquote type="cite">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>
<br>
</blockquote>
You can also power the PIC from 3.3v, i don't think that wil cause
any issues on the CAN transceiver.
<br>
The Can transceiver sees a logic "1" at 2 volts, so a level
converter between these two chips is not needed.
<br>
As the X-tal operates at 20Mhz, it should work. According to the
datasheet the max clock @ 3.3v is 25Mhz
<br>
<br>
Another way to make it a bit cheaper is to use a 18F26K80, an
improved version of the 18F2680. But that will likely require some
changes to the code, as it's not a direct replacement.
<br>
<a class="moz-txt-link-freetext" href="http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en550199">http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en550199</a>
<br>
It also has two UARTS, and comperators, which you can use instead
of the MAX942.
<br>
<br>
-Michael
<br>
_______________________________________________
<br>
OvmsDev mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a>
<br>
<br>
<br>
</blockquote>
<br>
</body>
</html>