Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Software Hardware Interface...

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.......

Comments

  • MT2002MT2002 Posts: 1,444Member
    : 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:

    [code].KKbrdCntrlGetStat2:
    xor ax, ax ; clear ax
    in al, 60h ; read in status byte[/code]
    [hr][size=1][leftbr].:EvolutionEngine[rightbr][leftbr].:MicroOS Operating System[rightbr][leftbr][link=http://www.brokenthorn.com]Website :: OS Development Series[rightbr][/link][/size]
  • LundinLundin Posts: 3,711Member
    : : Q:- Can I use C lang. for microcontrol programming?


    If this refers to [italic]microcontrollers[/italic] (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.
  • vpvpvpvp Posts: 55Member
    This post has been deleted.
Sign In or Register to comment.