Projekt Project Hardware Hardware Bedienung Operation BASIC (1) BASIC (1) BASIC (2) BASIC (2) BASIC (3) BASIC (3) Interna Internals Beispiele Examples Erweiterungen Extensions Bibliotheken Libraries Treiber Driver Programme Programs Bezugsquellen: Where to buy: Bausatz Kit Leerplatine Empty board | AVR-ChipBasic2 - Hardware-Erweiterungen AVR ChipBasic2 - Hardware Extensions V1.45 (c) 2006-2012 Jörg Wolfram V1.45 (c) 2006-2012 Jörg Wolfram 1 Das Dataflash-Modul 1 The data flash moduleDas erste Zusatzmodul ist ein ATMEL DataFlash und wird auf den (normalerweise freien) ISP-Steckverbinder gesteckt. The first add-on module is an ATMEL DataFlash and is set to the (normally open) is plugged ISP connector. Auf dem Modul können wie auf einer Diskette oder einem USB-Stick (als Analogie zum PC) Dateien gespeichert werden. On the module can as a floppy disk or a USB flash drive (as an analogy to the PC) files. Entweder BASIC- oder Binärprogramme, aber auch USER-Dateien, zB für Datenlogger. Either BASIC or binaries, but also USER files, eg for data logger. Das Ganze funktioniert mit dem AT45DB041B (512 kBytes) und dem AT45DB081B (1MByte). This works with the AT45DB041B (512 Kbytes) and the AT45DB081B (1MB). Der Unterschied zwischen beiden Bausteinen liegt nur in der Anzahl der verfügbaren Pages (2048/4096). The difference between the two devices is just the number of pages available (2048/4096). Die D-Typen sollten auch funktionieren, wurden aber nicht getestet. The D-types should work, but have not been tested.1.1 Schaltbild 1.1 diagramDa der Dataflash 2,7-3,3 Volt Versorgungsspannung braucht, wird diese einfach durch eine in Reihe geschaltete grüne oder gelbe LED mit ca. 1,8V Durchlassspannung erzeugt. Since the DataFlash needs 2.7 to 3.3 V supply voltage, this is simply generated by a series-green or yellow LED with about 1.8 V forward voltage. Ein Widerstand mit 3,3kOhm bildet die Grundlast für die LED, parallel dazu liegt ein Abblock-Kondensator. A resistor of 3.3 ohms is the base load for the LED, there is a parallel blocking capacitor. Dieser sollte nicht zu klein sein, damit es beim Schreiben in den Flash keine Probleme wegen des differentiellen Widerstands der LED gibt. This should not be too small to make it in writing to the flash is no problem because of the differential resistance of the LED.![]() 1.2 Leiterplattenlayout 1.2 PCB LayoutDie Leiterplatte besteht aus 0,4mm Epoxy, damit sie zwischen die zwei Reihen eines zehnpoligen Buchsenteils für die ISP-Schnittstelle passt. The board consists of 0.4 mm epoxy to fit between the two rows of a ten-pin connector part for the ISP interface. Die Kontakte auf der Leiterseite werden direkt aufgelötet, die auf der anderen Seite befindlichen Kontakte müssen mittels kurzen Drähten mit den Anschlüssen auf der Leiterplatte verbunden werden. The contacts on the printed page to be directly soldered, which are on the other side by means of short wires contacts must be connected to the terminals on the circuit board. Dadurch steht die Leiterplatte zwar nach oben, lässt sich aber recht gut stecken und auch wieder entfernen. Thus, the circuit board is indeed up, but can be stuck pretty well and remove it again.Die Leiterplattenversion 2 benutzt "Leiterplatten-Steckverbinder", wird waagerecht eingebaut und liegt dann über dem Mikrocontroller. The PCB version 2 uses the "PCB", is mounted horizontally and is then transferred to the microcontroller. Aufgebaut habe ich sie aber nicht, da ich Version 1 bevorzuge. I've built it but not because I prefer version 1. ![]() ![]() ![]() 2 Die 64K Speichererweiterung XRAM64 2 The 64K memory expansion XRAM64Das XRAM64 Modul stellt 64 KBytes zusätzlichen Speicher (XMEM) zur Verfügung. The XRAM64 module provides 64 Kbytes of memory (XMEM) available. Angeschlossen wird es am Parallelport, dieser ist darurch für andere Anwendungen nicht nutzbar. It is connected to the parallel port, this is not darurch for other applications. Binärprogramme können sowohl direkt auf den externen Speicher zurückgreifen als auch die entsprechenden Treiberroutinen benutzen, für BASIC Programme muss auf Programmplatz 8 ein Treiber mit der notwendigen Funktionalität geladen sein. Binaries can access both directly to the external memory and the appropriate driver routines use must for BASIC programs to channel 8, a driver with the necessary functionality to be loaded.2.1 Schaltbild 2.1 diagramDie 64K Speichererweiterung besteht im Wesentlichen aus zwei SRAM mit 32 Kbyte und einem CPLD und wird an den Parallelport angesteckt. The 64K memory expansion consists primarily of two with 32 Kbytes SRAM and CPLD and is plugged into the parallel port. Dabei müssen aber die +5V an Pin 14 der parallelen Schnittstelle liegen, bei der Originalversion muss dies nachgerüstet werden. It must, however, be the +5 V on pin 14 of the parallel port, the original version, this must be retrofitted.![]() 2.2 Leiterplattenlayout 2.2 PCB LayoutDas Leiterplattenlayout ist wieder einseitig, dafür müssen allerdings 7 Drahtbrücken bestückt werden. The PCB layout is again one-sided, however, it must be equipped 7 jumpers. Natürlich wäre auch ein zweiseitiges Layout möglich, aber einlagige Leiterplatten lassen sich mit weniger Aufwand selbst herstellen. Of course, a two-page layout would be possible, but single layer PCBs can be produced with less effort itself. Über den JTAG Stecker kann das CPLD programmiert werden. Via the JTAG connector, the CPLD can be programmed.![]() 2.3 Ansteuerung 2.3 ControlFür die Realisierung stand nur der Parallelport zur Verfügung, dadurch müssen die Adressleitungen zwischengespeichert werden. For implementing only the parallel port was available, thus, the address lines are buffered. Die ließe sich auch durch zwei Register realisieren. The goal could be achieved by two registers. Eine Besonderheit ist aber der schnelle inkrementale Zugriff, der für Lese- und Schreibzugriffe effektiv nur jeweils 3 Prozessortakte benötigt. A special feature is the fast incremental access, the need for effective reading and writing requests each only 3 processor cycles. Somit ist zum Beispiel eine Videoauflösung von 320x240 bei 16 gleichzeitig darstellbaren Farben möglich. Thus, for example, a video resolution of 320x240 at 16 simultaneously displayable colors is possible. Um das Modul mit eigenen Routinen im Rahmen eines Treibers oder eines Binärprogrammes ansteuern zu können, sind nachfolgend die verschiedenen Zyklen beschrieben. In order to control the module with their own routines in a driver, or can Binärprogrammes, the various cycles are described below.
![]() ![]() created with latex2web.pl v0.62 © 2006-2011 Joerg Wolfram Created with latex2web.pl v0.62 © 2006-2011 Joerg tungsten |