[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/diy/ - Do It Yourself

Search:


View post   

>> No.1808809 [View]
File: 44 KB, 874x792, attiny_8bit_block_diagram.png [View same] [iqdb] [saucenao] [google]
1808809

>>1808802
each output has it's own output compare register (rtfm) but two channels share one timer

What this means is that two channels will have same period (let's say 20ms) but OCR0A can be set to 2ms and OCR0B can be set to 18ms
So end result is you get same period on two channels but two separate PWMs. Same applies to 16bit counter as well

Navigation
View posts[+24][+48][+96]