Install the Acromag APC482 timer card

From SubfireWiki

Jump to: navigation, search

Installing the driver and support software

  1. Download the driver from http://acromag.com/subb_updates_drivers.cfm
    • Get the drivers for the PCI I/O boards
    • You have to sign in with a username and password
    • Get "9500257c.exe Red Hat 9.0 Linux, Kernel 2.4.20-8 (Size: 2188 KB)"
  2. Rename 9500257.exe to acromag.zip
  3. Open a terminal and run these commands
    1. mv acromag.zip downloaded_drivers
    2. cd drivers
    3. mkdir acromag
    4. cd acromag
    5. unzip ../../downloaded_drivers/acromag.zip
    6. mv "Individual Files" driver_files
    7. cd driver_files
    8. cd pmc482/dev482
    9. gedit makefile
      • replace "/usr/src/linux-2.4.20-8/include/" with /usr/src/linux-2.4/include/"
    10. make
    11. su -c 'mknod /dev/apmc482 c 46 0'
    12. su -c 'chgrp hwtester /dev/apmc482'
    13. su -c 'chmod g+w /dev/apmc482'

Loading the driver

  • Manually
    • Open a terminal and run this command
      • cd drivers/acromag/driver_files/pmc482/dev482/
      • su -c 'insmod apmc482.o'
  • Automatically
    • Add "insmod "/home/hwtester/drivers/acromag/driver_files/pmc482/dev482/apmc482.o"" to /etc/rc.local

Testing the card

  • Open a Terminal and run these commands:
    1. cd "drivers/acromag/driver_files/pmc482/"
    2. make
    3. ./a.out
      • In this tester program, use option 3 to test the counter/timer
      • Enter these numeric commands to generate a square wave that can be seen by reading out of the top port of timer 1.
        1. 3 Set up the counter
        2. 3 Counter Mode
        3. 2 Pulse Width Modulation
        4. 10 Counter Size
        5. 1 32-bit counter
        6. 1 Return to Previous Menu
        7. 4 Configure Control Register
        8. 10 Examine/Change Counter Constat
        9. 2 Change Counter ConstantA
        10. FFF
        11. 3 Change Counter ConstantB
        12. FFF
        13. 1 Return to Previus Menu
        14. 11 Write Counter Constant Register
        15. 7 Sofware Trigger Control
        16. 2 Trigger Single Counter/Timer
        17. 1
      • At this point, your scope should have a square wave visible with M=1.00ms, A=3.80V
Personal tools