Hi all,
I'm having a lot of fun with a homebrew TTL CPU. However, I'm not having fun using a UART to give it serial comms. My homebrew architecture is extremely simple and although I'm comfortable with driving UARTS having built a Z80 machine, the usual suspects (8250, 16550, SCC2691) are out in this case because of interfacing and config difficulties in the face of the fact that my architecture doesn't include such niceties as a way to do a bit test
I'm wondering therefore if a PICAXE would be fast enough to act as a very simple, non-configurable UART for the machine. I would have 8 bidirectional PICAXE pins connected to my data bus, and 2 PICAXE pins for the serial IO. An additional pair of PICAXE inputs, A and B, would allow the computer to tell the PICAXE what to do.
The PICAXE would need to monitor the serial port in order to buffer a single incoming character, as well as monitor these two inputs. If input A goes low the PICAXE should grab a byte from the bus and send it out over serial. It input B goes low, it should place any received character on the homebrew machine's bus, or place a zero on the bus if no character was currently buffered.
- I don't need any flow control on the serial side
- The clock speed of the homebrew computer will be 1MHz
- Hardward 8-N-1 at 9600 would do just fine
- I can live with only a single character of buffered serial input
Given these constraints, could a PICAXE keep up with this task? And if the answer is no, could a PIC?
I'm having a lot of fun with a homebrew TTL CPU. However, I'm not having fun using a UART to give it serial comms. My homebrew architecture is extremely simple and although I'm comfortable with driving UARTS having built a Z80 machine, the usual suspects (8250, 16550, SCC2691) are out in this case because of interfacing and config difficulties in the face of the fact that my architecture doesn't include such niceties as a way to do a bit test
I'm wondering therefore if a PICAXE would be fast enough to act as a very simple, non-configurable UART for the machine. I would have 8 bidirectional PICAXE pins connected to my data bus, and 2 PICAXE pins for the serial IO. An additional pair of PICAXE inputs, A and B, would allow the computer to tell the PICAXE what to do.
The PICAXE would need to monitor the serial port in order to buffer a single incoming character, as well as monitor these two inputs. If input A goes low the PICAXE should grab a byte from the bus and send it out over serial. It input B goes low, it should place any received character on the homebrew machine's bus, or place a zero on the bus if no character was currently buffered.
- I don't need any flow control on the serial side
- The clock speed of the homebrew computer will be 1MHz
- Hardward 8-N-1 at 9600 would do just fine
- I can live with only a single character of buffered serial input
Given these constraints, could a PICAXE keep up with this task? And if the answer is no, could a PIC?