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

Subversion Repositories uart_fpga_slow_control_migrated

[/] [uart_fpga_slow_control/] [trunk/] [documents/] [SoftwareFolder_html.txt] - Blame information for rev 34

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 31 aborga

In this section we will try to give ideas on how to drive the UART from a PC

2
besides the simple implementation with RealTerm.
3
 
4

in the software folder of the project archive you will find:

5
 
6
7
  • rtd_uart_test.bat :
  • 8
     
    9
     
  • copy this bat file inside the RealTerm software folder to load the program (http://realterm.sourceforge.net/)
  • 10
     
    11
      
  • passing parameter settings (uart port, speed, display size, etc)
  • 12
     
    13
     
  • check "RealTerm_line_commands.txt" in the documentation folder for more parameters
  • 14
     
  • loads a file "Hex_commands.bin" (in BINARY format) and sends it over UART
  • 15
     
  • known strange behaviour of such method:
  • 16
     
    17
      
  • COLS=18 doesn't set the number of columns to 18
  • 18
      
  • relative paths or paths with "" don't work
  • 19
     
    20
     
    21
    22
     
    23
    24
  • py_serial_control.py :
  • 25
     
    26
     
  • custom very simple script to read and write the UART with Python (http://www.python.org/doc)
  • 27
     
  • uses the pySerial library (http://pyserial.sourceforge.net/)
  • 28
      
    29
       
  • parses human readable parameters and translates them into the correct hex commands
  • 30
         e.g: >> update --> 0x8000 0x00000000
    31
         include a basic 'help' menu
    32
      
    33
     
  • Customize your script
  • 34
      
    35
       
  • define your commands
  • 36
       
  • DEFINE the number of registers to expect back after an update
  • 37
      
    38
     
  • Browse to you script folder
  • 39
      
    40
       
  • from a shell type: python py_serial_control.py
  • 41
       
  • enjoy ! :)
  • 42
      
    43
     
  • to be implemented:
  • 44
      
    45
       
  • load parameters and commands from files
  • 46
       
  • improve readback print on screen formatting
  • 47
       
  • make a generic nregister readout
  • 48
      
    49
     
    50
    51
     
    52

    py_serial il Linux friendly! :)

    53

    Tested on Ubuntu 10.04 LTS

    powered by: WebSVN 2.1.0

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