<!DOCTYPE SimulIDE>

<parts>
  <port name="PORTB" pins="6" outreg="PORTB" inreg="PINB" dirreg="DDRB"
      clockpins="PORTB3" resetpin="PORTB5">
    <interrupt name="PCINT" mask="PCMSK"/>
    <extint    name="INT0" pin="PORTB1" configbits="ISC00,ISC01"/>
  </port>
    
  <timer name="TIMER0" type="800" configregsA="TCCR0A" configregsB="TCCR0B"
                       counter="TCNT0"
                       clockpin="PORTB2"
                       interrupt="T0_OVF"
                       prescalers="0,1,8,64,256,1024,EXT_F,EXT_R" prselect="CS00,CS01,CS02" >

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

  <adc name="ADC" type="10" bits="10" configregsA="ADCSRA" configregsB="ADCSRB"
                  dataregs="ADCL,ADCH"
                  multiplex="ADMUX"
                  interrupt="ADC"
                  prescalers="2,2,4,8,16,32,64,128"
                  adcpins="PORTB5,PORTB2,PORTB4,PORTB3" />

  <wdt name="WDT00" configregsA="WDTCR"
                    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="PORTB0,PORTB1"/>
</parts>
