Computer Hardware

Moderators: None (Apply to moderate this forum)
Number of threads: 711
Number of posts: 1421

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Software Hardware Interface... Posted by VinayKhare on 22 Jun 2008 at 7:09 AM
Hey, you all computer hardware loving guys,,,,,,,Please help me, boy solving my spurious doubts.....

Q1:-How hardwired programming and microprograaming takes place...?
[I'd read before that, miroprogramming is used to get the required o/p from hardware, without disturbing it]

Q:- what is the diff b/n Assembly language and C language?
[difference regarding their application]

Q:- Can I use C lang. for microcontrol programming?

Q:- Is there any interface b/n Hardware and Software?

Plz help me? I have many more doubts.......
Report
Re: Software Hardware Interface... Posted by MT2002 on 22 Jun 2008 at 8:23 AM
: Hey, you all computer hardware loving guys,,,,,,,Please help me, boy
: solving my spurious doubts.....
:
: Q1:-How hardwired programming and microprograaming takes place...?
: [I'd read before that, miroprogramming is used to get the
: required o/p from hardware, without disturbing it]

Microprograms are written in a very low assembly language (microcode) that is specific to the microcontroller. It is stored in the chip's dye, normally in a control store memory area executed by the chip. As microcode is very specific to the chip, it either implements a macrocode or an instruction set for the chip (depending on how complex the microcode is).

What software sees to control the chip is the instruction set that has now been created.

: Q:- what is the diff b/n Assembly language and C language?
: [difference regarding their application]

C is very portable and can be used on many different types of computer systems--from PCs, Macs, game consoles, PDAs, cell phones, all the way to supercomputers.

Assembly is very non-portable and is specific to the device it is used for. ie, perhaps a PC architecture. (As it is with x86 assembly language.) It is usually used where high level languages cannot be used (Special instructions (ie, LGDT, LIDT, etc), binary programs (bootloaders), ..)

: Q:- Can I use C lang. for microcontrol programming?

I never seen it, no. Its useually done in microcode.

: Q:- Is there any interface b/n Hardware and Software?

Of course, else it would not be possible for software to control hardware. The interface is specific to the architecture though.

On the x86 architecture (Most PCs), the architecture implements port mapped I/O, which allows us to access hardware controller registers from software instructions (IN and OUT).

For example, taken from my bootloader written in x86 assembly language, the following code gets the status of the keyboard by reading the onboard keyboard controllers status register mapped to I/O address 0x60 by the POST hardware initialization:

.KKbrdCntrlGetStat2:
	xor		ax, ax		; clear ax
	in		al, 60h		; read in status byte


[.:EvolutionEngine][.:MicroOS Operating System][Website :: OS Development Series]
Report
Re: Software Hardware Interface... Posted by Lundin on 25 Jun 2008 at 3:49 AM
: : Q:- Can I use C lang. for microcontrol programming?


If this refers to microcontrollers (MCU), as in a small CPU with memory and peripheral I/O modules on-chip, then yes, C is the most widely used language for such apps. Assembler is becomming more and more rare, since it is non-portable. The microcontroller manufacturers nowadays spit out hundreds of new parts every year, and the pace is only quickening. This means that micros also become obsolete quicker, so the need of portable programs is higher than ever in this area.
Report
This post has been deleted. Posted by vpvp on 11 Sept 2008 at 6:34 PM
This post has been deleted.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.