Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Why is the device driver so special?

Status
Not open for further replies.

avssunil

Junior Member level 1
Joined
Nov 13, 2006
Messages
19
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,281
Activity points
1,416
Why is the device driver so special???? What makes it so important???Why the device driver is not integrated in the OS???
 

Re: Device Driver

Every i2c, spi or other IC which is connected to microcontroller have specific instruction for programming. Device driver is not integrated in os or compiler.
If you want to use an lcd or eeprom memory you must have driver specific for that device, or you will not be able to communicate with that device.

Cristi
 

Re: Device Driver

And The users cant acces the device directly. So the user need one hardware interface program called "Device driver" to access the devices. The DD is little bit complex other than the user program. coz, the DD going to interact with the H/W. So the DD programmer should know somthg abt that H/W other than the programming skills. :D
 

Re: Device Driver

Hi,

In the context of device driver!!!!!!!!!!!!11

Could you please xplain i which languages drivers will be designed@@@@

And if the answer is using c,c++,what factor makes the c language to interact with the hardware directly!!!!!!!!!!!

Also could you please let me know for the following

"C and verilog are there,where as C is serial execution,
Verilog is concurent execution,"

what factors makes such difference??????when dealing with the compilers.Ofcourse both are compilers only written in some language!!!!!!!!

regards
sreedhar
 

Re: Device Driver

The fact that C language is a structured language (not Object Oriented), it makes it easier to access and program hardware. It resembles assembly language which is even more closer to hardware.

As for comparison b/w Verilog and C , verilog has concurrent execution because you design and implement new hardware from it. Hardware is always concurrent. Whereas C is executed on a Micrprocessor which execute instructions one by one.
 

Re: Device Driver

Often the OS will run in "supervisor" or "priveleged" mode, and the user tasks/threads run in "user" mode.... the driver is a bridge between access to the hardware (which can normally only be done in priveleged mode) and the user threads which process the data.

If you are running on a simple micro or without an OS, the concept of device driver becomes a little murky... simple systems often do away with the "driver layer" and just allow threads to access hardware directly.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top