سلام دوستانم :sad: چطوری میتونم شمارش منفی با انکودر افزایشی در بسکام داشته باشم؟ممنون میشم زود جواب بدین. :redface:
اطلاعیه
Collapse
No announcement yet.
کمک:شمارش منفی با انکودر افزایشی
Collapse
X
-
پاسخ : کمک:شمارش منفی با انکودر افزایشی
PWM mode:
When the PWM (PulseWidthModulation) mode is selected the Timer/Counter 1 can be used as an 8,9 or 10bit, free running PWM. Timer/Counter 1 acts as an up/down counter that is counting up from 0x0000 to the selected top (8bit -> 0x00FF, 9bit -> 0x01FF, 10bit -> 0x03FF), where it turns and counts down to 0x0000 and repeats this cycle endlessly. When the counter value matches the content of the compare register (OCR1A, OCR1B) it has an effect on the output pins OCA1 and OCB1 as follows:
تنها موردی که همه آدما یقین دارن خدا در حقش زیاد لطف کرده
داشتن عقله زیادتر از دیگر آدم ها است
دیدگاه
دیدگاه