How to calculate True RMS of Cause/Square Wave in Assembly?

Status
Not open for further replies.

tectona

Member level 2
Joined
Mar 24, 2006
Messages
53
Helped
4
Reputation
8
Reaction score
0
Trophy points
1,286
Activity points
1,602
How Calcaulate True RMS

Hi,

I want to calculate True RMS(Root Means Square) of Cause Square or Square Wave in Assembly Language of PIC 16F72.

Tectona
 

Re: How Calcaulate True RMS


Neither this above procedure nor the formula given below can be practically realized with small microcontrollers such as PIC16F72 with its very limited math powers .. it is just not feasible ..

Maybe you should try Micromega Corporation uM-FPU (v2) 32-bit floating point coprocessor at: https://www.micromegacorp.com/picaxe.html

Regards,
IanP
 

    tectona

    Points: 2
    Helpful Answer Positive Rating
How Calcaulate True RMS

Check out microchip app notes 575 and 660 for floating point support. The code should fit into your controller (if you sort through what you need) to implement what Ianp suggests.

-jonathan
 

Re: How Calcaulate True RMS

tectona said:
I want to calculate True RMS(Root Means Square) of Square Wave in Assembly Language of PIC 16F72.

For a pure square wave:

 

    tectona

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…