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.

how 8-bit pic 16f877 deal with alu data more than 8-bit

Status
Not open for further replies.

arbabar

Member level 2
Joined
Aug 11, 2011
Messages
46
Helped
5
Reputation
10
Reaction score
5
Trophy points
1,288
Location
Islamabad
Activity points
1,640
hi i am newin pic

which plat form is batter for me to understand and learn pic programming assembly language or pic c?

and second is that i m learning about assemble

i learned that w register Work-register is 8 bit......

maximum number in it is FFH which is equal to 255 in decimal

what if we want to add number more that 255 in decimal????

MOVLW 7F2h ; DISCARD 7 AND IT BECOME F2H......


on other hand micro controller perform calculation more than these numbers like as in calculator ...
so how is it ?

it multiply add and divide number in thousand and tenthousand and hundread of thousand????


how its possible on 8-bit pic whose work register with ALU IS just 8-bit???
 

Language C handles intrinsiclly numbers with magnitude grater than core bus size.
Even in ASM language, you can take math libraryes ready to use.

However, if you want to exercize some logic induction, can do it.


+++
 

You are right. At the basic end of things you do the most simple thing and use 2 bytes instead of 1.
As a learner it is very instructive to do some binary with a pencil and paper to see how it all works.

put the column weights in a row at the top and then put 16 zero's underneath.
Then start some rows with ones in various places and write the decimal value against the rows
draw vertical lines in between each group of 8 columns so you can see the byte boundary easy

I have taught a number of people using this method and people seem to pick things like shifting up easy
this way too.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top