home *** CD-ROM | disk | FTP | other *** search
/ ftp.uni-stuttgart.de/pub/systems/acorn/ / Acorn.tar / Acorn / riscos / problems / serialport / riscOS3.serialport.patch < prev    next >
Text File  |  1993-09-11  |  2KB  |  55 lines

  1. Mon, 30 Aug 1993 21:45:18     comp.sys.acorn.tech           Thread    3 of    9
  2. Lines 41              The old serial port problems...       Respno   2 of   2
  3. ncw@axis.demon.co.uk                                            Nick Craig-Wood
  4.  
  5.  
  6.   > I've just connected my Archimedes (oldish A310 but with ARM3
  7.   > etc; and of course RISC OS 3) to a nice shiny new V32bis
  8.   > modem, and as feared I am getting horrible results when
  9.   > trying to do file transfers. Incoming zmodem suffers from
  10.   > many CRC and other errors, and eventually gives up.
  11.   > Presumably this is just a result of running the serial port
  12.   > at 19200 baud.
  13.  
  14.   > Anyway, I heard some time ago there was a new SerialDev
  15.   > module around which helps with these problems. Has this
  16.   > actually been released; is it obtainable from anywhere? (Is
  17.   > there any *really* kind person who could email me a copy?).
  18.  
  19. Well here is how to patch the SerialDeviceDriver version 0.21 module in
  20. RISCOS 3.10, 3.11 to make it work better on older machines with 65C51, ie
  21. A300/A400/A540/A3000.
  22.  
  23. Save the module to disc. (With RMsave, !Zap, *saving it from the ROM or any
  24. other means you can think of.  It is &1680 bytes long.)
  25.  
  26. In the saved file change
  27.  
  28.       Offset
  29. From: 00000B60 : .? : E33FF003 : TEQP    PC,#3
  30.   To: 00000B60 : ? : E33FF3C2 : TEQP    PC,#&08000003
  31.  
  32. Load the patched module before you use it or you will get a device in use
  33. error.
  34.  
  35. You should now find that the serial port works much better.
  36.  
  37. The patch ensures that the interrupt routine for the 65C51 runs with
  38. interrupts disabled and hence that any new characters arriving whilst the
  39. interrupt is being processed will not cause corruptions or lost characters.
  40.  
  41. A newer version of the module might deal with the interrupts in a more
  42. efficient manner but this seems to work...
  43.  
  44.  
  45. -- Nick Craig-Wood (ncw@axis.demon.co.uk) --
  46.  
  47. Note by acorn@info2.rus.uni-stuttgart.de (Kai Schlichting) (Archimedes Support):
  48.  
  49. This _WORKS_ with my A3000, and reduces the error prone serial port
  50. communication to something that one can at least WORK with !
  51. Errors down by 95 %...
  52. I have received this hack as a complete module with the module header saying:
  53. Serial Device 0.22 (27 Feb 1993)
  54. So: was this an official Acorn patch ?????
  55.