By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,937 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

c program with hardware interaction

P: 1
i got a project in which i have to make a c program with hardware interaction. so what can i make ? any suggestions please! and how can i ? i want some assistance .
Oct 26 '15 #1
Share this Question
Share on Google+
2 Replies


weaknessforcats
Expert Mod 5K+
P: 9,197
Hardware interaction is pretty general. Today most hardware Interfacing usually is done by the OS and not your C program.

You don't say what hardware you have available.

The first thing I think of is communicating with a serial USB device but do you have any such devices AND do you have the code libraries (SDK) for the devices?
Oct 26 '15 #2

Expert 100+
P: 2,396
Two basic approaches:
  1. Your program interacts directly with the hardware. In this case, you need a Hardware/Software Interface Specification to inform you how the software interacts with that particular piece of hardware.
  2. Your program interacts with somebody else's software; and that other software interacts with the hardware. In this case you need a Software Interface Specification to inform you how to use that other software.
Are you perhaps in a hardware class where your job is to design a piece of hardware that can be used by a computer?

Take a look at Wikipedia article on Memory-mapped I/O.
Oct 26 '15 #3

Post your reply

Sign in to post your reply or Sign up for a free account.