Install the Acromag APC482 timer card
From SubfireWiki
Installing the driver and support software
- 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)"
- Rename 9500257.exe to acromag.zip
- Open a terminal and run these commands
- mv acromag.zip downloaded_drivers
- cd drivers
- mkdir acromag
- cd acromag
- unzip ../../downloaded_drivers/acromag.zip
- mv "Individual Files" driver_files
- cd driver_files
- cd pmc482/dev482
- gedit makefile
- replace "/usr/src/linux-2.4.20-8/include/" with /usr/src/linux-2.4/include/"
- make
- su -c 'mknod /dev/apmc482 c 46 0'
- su -c 'chgrp hwtester /dev/apmc482'
- 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:
- cd "drivers/acromag/driver_files/pmc482/"
- make
- ./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.
- 3 Set up the counter
- 3 Counter Mode
- 2 Pulse Width Modulation
- 10 Counter Size
- 1 32-bit counter
- 1 Return to Previous Menu
- 4 Configure Control Register
- 10 Examine/Change Counter Constat
- 2 Change Counter ConstantA
- FFF
- 3 Change Counter ConstantB
- FFF
- 1 Return to Previus Menu
- 11 Write Counter Constant Register
- 7 Sofware Trigger Control
- 2 Trigger Single Counter/Timer
- 1
- At this point, your scope should have a square wave visible with M=1.00ms, A=3.80V