Author Topic: atmel89c52  (Read 5354 times)

thothefali

  • Member
  • ***
  • Posts: 3
atmel89c52
« 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

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 2940
    • Lakeview Research
Re: atmel89c52
« Reply #1 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