Max speed for ee-sio
Max speed for ee-sio
I was wondering what was the max speed of the sio on the ps2 side? I can connect at 115k no problem but it would be nice to get a special 1.54mbps serial card and hook up to the ps2 at a much higher speed for a more robust GDB setup. My concern is replacing the current MAX chip with a faster one (the external box) and seeing what the ps2 sio speed limit really is.
Any ideas??
			
			
									
									
						Any ideas??
Code: Select all
brd = CPUCLK / (baudrate * 256);Code: Select all
        while ((brd >= 256) && (++bclk < 4))
                brd /= 4;pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
						This was extracted from the code which is used to init the sio port.
			
			
									
									pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
						- 
				TerryMathews
- Posts: 19
- Joined: Thu Mar 31, 2005 5:35 am
From looking more closely at the specifications and source I find the following
So the max rate the chip will output it's SIO signals is IMBUSCLK (36.864Mbps), with the next available rate being IMBUSCLK / 32 (2 * 1 * 16) = 1.152Mbps. No idea what the electict characteristics of the signals looks like at these speeds however.
For most normal baud rates there is several possible combinations of BCLK and BRD. But don't trust the precomputed tables in Toshiba documentation.. (80 / 4 is not 40).
			
			
									
									
						Code: Select all
   IMBUSCLK = CPUCLK(294912000) / 8 = 36.864MHz
   SCLK = UNKNOWN
    
   SIO_LCR  line control register
     SCS(bit 6:5)  clock select  (baud rate)
      00  ->  IMBUSCLK
      01  ->  IMBUSCLK / baud rate generator
      10  -> SCLK
      11  -> SCLK / baud rate generator
   SIO_BGR  baud rate generator
      BCLK(bit 9:8)  clock select
      00  ->  2
      01  ->  8
      10  ->  32
      11  ->  128
      BRD(bit 0:7)  divisor
baud rate generator = BCLK * BRD * 16
For most normal baud rates there is several possible combinations of BCLK and BRD. But don't trust the precomputed tables in Toshiba documentation.. (80 / 4 is not 40).