OpenCores
URL https://opencores.org/ocsvn/z80soc/z80soc/trunk

Subversion Repositories z80soc

[/] [z80soc/] [trunk/] [V0.6/] [doc/] [README-S3E.txt] - Blame information for rev 40

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 40 rrred
Z80 Computer on Spartan 3E Starter Kit
2
 
3
Arquitecture
4
------------
5
 
6
ROT_CENTER push button (Knob) - Reserved - Reset
7
 
8
Memory
9
------
10
0000H - 3FFFH - ROM             (0      - 16383)
11
4000H - 5FFFH - VIDEO RAM       (16384  - 24575)
12
7FE0H - 7FFFH - LCD Video RAM   (32736  - 32767)
13
8000H - BFFFH - RAM memory      (32768  - 49151)
14
 
15
Registers
16
---------
17
7FDDH         - Z80SOC VERSION  (0 = DE1, 1 = S3E)
18
7FDEH - 7FDFH - STACK ADDRESS   (should be loaded with "ld sp,(7FDEh)" in the beginning of program
19
 
20
IO (Ports)
21
----------
22
 
23
01H     - Out   - Green Leds (7-0)
24
20H     - In    - SW(3-0)
25
30H     - In    - KEY(3-0)
26
70H     - In    - Rotary control direction
27
80H     - In    - PS/2 Keyboard
28
90H     - Out   - Video
29
91H     - Out   - Video cursor X
30
92H     - Out   - Video cursor Y
31
 
32
--
33
 
34
Reference Sample ROM
35
 
36
It is provided a ROM with a reference application, and the corresponding
37
Z80 source codes.
38
 
39
To use the application you will need to connect the S3E board to a
40
VGA monitor and PS/2 keyboard.
41
 
42
The program will show how to use:
43
        Input push buttons
44
        Input Switches
45
        PS/2 keyboard
46
        Video text out (memory mapped and port mapped)
47
        Leds
48
        LCD
49
        Rotary Knob
50
 
51
The program starts waiting for keys to be typed in the keyboard.
52
The characters are shown on the 40x30 video (VGA).
53
If "A" is pressed, then the program starts another routine,
54
that will write bytes into RAM. After 255 bytes are written,
55
the bytes are read sequencially and the byte read displayed in the leds (binary format).
56
When finished, waits for KEY0 (East on S3E board) and then restart again.
57
 
58
The switches (4-0) are used as input to calculate delays. Try
59
changing these switches to speed up ou slow down the leds and the LCD text rotation speed.
60
When you change these switches, it will only take effect after a Z80 reset (press the Knob button).
61
 
62
The Rotary knob can be used at any time to rotate the text in the LCD to the left or to the right.
63
 
64
The looping text inside the box demonstrates how to access the video ram.
65
To change speed of scrolling, use the switches (SW).
66
 
67
To reset the Z80, press the Knob Button (rotary).
68
 
69
Hope you enjoy.
70
 
71
TO-DO:
72
----
73
 
74
- 80x40 Video display
75
- Serial communication
76
- Monitor program to allow download of programs by serial communication
77
- Mass storage device (SD/MMC)
78
- Video colors

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.