Coupling a Prop to a PIC
Mickster
Posts: 2,694
Well, I have read enough stuff about 3.3v to 5v level shifting but I am still unsure of the best method to couple the Prop directly to one or more (5v) PIC18F2331 chips. I need the Prop to be the master and to have the PICs tied to the same Rx Tx lines. Each PIC will adressable and only speak when spoken to. What would be the ideal connection method for this when all chips are located on the same PCB?
Many thanks,
Mickster
Many thanks,
Mickster
Comments
Tx at 5 volts requires a resistor - 3.3K ohms seems quite adequate to protect the Propeller. People have argued anywhere from 2.2K ohms to 3.9K and beyond. The 3.3K is easy to buy and quite conservative. Parallax has been known to use 3.9K in their own products.
Rx at 5 volts requires no protection as the 3.3 volt high will not damage anything.
Vin high at 3.3V, with the 3.3KΩ series resistor, only works if the selected pins are configured for TTL buffer mode.
Duane J
This worked for one PIC in a project of mine. Should work for multiple PICs although you may need to replace the 3.3K resistor with a level translator with multiple PICs. A '245 bus transceiver can also be used between the PICs and the 3.3K resistor in place of the level translator if you happen to have one handy.
Thanks again.
Mickster
Duane J
Okay, now a different question...The PIC requires a 10Mhz clock...would you install a separate crystal or set-up a Prop counter to produce this on an output pin and if so, would the 3.3v level be okay?
Cheers!
Mickster
But AC coupling would be:
And the counters NCO output would do just fine. Maybe send 40MHz to the PICs
Duane J