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

Subversion Repositories z80soc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 40 rrred
Z80 Computer on DE1 Development board
2
 
3
Arquitecture
4
------------
5
 
6
SW9     - Reserved - Reset
7
SW8     - Reserved
8
LEDR9   - Reserved
9
LEDR8   - Reserved
10
 
11
Memory
12
------
13
0000H - 3FFFH - ROM             (0      - 16383)
14
4000H - 5FFFH - VIDEO RAM       (16384  - 24575)
15
8000H - FFFFH - RAM memory      (32768  - 65535)
16
 
17
Registers
18
---------
19
7FDDH         - Z80SOC VERSION  (0 = DE1, 1 = S3E)
20
7FDEH - 7FDFH - STACK ADDRESS   (should be loaded with "ld sp,(7FDEh)" in the beginning of program
21
 
22
IO (Ports)
23
----------
24
 
25
01H     - Out   - Green Leds (7-0)
26
02H     - Out   - Red Leds (7-0)
27
 
28
10H     - Out   - HEX1 - HEX0
29
11H     - Out   - HEX3 - HEX2
30
20H     - In    - SW(7-0)
31
30H     - In    - KEY(3-0)
32
80H     - In    - PS/2 keyboard
33
90H     - Out   - Video
34
91H     - InOut - Video cursor X
35
92H     - InOut - Video cursor Y
36
 
37
GPIO Expansion pins
38
-------------------
39
All write operations to GPIO are buffered.
40
To write the buffered signals to the pins, the Z80 must
41
write any value to port C0 (GPIO0) or C1 (GPIO1)
42
 
43
A0      - GPIO0 (7-0)
44
A1      - GPIO0 (15-8)
45
A2      - GPIO0 (23-16)
46
A3      - GPIO0 (31-24)
47
A4      - GPIO0 (35-32)
48
 
49
B0      - GPIO1 (7-0)
50
B1      - GPIO1 (15-8)
51
B2      - GPIO1 (23-16)
52
B3      - GPIO1 (31-24)
53
B4      - GPIO1 (35-32)
54
 
55
C0      - GPIO0 Write
56
C1      - GPIO1 Write
57
 
58
 
59
--
60
 
61
Reference Sample ROM
62
 
63
It is provided a ROM with a reference application, and the correspnding
64
Z80 source codes.
65
 
66
To use the application you will need to connect the DE1 board to a
67
VGA monitor and PS/2 keyboard.
68
 
69
The program will show how to use:
70
        Input push buttons
71
        Input Switches
72
        PS/2 keyboard
73
        Video text out (memory mapped and port mapped io)
74
        Leds
75
        7seg display
76
 
77
The program starts waiting for keys to be typed in the keyboard.
78
The characters are shown on the 40x30 video (VGA).
79
If "A" is pressed, then the program starts another routine,
80
that will write bytes into SRAM. After 255 bytes are written,
81
the bytes are read sequencially.
82
The address read are displayed in the seven seg display, and
83
the byte read displayed in the leds (binary format).
84
When finished, waits for KEY0 (DE1 board) and then restart again.
85
 
86
The switches (7-0) are used as input to calculate delays. Try
87
changing these switches to speed up ou slow down the leds. It only
88
takes effect after a Z80 reset.
89
To reset the Z80, use SW9.
90
 
91
The looping text inside the box demonstrates how to access the video ram.
92
To change speed of scrolling, use the switches (SW).
93
 
94
Hope you enjoy.
95
 
96
TO-DO:
97
----
98
 
99
- 80x40 Video display
100
- Serial communication
101
- Monitor program to allow download of programs by serial communication
102
- Mass storage device (SD/MMC)
103
- Video colors

powered by: WebSVN 2.1.0

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