Sign in

username:

password:



Not a member?

Search avrclub



Search tips

Subscribe to avrclub



avrclub by Keywords

AT90S2313 | AT90S8515 | ATMega | ATmega128 | ECL | FETS | IAR | Keyboard | LCD | STK50 | TMOS | UART

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | AVRclub | Re: [AVR club] 16-bit arithmetic

Atmel AVR Microcontroller discussion group.

16-bit arithmetic - Aqge Priwibowo - Nov 7 12:14:00 2003

hi, i m making a final assigment using atmel 89c51.
what is AVR means in Atmel AVR? is it just the same with ATMEL
AT89C51?

i have to deal with this two problem in my program (assembly)
5019 div 24 and
4580 MUL 0,004999

how can i do this in ATmel? well maybe the second one could be change
into 4580 MUL 4999, but still out of 8-bit. is there any cool and
reasonable way to solve those problem.

how can i appreciate your help except saying thank you very much.
so thank you very much for any comment for this problem




(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )


Re: [AVR club] 16-bit arithmetic - Alejandro - Nov 7 12:51:00 2003

Aqge:
NO. AVR is a family of risc microcontrollers. Nothing to do with AT89C51.
AT89C51 is the Atmel version of the old and famous MCS51 from Intel (cisc micros).

The values 5019, 24, 4580, 0.00499 are constants?
If so you don't need to perform any operation on chip beacuse you already know de result !!!

If we must consider those numbers as variables: no way to solve the problems on 8-bit.
I suggest you to subscribe to 8051 group and 8052 group (mostly in italian).

Tip: Do you really need so much precission? Try rounding values (operations in 8bits) and simplifying before performing the final operations.

Regards,
Alejandro. ----- Original Message -----
From: Aqge Priwibowo
To: avrclub@avrc...
Sent: Friday, November 07, 2003 1:14 PM
Subject: [AVR club] 16-bit arithmetic hi, i m making a final assigment using atmel 89c51.
what is AVR means in Atmel AVR? is it just the same with ATMEL
AT89C51?

i have to deal with this two problem in my program (assembly)
5019 div 24 and
4580 MUL 0,004999

how can i do this in ATmel? well maybe the second one could be change
into 4580 MUL 4999, but still out of 8-bit. is there any cool and
reasonable way to solve those problem.

how can i appreciate your help except saying thank you very much.
so thank you very much for any comment for this problem
Yahoo! Groups Sponsor
To unsubscribe from this group, send an email to:
avrclub-unsubscribe@avrc...
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. [Non-text portions of this message have been removed]




(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )