83Views6Replies

Author Options:

How exactly to link a hardware to a software? Answered

I've seen it so many times in robots computers etc, i wanted to know which software does that job? rather how to operate a hardware using codes?

Comments

The forums are retiring in 2021 and are now closed for new topics and comments.
0
rickharris
rickharris

Best Answer 9 years ago

With a little reading you will find most if not all of the answers here.


This is a very complex subject and you will need to do some research before you can ask detailed and specific questions.

0
iceng
iceng

9 years ago

A PIC uP has instruction groups that are ;
  • LOGIC Operations OR, AND, XOR, COMPLIMENT
  • MOVE GOTO Address,  SKIP Over Next Instruction
  • MATH Add, Subtract, Increment, Decrement
  • REGISTER Operations  Exchange,  ROTATE Right, ROTATE Left,  SWAP Nibbles
  • SPECIAL Operations  CALL Subroutine,  RETURN From Subroutine,  RETURN FROM INTERRUPT,  SLEEP, CLEAR Watch Dog Timer,  NOPeration
  • BRANCH On Condition  SKIP,  Decrement & Skip IF Zero
  • TEST BIT SKIP IF CLEARSKIP IF SET
  • BIT Operations  SET a Single BIT High,  CLEAR a BIT low ( used to control IC output pins )
This text box cannot teach you software programming. Suffice it to
be said that the above machine instructions can repeatedly test
external conditions and when the conditions are met then the
appropriate bit representing the specific pin is set high and
outputs 5 Volts on the IC ( Integrated Circuit ) pin.

A
0
ankur2893
ankur2893

9 years ago

@iceng, man do u know what exactly happens in the microprocessor/ how does it make it 0/Non zero volts?

0
iceng
iceng

9 years ago

Here is an example of any 8 pin micro-processor output pin
driving a relay that turns on a power line lamp.

The pin responding to a software program that keeps the output pin
low = 0 Volts until some condition changes on the pins you cannot
see causes the Output pin to go High = 5 Volts ant turns on the Light :-)

A

uPLAMP.gif
0
ankur2893
ankur2893

9 years ago

any job. for example say how do u switch on or off a bulb using a computer?

0
lemonie
lemonie

9 years ago

What job?

L

(very vague question)