












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













4-bit interface Relatively easy to use once you have it mapped into your processor’s memory-mapped I/O Send characters to it, they show up on the screen Not fast! z Scrolling at half-second intervals is about as fast as you can go and still have a clear display
Data written to each of these locations is the 8-bit address of a character in the CG ROM/RAM
Note the Japanese kana characters…
Addresses 8’h00 to 8’h
Note that there are 8 rows in custom character 3 So, it takes 8 writes to make a custom character Row address is incremented automatically…
Write an 8-bit character address to that location Then it shows up on the screen
Write 8 bytes starting at that location Now you can use that new custom character
Lots of little nibble writes….
Now you can, under program control, change the values on the data and control wires
Your Processor en
I/O Reg
Writing to the address of the LCD Reg will update its value
But, these are easily done in an assembly language program… (as are the even longer configuration delays)
Designed to hold configuration data for the Spartan part But, can be used for general non-volatile data
But, if you don’t read back from the LCD they can both work together
But, the flash has a 75ns access time So, it will take four 50MHz cycles to read data z Each cycle is 20ns Set SF_oe and SF_ce active (low) and wait for four cycles (80ns) before grabbing return data… As usual map the flash into your processor’s memory-mapped address space
Serial protocol similar to UART, but with its own clock When you press a key, the keyboard sends a “make code” (one, sometimes two, bytes) When you release the key, the keyboard sends a “break code” (two, sometimes three, bytes) Collectively, these are known as “scan codes”
When you press and hold a key, the make code is sent every 100ms or so If no key is pressed, both clk and data are in their idle state Probably want a PS/2 controller that grabs codes and puts them in a register that can be read by your program (memory mapped I/O) Probably want to set a bit that says “new code” that gets cleared when the code is read
Whenever the mouse moves it Sends three bytes.
Status tells you state of buttons sign of X and Y, and overflow for X and Y
Use rcv-req as a flag to be read by your program? Assert xmt-req by your program to initiate send?
50MHz clock
All I/O can be mapped into your memory space You have lots of room left over in the addressable space if you use block RAMs only
Control the devices under program control Some memory locations will be data, some will be control Writing or reading these locations will have I/O side effects
Think about how your program will interact with I/O
I/O Switches/LEDs UART
Code/Data
Flash ROM?
Code/Data 0000
3FFF
4000
7FFF
8000
BFFF
C
FFFF
16k words (32k bytes)
Top two address bits define regions?
Word addresses
4k additional words
Block RAM
Frame buffer?
Glyphs?