ChipCenter Questlink
SEARCH CHIPCENTER
Search Type:
Search for:




Knowledge Centers
Product Reviews
Data Sheets
Guides & Experts
News
International
Ask Us
Circuit Cellar Online
App Notes
NetSeminars
Careers
Resources
FAQ
EE Times Network
Electronics Group Sites

Linux Drivers Weeder I/o Boards


Circuit Cellar Online
THE MAGAZINE FOR COMPUTER APPLICATIONS
Circuit Cellar Online offers articles illustrating creative solutions
and unique applications through complete projects, practical
tutorials, and useful design techniques.

LINUX DRIVES WEEDER I/O BOARDS

Applications
by Jack Dennon

Start ý Create the Device Driver ý Create the Device ý The Order of Things ý Load the Device Driver ý Call the Test Program ý Remove the Device Driver ý Sources and PDF

CALL THE TEST PROGRAM

The test program reads the 14-bit digital input on the WTDIO board using the AR command. Pull the least significant bit of this word low by adding a jumper wire from wire terminal A to ground on the WTDIO board. If you make that connection and then call the test program with the command wtdio, you should see a response such as what is shown in Listing 1.

Procopen: filename = com2
Procopen: check for reserved name
file: com2  driver: com_dev
bps = 9600 parity = n nsb = 1 ndb = 8
com2 opened as 3
A3FFE
Listing 1ýThis output was created by the user-side test program. The first five messages are diagnostic information. The last message echoes the address A of the Weeder WTDIO board and the hex representation 3FFE of the 14 bits of data obtained.

 

Most of this output is just diagnostic messages that you can suppress by commenting out the code that creates these lines. The data from the Weeder Technology board is displayed in the last line. The letter A is the address that is set in the dip switches of the Weeder board, and the hex value 3FFE shows that the least significant bit of the 14-bit input is indeed low while the rest are high.

PREVIOUS NEXT


Circuit Cellar provides up-to-date information for engineers. Visit www.circuitcellar.com for more information and additional articles.
For subscription information, call (860) 875-2199, subscribe@circuitcellar.com or subscribe online. ýCircuit Cellar, the Magazine for Computer Applications. Posted with permission.
 
Click here to get your listing up.

Copyright © 2003 ChipCenter-QuestLink
About ChipCenter-Questlink  Contact Us  Privacy Statement   Advertising Information  FAQ