I hope to use an 18F25K20 or a 26 and I'm using all the pins except one spare.
Soft SUART no good for this app.
Enquiry: Is there a way of switching the USART Rx pin between 2 external serial sources? i.e. make a kind of source selecter.
The PIC Rx would never receive data from both at once, but I can't find a low pin-count cheapo K series PIC with 2 USARTs and supported by SF.
The code would select the 'source'. I was hoping a couple of MOSFETs could be used, but if someone has tried it and found it useless then I won't go up a blind alley.
I'm trying to avoid a secondary 'multiplex' chip and was hoping a couple of 15p discretes would do the job.
Code: Select all
--------SELECT--------
\/ ^
Serial Source 1 -------- (Switch) ----- Rx Pin -- PIC
^
^
Serial Source 2 --------------|