Results 1 to 8 of 8

Thread: Need to start somewhere with Hardware programming

  1. #1
    Newbie
    Join Date
    Mar 2001
    Location
    Australia
    Posts
    3

    Post Need to start somewhere with Hardware programming

    Hi im looking into starting with hardware programming, even though I know C programming im not sure how to go about when it comes to hardware...
    What i want to start with is simple things like how does the sound card work... What are the irq and dma addresses for, basicaly stuff like that.
    Does anyone know of any sites that can help me to kick start?

    Please help me out here.

    Thanks alot.

    [ 01-09-2002: Message edited by: 168db ]

  2. #2
    FLAC
    Join Date
    Apr 2001
    Location
    Here, There, Everywhere
    Posts
    1,436

    Post

    are you programming for windows or DOS? if windows there is little need to get into the real "nitty gritty" of hardware coding, thats the great thing about drivers!

    just jump in google a do a search for "sound blaster programming" etc, you should get a heap of info. Its nice to know the theroy, but for coding nowadays you can skip alot of this stuff..... espically if your starting out with hardware.

    maybe try hardware projects like LCD displays/IRman devices on the parallel/serial ports to begin with...
    Project - GAME OVER :(

  3. #3
    Retired Admin Aaron Cake's Avatar
    Join Date
    Jan 2000
    Location
    London, Ontario, Canada
    Posts
    2,464

    Cool

    Years back I made a program in GWBASIC that could play a raw WAV file through a Soundblaster card...It wasen't that hard. If you want, I can dig it up and send it to you. May be helpful.
    Player: Pentium 166MMX, Amptron 598LMR MB w/onboard Sound, Video, LAN, 10.2 Gig Fujitsu Laptop HD, Arise 865 DC-DC Converter, Lexan Case, Custom Software w/Voice Interface, MS Access Based Playlists
    Car: 1986 Mazda RX-7 Turbo (highly modded), 1978 RX-7 Beater (Dead, parting out), 2001 Honda Insight
    "If one more body-kitted, cut-spring-lowered, farty-exhausted Civic revs on me at an intersection, I swear I'm going to get out of my car and cram their ridiculous double-decker aluminium wing firmly up their rump."

  4. #4
    Newbie
    Join Date
    Mar 2001
    Location
    Australia
    Posts
    3

    Post

    Thanks guys for your replys.

    Was thinking of doing some DOS/Linux stuff but before starting with the code i just want to understand how everything works and stuff.
    Im comming in to programming world from hardware background, been doing electronics and stuff for past ten years. So i should have much trouble understand it all as long s i can get started from somewhere.
    Yeah I'll try searching on google.com see that comes up with something.
    And Aaron if you could send me a copy of that basic code that would be great. I got some samples in C for playing WAV file it does make sense to me but takes some to figering out what each line of code does as im not sure what really happens in the backround.

  5. #5
    Newbie laxrox's Avatar
    Join Date
    Oct 2001
    Location
    Eugene, Oregon, USA
    Posts
    46

    Post

    Linux Device Drivers by Rubini and Corbet (published by O'Reilly)
    http://www.oreilly.com/catalog/linuxdrive2/

    Online book:
    http://www.xml.com/ldd/chapter/book/index.html

    The 2nd edition covers the 2.4 (current) kernel AND you can download the whole thing in PDF format (THANKS O'Rielly)!!! There are so many good things about this book I don't know where to start. Even if you are not "into linux", the ideas presented will help you out on any modern OS since they are all built on the same fundemental ideas. It does provide a fairly good overview of the kernel including process management, memory management, file systems, device control and networking as well as the basic device types: char, block and special/network. The chapters on hardware management, interrupt handling, and mmap and dma (8, 9, and 13 respectively) sound like they would be of particular interest to you. There are also more linux specific chapters on kernel modules and thier loaders (insmod and kmod). I would definatly encourage you to check it out. I ended up purchasing the book after downloading it and printing it out (all 520+ pages).

  6. #6
    Retired Admin Aaron Cake's Avatar
    Join Date
    Jan 2000
    Location
    London, Ontario, Canada
    Posts
    2,464

    Cool

    OK. I'll see about finding that code. It's on 5.25" disk, so I first need to find a machine with the proper drive...Give me a few days...
    Player: Pentium 166MMX, Amptron 598LMR MB w/onboard Sound, Video, LAN, 10.2 Gig Fujitsu Laptop HD, Arise 865 DC-DC Converter, Lexan Case, Custom Software w/Voice Interface, MS Access Based Playlists
    Car: 1986 Mazda RX-7 Turbo (highly modded), 1978 RX-7 Beater (Dead, parting out), 2001 Honda Insight
    "If one more body-kitted, cut-spring-lowered, farty-exhausted Civic revs on me at an intersection, I swear I'm going to get out of my car and cram their ridiculous double-decker aluminium wing firmly up their rump."

  7. #7
    FLAC
    Join Date
    Apr 2001
    Location
    Here, There, Everywhere
    Posts
    1,436

    Post

    Originally posted by Aaron Cake:
    <STRONG>OK. I'll see about finding that code. It's on 5.25" disk, so I first need to find a machine with the proper drive...Give me a few days...</STRONG>
    ugh 5.25" discs! stop using dirty words around here Aaron!! brings back to many nightmares 4 me...
    Project - GAME OVER :(

  8. #8
    Retired Admin Aaron Cake's Avatar
    Join Date
    Jan 2000
    Location
    London, Ontario, Canada
    Posts
    2,464

    Cool

    Like I said, I did this years ago and have not yet transferred them to real media...
    Player: Pentium 166MMX, Amptron 598LMR MB w/onboard Sound, Video, LAN, 10.2 Gig Fujitsu Laptop HD, Arise 865 DC-DC Converter, Lexan Case, Custom Software w/Voice Interface, MS Access Based Playlists
    Car: 1986 Mazda RX-7 Turbo (highly modded), 1978 RX-7 Beater (Dead, parting out), 2001 Honda Insight
    "If one more body-kitted, cut-spring-lowered, farty-exhausted Civic revs on me at an intersection, I swear I'm going to get out of my car and cram their ridiculous double-decker aluminium wing firmly up their rump."

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •