forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Max speed for ee-sio

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
apache37



Joined: 04 Jun 2004
Posts: 76

PostPosted: Sat Apr 23, 2005 6:46 am    Post subject: Max speed for ee-sio Reply with quote

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??
Back to top
View user's profile Send private message
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Sat Apr 23, 2005 8:12 am    Post subject: Reply with quote

Code:
brd = CPUCLK / (baudrate * 256);
With CPUCLK beeing 294912000 and the following constraint:
Code:
        while ((brd >= 256) && (++bclk < 4))
                brd /= 4;
The exercise to find the possible values of baudrate is left to the reader.
_________________
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.
Back to top
View user's profile Send private message
apache37



Joined: 04 Jun 2004
Posts: 76

PostPosted: Sat Apr 23, 2005 8:34 am    Post subject: Reply with quote

Does this say anything about the actual speed limit on the ps2?

I just figured there was a max based a the chip not certain if its just based on the EE.
Back to top
View user's profile Send private message
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Sat Apr 23, 2005 10:26 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
apache37



Joined: 04 Jun 2004
Posts: 76

PostPosted: Sat Apr 23, 2005 12:07 pm    Post subject: Reply with quote

ah. is this part of the kernel then?
Back to top
View user's profile Send private message
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Sat Apr 23, 2005 7:18 pm    Post subject: Reply with quote

Correct.
_________________
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.
Back to top
View user's profile Send private message
TerryMathews



Joined: 31 Mar 2005
Posts: 19

PostPosted: Thu Jun 23, 2005 2:38 am    Post subject: Reply with quote

Either baudrate is not in bps, or brd allows values less than 256.

256=cpu/(baudrate*256) gives an answer of 4500.

I also noticed that baudrate * 256 yields 115200... :)
Back to top
View user's profile Send private message
hno



Joined: 10 Apr 2004
Posts: 7

PostPosted: Sat Aug 27, 2005 9:00 am    Post subject: Reply with quote

If my math is correct speeds up to 1.152Mbps should be supported (brd = 1, bclk = 0). Maybe the double if brd = 0 is supported (probably not).
Back to top
View user's profile Send private message
hno



Joined: 10 Apr 2004
Posts: 7

PostPosted: Sat Aug 27, 2005 10:50 am    Post subject: Reply with quote

From looking more closely at the specifications and source I find the following

Code:
   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


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).
Back to top
View user's profile Send private message
apache37



Joined: 04 Jun 2004
Posts: 76

PostPosted: Fri Sep 02, 2005 5:16 am    Post subject: Reply with quote

This is interesting. Anyone know of where to purchase a high-speed serial card for pc? I mean beyond 230k and more like 1mbit.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group