Subject: AVR ALE tot? Newsgroups: de.sci.electronics Date: 2001-05-29 10:44:18 PST |
Hallo Freunde, beim Debuggen meines FUMP2 (HMpeg-Clone mit VS1001) ist mir aufgefallen, daß der ALE-Ausgang am AT90S8515 es nicht richtig tut: Es kommt kein Latch-Strobe heraus, sondern nur statisch ca. 0,6V, überlagert mit 8MHz Sinus 0,07Vp-p und Spikes im ca. 70kHz-Rhythmus mit ca. 0,8Vp-p. Wenn es lo sein soll, stört ALE etwas anders... Kann ich davon ausgehen, daß der AVR im A**** ist? Gruß Henning -- henning paul online: http://www.oocities.org/hennichodernich/ everything you never wanted to know... PM: henningpaul@gmx.de , ICQ: 111044613
Subject: Re: AVR ALE tot? Newsgroups: de.sci.electronics Date: 2001-05-29 12:26:02 PST |
Hallo, Henning Paul schrieb: > beim Debuggen meines FUMP2 (HMpeg-Clone mit VS1001) ist mir aufgefallen, > daß der ALE-Ausgang am AT90S8515 es nicht richtig tut: Es kommt kein > Latch-Strobe heraus, sondern nur statisch ca. 0,6V, überlagert mit 8MHz > Sinus 0,07Vp-p und Spikes im ca. 70kHz-Rhythmus mit ca. 0,8Vp-p. Wenn es lo > sein soll, stört ALE etwas anders... Kann ich davon ausgehen, daß der AVR > im A**** ist? SRE (External SRAM Anable) im MCU-Control-Register gesetzt? cu hardy -- 19.08.2001 --> Sommerwanderung im Sauerland Team-Tatzen-Treff > > > http://www.tatzen-treff.de/ Slovensky Cuvac - vom Wolfshorn > > > http://www.cuvac.de/
Subject: Re: AVR ALE tot? Newsgroups: de.sci.electronics Date: 2001-05-29 12:34:21 PST |
Henning Paul wrote: > beim Debuggen meines FUMP2 (HMpeg-Clone mit VS1001) ist mir aufgefallen, > daß der ALE-Ausgang am AT90S8515 es nicht richtig tut: Es kommt kein > Latch-Strobe heraus, sondern nur statisch ca. 0,6V, überlagert mit 8MHz > Sinus 0,07Vp-p und Spikes im ca. 70kHz-Rhythmus mit ca. 0,8Vp-p. Wenn es > lo sein soll, stört ALE etwas anders... Kann ich davon ausgehen, daß der > AVR im A**** ist? Nachtrag: "Ohne Last" ist ALE noch zackiger, sogar ohne Verbindung (da muß der Blödsinn wohl intern passieren). Die Spikes ändern ihre Amplitude(!) um ca. 10% bei jedem Tastendruck im HMpeg-Debug-Programm. Auch die Adressleitungen scheinen mir ziemlich "verrauscht" (8MHz unförmiger Sinus drüber, nur keine Spikes). Ansonsten funzt der AVR aber, HMpeg-Debug-Programm läuft, serielle Kommunikation auch. Was sagen unsere uC-Experten? (Aguja?) Gruß Henning -- henning paul online: http://www.oocities.org/hennichodernich/ everything you never wanted to know... PM: henningpaul@gmx.de , ICQ: 111044613
Subject: Re: AVR ALE tot? Newsgroups: de.sci.electronics Date: 2001-05-29 13:21:04 PST |
Henning Paul wrote: > nur statisch ca. 0,6V, Hochohmig? > überlagert mit 8MHz Sinus 0,07Vp-p und Spikes im ca. 70kHz-Rhythmus > mit ca. 0,8Vp-p. (...) > Auch die Adressleitungen scheinen mir ziemlich "verrauscht" (8MHz > unförmiger Sinus drüber, nur keine Spikes). Ansonsten funzt der AVR > aber, HMpeg-Debug-Programm läuft, serielle Kommunikation auch. > Was sagen unsere uC-Experten? (Aguja?) Hallo Henning, ich bin zwar nicht der Aguja und der H.P. hat ja auch schon auf ein Registerbit hingewiesen. Aber hast Du vielleicht - neben der möglichen Fehlinitialisierung - evt. auch noch ein Meßproblem? Die Masse vom Tastkopf darf nämlich nicht "irgendwo" angeschlossen werden, sonst bekommst Du über Erdschleifen allen möglichen Müll mit. Am uP läßt es sich am besten messen, wenn die Masse an (einem der) Abblockkondensator(en) des uP liegt. Zur Kontrolle vor der Messung dann auch mal mit dem Tastkopf *auf* den Masseanschluß des Tastkopfes tippen, um sicherzugehen, daß nicht irgendwelche wildgewordenen Logikgatter direkt in die Tastkopfmasse einstrahlen (berüchtigt dafür ist z.B. die 74AHCT- Gatter-Familie...) Da Du auch von einem 8MHz-Sinus schreibst, hast Du vielleicht auch die Kondensatoren des Quarzes ungünstig angebunden: An der Masse- leitung, wo diese C's dransitzen, darf sonst nix hängen, also stern- förmig zum uC führen. Thomas. -- Von PICs, Bytes und Elektronikbasteleien: "Die elektronische Datenhalde" -----------------------------------. http://members.aol.com/datenhalde Neu: Elektronikentwicklung "live": `----------------------------------- "Work in Progress" - http://members.aol.com/datenhalde/live/index.htm
Subject: Re: AVR ALE tot? Newsgroups: de.sci.electronics Date: 2001-05-29 13:26:02 PST |
> Nachtrag: "Ohne Last" ist ALE noch zackiger, sogar ohne Verbindung (da muß > der Blödsinn wohl intern passieren). Die Spikes ändern ihre Amplitude(!) um > ca. 10% bei jedem Tastendruck im HMpeg-Debug-Programm. > Auch die Adressleitungen scheinen mir ziemlich "verrauscht" (8MHz > unförmiger Sinus drüber, nur keine Spikes). Klemm deine Oszi Masse mal vernüftig an, wenn du hast, miss mal mit dieser kurzen Massefeder, die fast jedem Taskopf beiligt (irgentwo in der Schublade, ganz hinten unten in einer kleinen Plastiktüte) ansonsten überprüf deiene Masseverlegungen und Blockkondensatoren. tss, 70mV und du regst dich auf :-) -- Gruß Arne
Subject: Re: AVR ALE tot? Newsgroups: de.sci.electronics Date: 2001-05-30 01:41:38 PST |
Hallo Henning, Sorry for the foreign language here, but..... The latch pulses on the ALE line are VERY short spikes, about 30 nS (for a 8MHz xtal). It seems they are generated by internal clock quadrupling circuitry. Also, accesses to the internal SRAM will generate spurious pulses on the ALE line. This is documented on page 53, "Interface to External SRAM" of the 8515 datasheet. Figures 43 and 44 also show the short ALE pulses. These spurios spikes seems to be anything from 1-20 nS. As others have mentioned, it is VERY important to measure this correctly, and avoid ground loops. The 74HC573 (or similar latch) type is also rather critical. Some works and some doesn't. To avoid earth-bounce problems with the 74HC573, a 100 pF capacitor between the Enable input and ground, may help. /jesper http://www.yampp.com Henning Paul wrote: > > Hallo Freunde, > > beim Debuggen meines FUMP2 (HMpeg-Clone mit VS1001) ist mir aufgefallen, > daß der ALE-Ausgang am AT90S8515 es nicht richtig tut: Es kommt kein > Latch-Strobe heraus, sondern nur statisch ca. 0,6V, überlagert mit 8MHz > Sinus 0,07Vp-p und Spikes im ca. 70kHz-Rhythmus mit ca. 0,8Vp-p. Wenn es lo > sein soll, stört ALE etwas anders... Kann ich davon ausgehen, daß der AVR > im A**** ist? > > Gruß > Henning > -- > henning paul online: http://www.oocities.org/hennichodernich/ > everything you never wanted to know... > PM: henningpaul@gmx.de , ICQ: 111044613
Subject: Re: AVR ALE tot? Newsgroups: de.sci.electronics Date: 2001-05-30 02:51:09 PST |
H.Paulus wrote: > > beim Debuggen meines FUMP2 (HMpeg-Clone mit VS1001) ist mir aufgefallen, > > daß der ALE-Ausgang am AT90S8515 es nicht richtig tut: Es kommt kein > > Latch-Strobe heraus, sondern nur statisch ca. 0,6V, überlagert mit 8MHz > > Sinus 0,07Vp-p und Spikes im ca. 70kHz-Rhythmus mit ca. 0,8Vp-p. Wenn es > > lo sein soll, stört ALE etwas anders... Kann ich davon ausgehen, daß der > > AVR im A**** ist? > > SRE (External SRAM Anable) im MCU-Control-Register gesetzt? Sollte das Programm doch wohl tun, es ist schließlich das offizielle Testprogramm für diese Schaltung? Gruß Henning -- henning paul online: http://www.oocities.org/hennichodernich/ everything you never wanted to know... PM: henningpaul@gmx.de , ICQ: 111044613
Subject: Re: AVR ALE tot? Newsgroups: de.sci.electronics Date: 2001-05-30 03:16:55 PST |
Jesper Hansen wrote: > The latch pulses on the ALE line are VERY short spikes, about 30 nS (for > a 8MHz xtal). > It seems they are generated by internal clock quadrupling circuitry. > > Also, accesses to the internal SRAM will generate spurious pulses on the > ALE line. This is documented on page 53, "Interface to External SRAM" of > the > 8515 datasheet. Figures 43 and 44 also show the short ALE pulses. > These spurios spikes seems to be anything from 1-20 nS. > > As others have mentioned, it is VERY important to measure this > correctly, and > avoid ground loops. The 74HC573 (or similar latch) type is also rather > critical. > Some works and some doesn't. To avoid earth-bounce problems with the > 74HC573, > a 100 pF capacitor between the Enable input and ground, may help. Danke an euch alle, mit der Meßmethode hatte es auch (ein bißchen) zu tun. Die Masseklemme an den Tastkopf gemacht und direkt auf der Platinenunterseite abgegriffen, sah's schon etwas anders aus. Ich werde auch versuchen. den Quarzoszi ein bißchen "abzuschirmen". Ich hatte in einem Atmel-dokument über Google etwas über "random noise on ALE" gefunden und den ALE mit 680p abgeblockt, werd' ich auch noch einmal nach Jespers Tip mit 100p am Latch machen. Die ALE-Pulse kommen mit aber auch verdammt "hart" vor, wie die ausschwingen... Sind die so kurz, daß die gerade mal nach einem Volt aussehen? Aber zu funktionieren scheint das ganze wohl doch, denn wenn ich das RAM ausbaue, geht das Test-Programm nicht mehr... Scheint das wohl davon mit Erfolg Gebrauch zu machen, heißt es wohl "It's not a bug, it's a feature"... :-) Gruß Henning -- henning paul online: http://www.oocities.org/hennichodernich/ everything you never wanted to know... PM: henningpaul@gmx.de , ICQ: 111044613
Subject: Re: AVR ALE tot? Newsgroups: de.sci.electronics Date: 2001-05-30 04:22:41 PST |
In article <vlt0f9.ib1.ln@slowhand.paul.de>, Henning Paul <henningpaul@gmx.de> wrote: ->Was sagen unsere uC-Experten? (Aguja?) Ich fühle mich geschmeichlt :-) Nun, ich habe ALE beim AVR noch nie benutzt - großen Speicher habe ich via Schieberegister an den Adressleitungen angebunden, was eine Menge Layout- arbeit (und I/O Pins) gespart hat. Aber ich denke, wenn Du das MCUCR nicht richtig intitalisiert hast, wird sich ALE wie ein NC-Pin verhalten und mit allem 'mitschwingen' was da on-Chip bzw. bondingmäßig benachbart ist... cu, Aguja -->> This email-address expires 08-01-2001 ! (Spamprotection) <<-- *** www.PROuC.de ==> Free AVR-, PIC- & 8051-Programmers, Apps & Tips ***
Subject: Re: AVR ALE tot? Newsgroups: de.sci.electronics Date: 2001-05-30 09:26:22 PST |
"Henning Paul" <henningpaul@gmx.de> schrieb im Newsbeitrag news:d2u0f9.ib1.ln@slowhand.paul.de... > H.Paulus wrote: > > > > beim Debuggen meines FUMP2 (HMpeg-Clone mit VS1001) ist mir aufgefallen, > > > daß der ALE-Ausgang am AT90S8515 es nicht richtig tut: Es kommt kein > > > Latch-Strobe heraus, sondern nur statisch ca. 0,6V, überlagert mit 8MHz > > > Sinus 0,07Vp-p und Spikes im ca. 70kHz-Rhythmus mit ca. 0,8Vp-p. Wenn es > > > lo sein soll, stört ALE etwas anders... Kann ich davon ausgehen, daß der > > > AVR im A**** ist? > > > > SRE (External SRAM Anable) im MCU-Control-Register gesetzt? > > Sollte das Programm doch wohl tun, es ist schließlich das offizielle > Testprogramm für diese Schaltung? Ja machst du denn einen Zugriff auf das RAM? z.B. mit dem Speichertest in der HD-Debug die du ja offensichtlich zweckentfremdest? Denn wo kein Speicherzugriff da kein ALE da irgend ein Müll durch evtl. falsch Masseanschlüße (wie bereits erwähnt) -- Matthias Weißer http://www.matwei.de/ matthias@matwei.de
Subject: Re: AVR ALE tot? Newsgroups: de.sci.electronics Date: 2001-05-30 10:55:11 PST |
Matthias Weißer wrote: > > > SRE (External SRAM Anable) im MCU-Control-Register gesetzt? > > > > Sollte das Programm doch wohl tun, es ist schließlich das offizielle > > Testprogramm für diese Schaltung? > > Ja machst du denn einen Zugriff auf das RAM? z.B. mit dem Speichertest in > der HD-Debug die du ja offensichtlich zweckentfremdest? Denn wo kein > Speicherzugriff da kein ALE da irgend ein Müll durch evtl. falsch > Masseanschlüße (wie bereits erwähnt) Ich nehm' die ATAPI-Debug. Die läuft nicht ohne Speicher, oder? Mir kommt das zumindest so vor. Dann scheint der Speicher ja wohl zu funktionieren... RD und WR flackern bei den Test alle ein wenig. Gruß Henning -- henning paul online: http://www.oocities.org/hennichodernich/ everything you never wanted to know... PM: henningpaul@gmx.de , ICQ: 111044613
Subject: Re: AVR ALE tot? Newsgroups: de.sci.electronics Date: 2001-05-31 05:46:41 PST |
Jesper Hansen wrote: > The latch pulses on the ALE line are VERY short spikes, about 30 nS (for > a 8MHz xtal). > It seems they are generated by internal clock quadrupling circuitry. [...] > avoid ground loops. The 74HC573 (or similar latch) type is also rather > critical. > Some works and some doesn't. Yes, that was the problem! I just replaced the HC573 with an ALS573 I accidently found in my "IC jar" and - it works! With so small ALE strobes (at least with my AVR) an HC couldn't work. Too sad that I ripped up all the airwires for my 3-chip-only-test :-( Well - two more hours of wiring... regards Henning -- henning paul online: http://www.oocities.org/hennichodernich/ everything you never wanted to know... PM: henningpaul@gmx.de , ICQ: 111044613