I wanted to build and program a dual DC motor controller with tiny2313, but the 2k flash is too little for the code I want to put in. I had to program it in Bascom to be able to fit a shrinked down version. I will be using tiny861 instead, so I can use the I2C communication, PID and other features I need.
Here is the pinout of the module I built using tiny2313:
' TINY2313 Dual DC Motor Controller Pinout
'
' Module Arduino Pin Tiny2313 Pin Arduino Module
' +-\/-+
' Reset PA2 1| |29 VCC
' RX (D 0) PD0 2| |19 PB7 (D 16) SCL (SKC )
' TX (D 1) PD1 3| |18 PB6 (D 15) (MISO)
' Xtal (D 2) PA1 4| |17 PB5 (D 14) SDA (MOSI)
' Xtal (D 3) PA0 5| |16 PB4 (D 13)* M1A (OC1B)
' Enc1A # (D 4) PD2 6| |15 PB3 (D 12)* M2A (OC1A)
' Enc2A # (D 5) PD3 7| |14 PB2 (D 11)* M1B
' Enc1B (D 6) PD4 8| |13 PB1 (D 10) M2B
' Enc2B *(D 7) PD5 9| |12 PB0 (D 9) M2En
' GND 10| |11 PD6 (D

M1En
' +----+
'
' * indicates PWM port
' # indicates external interrupt
'
' M1 = RighttMotor
' M2 = LeftMotor
' E1 = RightEncoder
' E2 = LeftEncoder
'