ALE Pin setzen (AT90S8515)

Gast #111761
Lesenswert?

Hallo zusammen

Ich versuche gerade das IDE Interface des Yampp3 nachzubauen. Hier wird
ein Mega161 verwendet und wenn ich den ASM Code richtig verstanden habe,
dann setzt er den ALE Pin "von Hand".

Man beachte flip ALE

MfG  Stephan

Hier ein Auszug aus dem Quelltext:

;void setaddress(u08 reg);
  .global setaddress
setaddress:
    call  ramdisable    ; disable RAM
    ser  r25
            ; make sure PORTA and C is outputs
    out  DDRA,r25
    out  DDRC,r25

    out  PORTA,r24
;    out  PORTC,__zero_reg__
            ; flip ALE
    sbi  PORTE,PE1
    cbi  PORTE,PE1
    ret



;          r24
Gast #111765
Lesenswert?

ALE
ALE is the Address Latch Enable used when the External Memory is
enabled. The ALE strobe is used to latch the
low-order address (8 bits) into an address latch during the first
access cycle, and the AD0-7 pins are used for data during
the second access cycle.
Seite 4 des Datenblattes
Michael

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren