retrohackers.org
http://retrohackers.org/

cs8900a Data Sheet for RR-net programming
http://retrohackers.org/viewtopic.php?f=7&t=14
Page 1 of 1

Author:  RaveGuru [ Wed Jan 11, 2006 10:59 pm ]
Post subject:  cs8900a Data Sheet for RR-net programming

This is the official Data Sheet for the Cirrus Logic 8900a NIC

Attachments:
File comment: Important Information on operating the CS8900a in 8-bit mode
an181.pdf [66.41 KiB]
Downloaded 1206 times
File comment: CS8900a General Documentation
cs8900a-4.pdf [2.1 MiB]
Downloaded 1208 times

Author:  Graham [ Fri Jan 13, 2006 1:01 pm ]
Post subject: 

For RR-Net programming you also need a 2nd datasheet which describes the 8-bit mode a bit further. Some important information from the datasheet:

If you receive a frame from the streaming registers, you have to read the first two 16 bit words in hi/lo order, and all following words in lo/hi order. If you don't do it like this, you will have strange byte skipping effects.

Code example:

LDA $DE09
STA TYPE+1
LDA $DE08
STA TYPE

LDA $DE09
STA SIZE+1
LDA $DE08
STA SIZE

LDA $DE08
...
LDA $DE09
...

etc

Author:  RaveGuru [ Fri Jan 13, 2006 2:04 pm ]
Post subject: 

Very interesting! I had no idea about this! Perhaps that could explain some of the mysterious problems i had with my UDP/IP code...

PS. I've added the Documentation on 8-bit mode! Thanks for pointing it out :)

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/