Dear, I've been playing with microcontroller ATMEL89c52 tied to a sensor. I have problem to measure the PWM sensor pin, I connect the PWM sensor pin with the (timer 2 (P1.0) & timer 2 Ex (P1.1) pin in the microcontroller. As I understood should use capture mode & (up & down mode). It would be great if u have any idea about this think or if u can provides me some assembly code samples for doing this.
I will wait on ur reply I appreciate your prompt acknowledgment. Thanks
Try http://www.avrfreaks.net forum, I think you will have greater success in askin there :)
These are not toys to play with - they need some serious study of the datasheets, application notes, etc...
"a sensor"
What sensor?
"As I understood should use capture mode & (up & down mode)."
So have you looked up those things in the datasheet? Have you checked for application notes, etc?
"provides me some assembly code samples for doing this."
For doing what, exactly? Remember - you haven't said what the sensor is yet! You haven't even managed to choose the correct toolset!
"I will wait on ur reply"
Don't just sit there - get on with doing some work on this!
the chip he refer to (89C52) is a '51 derivative, not an AVR
Erik