Text this: A microprocessor-based digital wattmeter system design