OpenCores
URL https://opencores.org/ocsvn/uart_fpga_slow_control_migrated/uart_fpga_slow_control_migrated/trunk

Subversion Repositories uart_fpga_slow_control_migrated

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /uart_fpga_slow_control
    from Rev 30 to Rev 31
    Reverse comparison

Rev 30 → Rev 31

/trunk/documents/HardwareDescription.txt
0,0 → 1,9
Remember to add a voltage translator buffer:
!! none of the FPGAs on the market are 12V tolerant !!
 
~ use a MAX3224 chip for example
Timing
 
In case an external clock is needed to drive the UART:
 
~ use a 29.4912 MHz Oscillator like ASV-29.4912MHZ-EJ-T
/trunk/documents/HardwareDescription_html.txt
0,0 → 1,12
<h3>Buffering</h3>
 
<p>Remember to add a voltage translator buffer:</p>
<b>!! none of the FPGAs on the market are 12V tolerant !!</b>
 
<p>~ use a MAX3224 chip for example</p>
 
<h3>Timing</h3>
 
<p>In case an external clock is needed to drive the UART:</p>
 
<p>~ use a 29.4912 MHz Oscillator like ASV-29.4912MHZ-EJ-T</p>
/trunk/documents/SoftwareFolder_html.txt
0,0 → 1,53
<h4>In this section we will try to give ideas on how to drive the UART from a PC
besides the simple implementation with RealTerm.</h4>
 
<p>in the software folder of the project archive you will find:</p>
<ul>
<li><b> rtd_uart_test.bat :</b></li>
<ul>
<li> copy this bat file inside the RealTerm software folder to load the program (<a href="http://realterm.sourceforge.net/">http://realterm.sourceforge.net/</a>)</li>
<ul>
<li> passing parameter settings (uart port, speed, display size, etc)</li>
</ul>
<li> check "RealTerm_line_commands.txt" in the documentation folder for more parameters</li>
<li> loads a file "Hex_commands.bin" (in BINARY format) and sends it over UART</li>
<li> known strange behaviour of such method:</li>
<ul>
<li> COLS=18 doesn't set the number of columns to 18</li>
<li> relative paths or paths with "" don't work</li>
</ul>
</ul>
</ul>
<ul>
<li><b> py_serial_control.py :</b></li>
<ul>
<li> custom very simple script to read and write the UART with Python (<a href="http://www.python.org/doc">http://www.python.org/doc</a>)</li>
<li> uses the pySerial library (<a href="http://pyserial.sourceforge.net/">http://pyserial.sourceforge.net/</a>)</li>
<ul>
<li> parses human readable parameters and translates them into the correct hex commands</li>
e.g: >> update --> 0x8000 0x00000000
include a basic 'help' menu
</ul>
<li> Customize your script</li>
<ul>
<li> define your commands</li>
<li> DEFINE the number of registers to expect back after an update</li>
</ul>
<li> Browse to you script folder</li>
<ul>
<li> from a shell type: python py_serial_control.py</li>
<li> enjoy ! :) </li>
</ul>
<li> to be implemented:</li>
<ul>
<li> load parameters and commands from files</li>
<li> improve readback print on screen formatting</li>
<li> make a generic nregister readout</li>
</ul>
</ul>
</ul>
<h4>py_serial il Linux friendly! :)</h4>
<h4>Tested on Ubuntu 10.04 LTS</h4>

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.