1 |
2 |
cutullus |
In order to use the FSL2Serial module in XPS, follow these steps:
|
2 |
|
|
|
3 |
|
|
1) Place the entire containing folder, fsl2serial_v1_00_a, into your pcores directory.
|
4 |
|
|
2) Start XPS (or restart - this may be necessary).
|
5 |
|
|
|
6 |
|
|
3) Click on the "IP Catalog" tab, expand "Project Repository", and insert the FSL2Serial module.
|
7 |
|
|
4) Right click on the module name in the "System Assembly View", and select "Configure IP."
|
8 |
|
|
- make sure you indicate the correct system reset polarity (usually board reset polarity)
|
9 |
|
|
- set your clock speed in MHz (eg, 100). The range is 0-200.
|
10 |
|
|
- set your baud rate. Default is 115200, normal people use 9600
|
11 |
|
|
5) Insert the following information into the following places:
|
12 |
|
|
- pcores/fsl2serial_v1_00_a/docs/fsl2serial.ucf --> data/system.ucf
|
13 |
|
|
- pcores/fsl2serial_v1_00_a/docs/fsl2serial.mhs --> system.mhs
|
14 |
|
|
|
15 |
|
|
Note: if XPS is open and you make this change using some other editor,
|
16 |
|
|
XPS will override your changes!!
|
17 |
|
|
|
18 |
|
|
6) In the "Ports" view, expand fsl2serial and connect the clock, rst, and rs232 pins.
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
Adding the FSL busses:
|
22 |
|
|
|
23 |
|
|
1) In the "IP Catalog" tab, expand "Bus", and add TWO instances of the fsl_v20 bus.
|
24 |
|
|
2) For each of these instances,
|
25 |
|
|
|
26 |
|
|
- right click, select "Configure IP"
|
27 |
|
|
- uncheck the box that says "External Reset Active High" (if appropriate)
|
28 |
|
|
- click "Ok"
|
29 |
|
|
|
30 |
|
|
- in the "Ports" view, expand the bus
|
31 |
|
|
- connect the FSL_Clk and FSL_Rst to the system clock and reset
|
32 |
|
|
|
33 |
|
|
3) Back in the "Bus Interface" view:
|
34 |
|
|
- attach the Master port of your processor and the Slave port of FSL2serial to one FSL bus.
|
35 |
|
|
- attach the Slave port of your processor and the Master port of FSL2serial to the other.
|
36 |
|
|
|
37 |
|
|
|
38 |
|
|
You should now be ready to write programs that use the FSL2Serial link as serial output.
|
39 |
|
|
Sample code is available in the fsl2serial_v1_00_a/code/ directory.
|
40 |
|
|
|
41 |
|
|
|
42 |
|
|
2007.03.12
|
43 |
|
|
Alex Marschner
|
44 |
|
|
|
45 |
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
|
|
|