Download presentation
Presentation is loading. Please wait.
Published byHollie Little Modified over 9 years ago
1
Wireless PC-Peripherals Communication via Blue Tooth (D0130 project)
2
Project Purpose Wireless communication between PC and its peripherals BlueTooth
3
Specifications Communication between PC and a peripheral device through the McBSP serial port of the DSPCommunication between PC and a peripheral device through the McBSP serial port of the DSP Translating the PS/2 protocol from the PC or Device side to the McBSP. The DSP transfers transparently the received bytesTranslating the PS/2 protocol from the PC or Device side to the McBSP. The DSP transfers transparently the received bytes Implementation: FPGA board with PS/2 connectors and a connection to DSP DSP program to mirror the data
4
Specifications (cont) Board requirements:Board requirements: FPGA FLEX10K100 Board EPC2 configuration chip and Jtag Interface 4 PS/2 Connectors An interface to 5402 DSP Debugging pins Jumpers to enable “ McBSP ” In/Out “ contact ” to work-around the DSP! “ contact ” to work-around the DSP! Power Supply We aim to check the system “ due diligence ”, thus voltage and power adjustment of the final “ tape-out ” less concerns usWe aim to check the system “ due diligence ”, thus voltage and power adjustment of the final “ tape-out ” less concerns us
5
Specifications (cont) FPGA implementation should include 10KHZ PS/2 protocol, and McBSP protocol in the DSP frquency we ’ ll configure in the future.FPGA implementation should include 10KHZ PS/2 protocol, and McBSP protocol in the DSP frquency we ’ ll configure in the future. Testing will be done by defining the appropriate test-benches in Renoir, And by DSP software …Testing will be done by defining the appropriate test-benches in Renoir, And by DSP software … Equipment requirements:Equipment requirements: PC (with LPT + 2 serial ports!) PS/2 device (keyboard + mouse) DSK (of DSP 5402) ByteBlaster parallel port Digital “ scope ” for debugging Jumpers Vcc/GND supplier (Vcc=5 v !)
6
Background Input/Output:Input/Output: PS/2 : 10KHZ – Start/Data(8)/Stop/Parity bits … PS/2 : 10KHZ – Start/Data(8)/Stop/Parity bits … (http://panda.cs.ndsu.nodak.edu/~achapwes/PICmicro/PS2/ps2.htm) PC and Device cannot collide in transmitting/receiving … BUT : Using the wireless broadcast might cause such a collision The FPGA implementation handles that! PC and Device cannot collide in transmitting/receiving … BUT : Using the wireless broadcast might cause such a collision The FPGA implementation handles that!
7
McBSP of DSP: Typically 12.5 MHz The exact frequency is determined by the clock generating method, configured using the McBSP control registers.
8
Functional Blocks PS/2 lines McBSP lines PS/2 Interface McBSP Interface Controller DeviceSide DeviceSide=1 PC DeviceSide=0 Mouse DSP DeviceSide=1 DeviceSide=0 Keyboard
9
Hardware – The whole System
10
Hardware – FPGA Board FPGA Board PS/2 connector PS/2 connector PS/2 connector PS/2 connector FPGA for PC for Devices Jumpers for McBSP “contact” DSP Interface
11
Pin-to-Pin Proposal Map
12
FPGA of ALTERA FLEX10K100:FLEX10K100: Supports Peripheral connection Supports Peripheral connection 10 MHz clock 10 MHz clock Relevant Configuration Device is EPC2, or 2 EPC1s ! For the moment we ’ ve designed the system for one EPC2. Relevant Configuration Device is EPC2, or 2 EPC1s ! For the moment we ’ ve designed the system for one EPC2. Dev ’ Software: Renoir 2000 ModelSem+Leonardo, MaxPlusII Dev ’ Software: Renoir 2000 ModelSem+Leonardo, MaxPlusII
13
Translation Blocks in a nutshell Compiles Hierarchaly with 0 Errors! FR FX CLKR CLKX DR DX
14
Main Controller 2 FSMs for controlling PS/2 and McBSP units, and samples their status2 FSMs for controlling PS/2 and McBSP units, and samples their status Handles Collision (possible !!)Handles Collision (possible !!)
15
Interface – Example: PS/2 Reminder
16
Interface – Example: PS/2 (cont) Reminder
17
Software In part A we are requested to “ work-around ” the BT:In part A we are requested to “ work-around ” the BT: Translate PS/2 to McBSP and vise versa DSP mirros the input to the output: We assume the McBSP API is ready …We assume the McBSP API is ready … While(TRUE){While(TRUE){ a = getchar(A1) putchar(A2)}
18
Software / Testing The above program tests the PS/2-to-McBSP-McBSP-to-PS/2 !The above program tests the PS/2-to-McBSP-McBSP-to-PS/2 ! Alternative testing for the McBSP only is :Alternative testing for the McBSP only is :OnceInAWhile(){putchar(a,A2); a ’ =getchar(A1); “ Shout() ” if a ’ !=a }
19
Schedule 30.8 (this week) – Finish pin-to- pin scheme and send board for start-up …30.8 (this week) – Finish pin-to- pin scheme and send board for start-up … 6.9 (next week) – Finish test benches, with successfully working Renoir modules6.9 (next week) – Finish test benches, with successfully working Renoir modules 13.9 – Controlling/understanding DSP software and building the required tests.13.9 – Controlling/understanding DSP software and building the required tests. 13.10 – Testing the ready (hopefully!) FPGA board:13.10 – Testing the ready (hopefully!) FPGA board: We should type a char in the keyboard, or move the mouse, and see the effect on the connected PC, when data goes through our FPGA + DSP !
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.