Author Topic: atmel89c52  (Read 17784 times)


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


Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: atmel89c52
« Reply #1 on: November 29, 2010, 12:00:37 pm »
This introduction to PWM might help:

Perhaps Atmel has example code.