[ 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.1276577 [View]
File: 308 KB, 961x680, Atmega644-pinout.png [View same] [iqdb] [saucenao] [google]
1276577

>>1276571
I essentially have 6 pairs of motors, and only one motor from each pair needs to run at any time.
I was thinking, if OCnx was addressable, I could have one motor from each pair be on PB4, PB5, PD4, PD5, PD6, and PD7, and then for the other 6 motors I could just read the value from their partner's OCnx register and then write that to their pin.

Although, if I understand you correctly, OCnx only outputs to it's respective pin and cannot be read by the microcontroller internally, yes?
In that case I might have to incorporate a multiplexer then, although my team wants to just implement the PWM in software.

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