300 likes | 744 Views
Electronic Scratch Paper Simon Huang Stamford Hwang Ted Wang Agenda Introduction Components Improvements Q&A Purpose Records information anywhere, anytime Reduces the use of paper Acts as a whiteboard Works as a portable device System Components Altera DE2 FPGA Board
E N D
Electronic Scratch Paper Simon Huang Stamford Hwang Ted Wang
Agenda • Introduction • Components • Improvements • Q&A
Purpose • Records information anywhere, anytime • Reduces the use of paper • Acts as a whiteboard • Works as a portable device
System Components • Altera DE2 FPGA Board • 17.1’’ Touch Screen • 17.1’’ LCD Monitor • Bilateral Switch (CD4016CN) • Microprocessor (PIC16F877A) • A/D Converter (AD573JN)
Agenda • Introduction • Components • Improvements • Q&A
Touch Screen • Each Resistor • 300 Ω • Simple Voltage Divider • Output slightly less than 2.5V • Scratch of length < 20µm is ignored
Touch Screen to A/D • Bilateral Switch (CD4016CN) to automate • “On” resistance 300 Ω
Wiring Obtain Y coordinate Obtain X coordinate
A/D Converter (AD573JN) • A/D Converter to convert analog to 10 bit digital signal
Wiring • All 10 bits desired • Unipolar input • 0V ~ 5 V • Input to Convert • At least > 500ns wide 1 2 3
Tc = Conversion Time (30 – 40 µs) Tcs = Convert Pulse Width (at least 500 ns)
Protocol of Transmission • Operates at 10 kHZ
Why PS/2? • Complication via USB coding • Successful testing via PS/2 • i.e. make code of E = 24
PS/2 vs. RS-232 (cont.) • Data • Not Implemented • Ground • Vcc (+5V) • Clock • Not Implemented
LCD Controller • Purpose: To control the display of LCD • Input: • PS/2 serial communication • Makecode of X and Y coordinate • Output: • 640 x 480 resolution 10 bit RGB VGA signal
Decoder • Purpose: Translate PS/2 Protocol to X and Y • Input: • Makecode of X and Y coordinate • Output: • X position (0 – 640) • Y position (0 – 480)
State Machine • Purpose: CPU to determine functionality • Input: X and Y coordinates • Output: • Clear • Draw • Save • Load • Erase
Memory Unit • Purpose: grid like storage for 640 x 480 pixel info • Input: • operation determined by SM • XY coord of user touch • Current XY coord VGA is drawing • Output: • RGB signal
VGA Driver • Purpose: Calculate correct VGA signals • Input: RGB of pixel • Output: • VGA Signals • XY of next pixel draw
Agenda • Introduction • Components • Improvements • Q&A
Improvements • Include an amplifier to increase the resolution • Utilize NIOS2 to program through USB A/D Converter • Improve the resolutions shown on the monitor • Improve circuitry through other means • Use RAM instead of registers to increase the amount of data stored
Agenda • Introduction • Components • Improvements • Q&A