src/mess/machine/ay31015.c
| r9759 | r9760 | |
| 1 | 1 | /**************************************************************************** |
| 2 | 2 | |
| 3 | | ay31015.c by Robbbert, May 2008 |
| 3 | ay31015.c by Robbbert, May 2008. Bugs fixed by Judge. |
| 4 | 4 | |
| 5 | 5 | Code for the AY-3-1014A, AY-3-1015(D), AY-5-1013(A), and AY-6-1013 UARTs |
| 6 | 6 | The HD6402 UART is compatible with the AY-3-1015 UART. |
| r9759 | r9760 | |
| 10 | 10 | It supports independent receive and transmit clocks, |
| 11 | 11 | and transmission and reception can occur simultaneously if desired. |
| 12 | 12 | |
| 13 | | Note to any MESSDEVs who might happen to stray here: |
| 14 | | |
| 15 | | - If you find bugs, please fix them yourself. |
| 16 | | - If you want to convert it to a DEVICE, please do so. |
| 17 | | - If you want to add support for multiple instances, please do so. |
| 18 | | |
| 19 | 13 | ***************************************************************************** |
| 20 | 14 | |
| 21 | 15 | Differences between the chip types: |
| r9759 | r9760 | |
| 32 | 26 | To be safe, we will always reset whenever the control register changes. |
| 33 | 27 | |
| 34 | 28 | Also, it not clear exactly what happens under various error conditions. |
| 35 | | What we do is: |
| 36 | | 1. During receive the stop bit processing is cut short, so we can better |
| 37 | | synchronise the next byte. |
| 38 | | 2. If a framing error occurs, we do not signal DAV, but instead skip |
| 39 | | the bad byte and start looking for the next. |
| 40 | 29 | |
| 41 | | This device has only been tested successfully at 300 baud, with 8 bits, |
| 42 | | 2 stop bits and no parity. |
| 43 | | |
| 44 | | The bit order of the status and control registers is set up to suit the |
| 45 | | Exidy driver. If you wish to use it for some other driver, use the BITSWAP8 |
| 46 | | macro in your driver. |
| 47 | | |
| 48 | 30 | ******************************************************************************** |
| 49 | 31 | |
| 50 | 32 | Device Data: |