Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a...

13
Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a reset button Connected to a clock input. See Digilent Inc.'s reference design for how use it 1 LED 50 Mhz Oscillator GCK0 (pin 80)

Transcript of Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a...

Page 1: Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a reset button Connected to a clock input. See Digilent.

Digilent System Board Capabilities

Serial Port (RS-232)Parallel Port1 Pushbutton Hint: Good for a reset button Connected to a clock input. See

Digilent Inc.'s reference design for how use it

1 LED50 Mhz Oscillator GCK0 (pin 80)

Page 2: Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a reset button Connected to a clock input. See Digilent.

RS232

5 wire serial interface Rx,Tx RTS,CTS (hardware flow control) DSR

Requires a UARTRx and Tx are the only lines neededRS-232 UARTS Opencores.org (several) Xilinx appnotes (several)

http://www.xilinx.com/apps/xapps.htm

Page 3: Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a reset button Connected to a clock input. See Digilent.

RS232 UART

Functions Parallel-serial conversion (transmit) Serial-parallel conversion (receive) Start bit, stop bit, parity bit(optional) Baud rate generation (not always)

UART uses the start bit to syncronize its internal clock to the incoming dataStop bit indicates end of data

Misread or missing stop bit indicates a framing errorParity Bit

XOR operation Detects single bit errors

Page 4: Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a reset button Connected to a clock input. See Digilent.

Parallel Port

8 bit data transfers No serial to parallel conversion needed Extra control lines required

Address Strobe, data strobe, interrupt, reset, write enable

2 Mbit/s capable

EPP timing diagrams not given in users manual Specified in IEEE 1284 Standard http://www.fapo.com/ieee1284.htm http://www.lvr.com/parport.htm

Page 5: Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a reset button Connected to a clock input. See Digilent.

Digital I/O Board

Page 6: Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a reset button Connected to a clock input. See Digilent.

Board-to-board Connectors

Page 7: Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a reset button Connected to a clock input. See Digilent.

XC95108 CPLD

Interfaces between Discrete devices and FPGA 7 segment displays LED's Switches Buttons

Timing Diagrams Page 15 of dio2 users manual

DIO2 board does not have a local oscillator 7-segment display uses BOCI input signal

256Hz – 1kHz input clock required

Page 8: Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a reset button Connected to a clock input. See Digilent.

CPLD InterfacingLED and 7-segment are write only Must write to all devices at that

address simultaneously

Buttons and switches are read-only

Page 9: Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a reset button Connected to a clock input. See Digilent.

Buttons & Switches

Must poll CPLD to detect when a button or switch has changedThe CPLD does NOT debounce the inputs 1ms debounce for pushbuttons needed 2ms debounce for switches needed

The CPLD does NOT sychronize the asynchronous inputs Inputs will be asynchronous to the FPGA

Page 10: Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a reset button Connected to a clock input. See Digilent.

DIO2 Self test

Starting self Test SW1 => VDD SW8 => GND Press Button 7,E, & 0 to start self-test

Press Button 0 to finish self-testSelf-test Buttons control LED Switches control 7-segment displays

Page 11: Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a reset button Connected to a clock input. See Digilent.

PS2 port

Keyboard or Mouse inputInterfacing with Keyboard or Mouse similar to RS-232 protocol 1 start bit 1 stop bit 1 parity bit

Separate clock line used to synchronize data More reliable than start bit No baud rate generation required (input clock

gives the baud rate)

Half-duplex 2-wire serial

Page 12: Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a reset button Connected to a clock input. See Digilent.

LCD

Samsung KS0066 Controller 208 preset characters 8 user defined 80 character RAM (Frame buffer)

Only 32 can be displayed at any time

Informative LCD site http://www.hantronix.com/3_3.html Application notes Data sheets

Page 13: Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a reset button Connected to a clock input. See Digilent.

VGA

8 bit color (3 green, 3 blue, 2 red)60 Hz, 640 x 480 display Write every pixel to screen in 16.7 ms 307,200 pixels on a 640 x 480 display 2,457,600 bit frame buffer needed (300 Kbytes) 17.6 Mbytes/sec bandwidth from FPGA to Monitor

Easily done by FPGA Getting data into FPGA is a problem

56 Kbits Block RAM available Could possibly hold a 80 x 80 frame buffer Use internal FPGA logic for a larger frame buffer