On Tue, Jul 27, 2004 at 02:04:34AM +0000, Blueeyedpop wrote:
I can't remember for sure, but when I implemented the Playstation II
controller interface to my MAVRIC-II board, I think I used information
from this site:
At any rate, it looks familiar and seems to have about everything you
BTW - the interface is very simple, just standard SPI. One caveat - I
ended up bit-banging the SPI with programmed clock delays to slow the
access down instead of using the built-in hardware SPI support because
the AVR processor on my MAVRIC-II running at 16 MHz, even at the
greatest SPI clock prescale, was too fast for the Playstation
controller to keep up. The lowest I seem to remember being able to
get the AVR SPI clock was 125 KHz, while the fastest I could drive the
Playstation II controller was around 36 KHz as I recall. The AVR was
way too fast.
I realized later that I could have flipped a bit in one of the AVR
registers (XDIV register or something like that) to programmatically
drop the clock speed of the AVR while accessing the slow game
controller and then speed it back up afterwards which would have
allowed me to use the AVRs builtin hardware SPI interface with the
slow game controller. Even though the hardware SPI is certainly
convenient, SPI has got to be the easiest interface to bit-bang so I
just left my code the way it was and didn't worry about it.
Polytechforum.com is a website by engineers for engineers. It is not affiliated with any of manufacturers or vendors discussed here.
All logos and trade names are the property of their respective owners.