<!DOCTYPE SimulIDE>

<parts>
<port name="PORTA" pins="8" outreg="PORTA" inreg="PINA" dirreg="DDRA">
    <interrupt name="PCINT0" mask="PCMSK0"/>
</port>

<port name="PORTB" pins="4" outreg="PORTB" inreg="PINB" dirreg="DDRB"
    clockpins="PORTB0,PORTB1" resetpin="PORTB3">
    <interrupt name="PCINT1" mask="PCMSK1"/>
    <extint    name="INT0" pin="PORTB2" configbits="ISC00,ISC01"/>
</port>

  <timer name="TIMER0" type="800" configregsA="TCCR0A" configregsB="TCCR0B"
                       counter="TCNT0"
                       clockpin="PORTA3"
                       interrupt="T0_OVF"
                       prescalers="0,1,8,64,256,1024,EXT_F,EXT_R" prselect="CS00,CS01,CS02" >

    <ocunit name="OC0A" pin="PORTB2" ocreg="OCR0A" bits="COM0A0,COM0A1" interrupt="T0COA" />
    <ocunit name="OC0B" pin="PORTA7" ocreg="OCR0B" bits="COM0B0,COM0B1" interrupt="T0COB" />
  </timer>

  <timer name="TIMER1" type="160" configregsA="TCCR1A" configregsB="TCCR1B"
                       counter="TCNT1L,TCNT1H"
                       clockpin="PORTA4"
                       interrupt="T1_OVF"
                       prescalers="0,1,8,64,256,1024,EXT_F,EXT_R" prselect="CS10,CS11,CS12" >

    <ocunit name="OC1A" pin="PORTA6" ocreg="OCR1AL,OCR1AH" bits="COM1A0,COM1A1" interrupt="T1COA" />
    <ocunit name="OC1B" pin="PORTA5" ocreg="OCR1BL,OCR1BH" bits="COM1B0,COM1B1" interrupt="T1COB" />
  </timer>

  <adc name="ADC" type="02" bits="10" configregsA="ADCSRA" configregsB="ADCSRB"
                  dataregs="ADCL,ADCH"
                  multiplex="ADMUX"
                  interrupt="ADC"
                  prescalers="2,2,4,8,16,32,64,128"
                  adcpins="PORTA0,PORTA1,PORTA2,PORTA3,PORTA4,PORTA5,PORTA6,PORTA7"
                  vrefpins="PORTA0"/>

  <wdt name="WDT00" configregsA="WDTCSR"
                    interrupt="WDT"
                    prescalers="512,256,128,64,32,16,8,4,2,1,1,1,1,1,1,1"/>

  <rom name="ROM" configregsA="EECR"
                   dataregs="EEDR"
                   addressreg="EEARL"
                   interrupt="EEPR" />
    
  <comp name="COMP" configregsA="ACSR" configbitsB="AIN0D,AIN1D"
                    interrupt="ACOMP"
                    pins="PORTA1,PORTA2"/>
</parts>
