Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Resource icon

Integer percentage & asm, no fp 2013-01-05

Status
Not open for further replies.

Mosaic

Well-Known Member
Mosaic submitted a new article:

Integer Percentage & ASM, no FP - This is a further discussion in the vein of 3v0's scaling article posted earlier.

Percentage cal

This is a further discussion in the vein of 3v0's scaling article posted earlier.

Percentage calculations become necessary reasonably frequently, as a correction factor for sensors or for scaling numbers to fit on a limited digit display or any number of applications.

Recently, I had reason to scale variable 8 bit numbers by a variable percentage in ASM. I also had a limitation of running the microcontroller at a low clock speed to be power efficient as a solar application.

The key in...

Read more about this article...
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top