PORTS Forum

Ports and Interfaces => General Discussion => Topic started by: thothefali on November 24, 2010, 07:33:04 pm

Title: atmel89c52
Post by: thothefali on November 24, 2010, 07:33:04 pm
I've been working with microcontroller ATMEL89c52 tied to a sensor.  I have problem to measure the PWM sensor pin,

I connect the PWM sensor pin with the   P3.4 (timer0 external input) pin and p3.2 in the microcontroller.  I am not getting how to use two timers to measure PWM from external device.

It would be great if anyone have any idea about this think or if u can provides me some assembly code samples for doing this.

 I appreciate your prompt acknowledgment.

Thanks
Title: Re: atmel89c52
Post by: Jan Axelson on November 29, 2010, 12:00:37 pm
This introduction to PWM might help:

http://www.oreillynet.com/pub/a/network/synd/2003/07/02/pwm.html

Perhaps Atmel has example code.

Jan