Quantcast
Channel: stardot.org.uk
Viewing all articles
Browse latest Browse all 2345

programming • Re: programming a sl811hs ???

$
0
0
I was reading the SL811HS documentation just a couple of weeks ago and got similarly confused.

The easiest bit to understand was the CPU access. It "looks" like a 6845 CRTC. Write to base+0 to select a register address, read/write to base+1 to read/write the register. Eg:
LDA #4:STA SL811+0:\ Register 4
LDA #6:STA SL811+1:\ Write &06 to register 4
...
LDA #12:STA SL811+0:\ Register 12
LDA SL811+1:\ Read from register 12

I then got lost in the detailed documentation. Publsihed datasheets often go into huge detail that in a lot of cases you normally do not need, when I get a grasp on what a device is doing I usually write it up in summary like this.

I think I've straightened it in my mind that:
"host" means you are a computer and talking to things like printers, keyboards, mouses, storage drives, etc.
"slave" means you are a printer, keyboard, mouse, storage drive, etc.

So, I think for a "computer end", you'd do something like this:

LDA #15:STA SL811+0 :\ Register 15
LDA #&AE:STA SL811+1 :\ Write &AE to register 15
LDA #25:JSR msdelay :\ Delay for 25ms

...and that's as far as I got. :(

Statistics: Posted by jgharston — Wed Jun 19, 2024 12:17 am



Viewing all articles
Browse latest Browse all 2345

Trending Articles