> I'll look at the bit banging deeper. I was orignally going to emulate a
> uart with the 65C22 using bit banging for a modem connection but
> decided simplisity is better when possible.
Compared to asynchronous serial (especially receiving), synchronous serial is easy to bit-bang. The controller can control the shift clock both transmitting and receiving, and timing is not an issue with many of the major SS protocols.
I like things simple too, but at times when I couldn't get the desired parts in small quantities, I gave up and brute-forced it with more common parts, even though it took a lot of them. When I have to chose the least of the evils, I'll chose software complexity over hardware complexity. After all, it's easier to edit and keep perfecting code than it is to re-arrange things or connections on an already-built-up board.
> What do you think is good for multiple off board common serial connections?
A method I have in the plans accommodates several kinds of serial interfaces. The intelligent ones are bit-banged, whereas I'm using the VIA's serial port for the dumb shift registers that so easily give hundreds of plain-vanilla I/O bits. You can do a lot of doubling-up on VIA pin use. I2C can normally share the clock and data lines with SPI or Microwire if: A., you never transition the data line while the clock line is high except to produce I2C start and stop conditions, and B., you keep the SPI/Microwire select lines false while addressing I2C parts (which have no enable inputs).
[
Edit: We came up with
65SIB here on the forum, which is basically SPI but extends it in several directions at once, without really adding any required complexity. See the spec linked. For I²C, we have recommended a connector standard,
I2C-6.]
> I have been looking at the CAN interface. There are some new
> devices available now that does all of the protocols on chip. I
> understand that CAN is becoming more popular in industrial
> applications.
I'm not familiar with CAN. What does it stand for and what company does it? (like SPI was originally Motorola's, Microwire was National's, 1-wire was Dallas's, etc.)
Garth