Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 19th September 2007, 07:08 AM   (permalink)
Default 8051 microcontroller

hi everybody

can anybody tell, how DIV instruction in 8051 affects the overflow flag?
i know overflow may occur during multiplication, but how is it possible in division operation?

regards
ramanuja

Last edited by ramanuja; 19th September 2007 at 07:12 AM.
ramanuja is offline  
Old 19th September 2007, 08:41 AM   (permalink)
Smile Hi..

Quote:
Originally Posted by ramanuja
hi everybody

can anybody tell, how DIV instruction in 8051 affects the overflow flag?
i know overflow may occur during multiplication, but how is it possible in division operation?
What i feel is that.. it doens not affect the overflow flag.. might be overflowing due to other reasons..

Hey note.. if you are using a compiler called 'keil' or 'raisonance' then overflowing may mean other thing also..

till then check page number 23 of this manual and download that also ..

http://www.keil.com/dd/docs/datashts.../at_c51ism.pdf

Regards,

Simran..
__________________
Simran..
8051 Specialist..
simrantogether is offline  
Old 20th September 2007, 02:08 AM   (permalink)
Default

From the 8051 Instruction Set Manual

The overflow and carry flags are cleared, except if B = 0, then overflow is set and carry is cleared.

Compilers have absolutely NO effect on the behavior of the hardware. It is what it is, and there is nothing you can do about it.
Papabravo is offline  
Old 20th September 2007, 06:57 AM   (permalink)
Default

thank you all
ramanuja is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
8051 Microcontroller (Urgent Help) UAE_Engineer Micro Controllers 5 22nd March 2007 12:13 PM
8051 microcontroller McKenzie e-book Nima.n.m Micro Controllers 1 19th October 2006 06:12 AM
Programming the Mini-Max 8051 microcontroller blimon Micro Controllers 8 13th July 2005 03:42 AM
MT8816 with Microcontroller 8051 dereksohail Micro Controllers 0 1st January 2005 09:03 PM
Programming an 8051, first time Microcontroller user... Jezhead Micro Controllers 4 6th April 2004 12:19 AM



All times are GMT. The time now is 08:51 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker