<AVRPART>	
  <ADMIN>
    <PART_NAME>ATmega324</PART_NAME>
    <SPEED>16MHZ</SPEED>
    <SIGNATURE>
      <ADDR000>0x1E</ADDR000>
      <ADDR001>0x95</ADDR001>
      <ADDR002>0x11</ADDR002>
    </SIGNATURE>   
  </ADMIN>
  <PROGRAMMING>
    <ISPInterface>
      <FuseReadMask>0xff,0xdf</FuseReadMask>
      <FuseProgMask>0xff,0xdf</FuseProgMask>
      <FuseWarning>1,0x40,0x40,WARNING! These fuse settings will disable the JTAG interface!</FuseWarning>
      <FuseWarning>1,0x20,0x20,WARNING! These fuse settings will disable the ISP interface!</FuseWarning>
    </ISPInterface>
    <HVInterface>
      <FuseWarning>1,0x40,0x40,WARNING! These fuse settings will disable the JTAG interface!</FuseWarning>
      <FuseWarning>1,0x20,0x20,WARNING! These fuse settings will disable the ISP interface!</FuseWarning>
    </HVInterface>
    <JTAGInterface>
      <FuseWarning>1,0x40,0x40,WARNING! These fuse settings will disable the JTAG interface!</FuseWarning>
      <FuseWarning>1,0x20,0x20,WARNING! These fuse settings will disable the ISP interface!</FuseWarning>
    </JTAGInterface>  
    <PRGISP>  
        <ZIF_NO>2</ZIF_NO>   
    </PRGISP>
    <PRGHV>
        <ZIF_NO>5</ZIF_NO>   
    </PRGHV>
    <TYPE>1</TYPE> 
    <SUBCLASS>4</SUBCLASS> 
    <OscCal>
      <OCEntry>0x00,8.0 MHz</OCEntry>
    </OscCal>
    <PROG_FLASH>32768</PROG_FLASH>
    <EEPROM>1024</EEPROM>    
    <FlashPageSize>128</FlashPageSize>
    <EepromPageSize>4</EepromPageSize>
    <WD_Flash>9</WD_Flash>
    <WD_EEPROM>15</WD_EEPROM>
    <WD_ERASE>50</WD_ERASE>
    <WD_FUSE>9</WD_FUSE>
    <WD_LOCK>9</WD_LOCK>
    <WD_RESET>100</WD_RESET> 
    <FuseRCMD0>0x50000000</FuseRCMD0>    
    <FuseRCMD1>0x58080000</FuseRCMD1>    
    <FuseRCMD1>0x50080000</FuseRCMD1>    
    <FuseRPos>3</FuseRPos>    
    <FuseWCMD0>0xaca00000</FuseWCMD0>    
    <FuseWCMD1>0xaca80000</FuseWCMD1>    
    <FuseWCMD1>0xaca40000</FuseWCMD1>    
    <FuseWPos>3</FuseWPos>    
    <LockRCMD>0x58000000</LockRCMD>    
    <LockRPos>3</LockRPos>    
    <LockWCMD>0xace00000</LockWCMD>    
    <LockWPos>3</LockWPos>  
    <fusevalue>0xff9972</fusevalue>  
    <FuseMask>0xffdfff</FuseMask>        
  </PROGRAMMING>
	<LOCKBIT>
		<ICON/>
		<ID/>
		<TEXT>[LB1 = 1 :  LB2 = 1] No memory lock features enabled. [LB1 = 0 :  LB2 = 1] Further programming of Flash and EEPROM is enabled. [LB1 = 0 :  LB2 = 0] Same as previous, but verify is also disabled</TEXT>
		<NMB_LOCK_BITS>6</NMB_LOCK_BITS>
		<NMB_TEXT>11</NMB_TEXT>
		<TEXT1>
			<MASK>0x03</MASK>
			<VALUE>0x03</VALUE>
			<TEXT>Mode 1: No memory lock features enabled</TEXT>
		</TEXT1>
		<TEXT2>
			<MASK>0x03</MASK>
			<VALUE>0x02</VALUE>
			<TEXT>Mode 2: Further programming disabled</TEXT>
		</TEXT2>
		<TEXT3>
			<MASK>0x03</MASK>
			<VALUE>0x00</VALUE>
			<TEXT>Mode 3: Further programming and verification disabled</TEXT>
		</TEXT3>
		<TEXT4>
			<MASK>0x0C</MASK>
			<VALUE>0x0C</VALUE>
			<TEXT>Application Protection Mode 1: No lock on SPM and LPM in Application Section</TEXT>
		</TEXT4>
		<TEXT5>
			<MASK>0x0C</MASK>
			<VALUE>0x08</VALUE>
			<TEXT>Application Protection Mode 2: SPM prohibited in Application Section</TEXT>
		</TEXT5>
		<TEXT6>
			<MASK>0x0C</MASK>
			<VALUE>0x00</VALUE>
			<TEXT>Application Protection Mode 3: LPM and SPM prohibited in Application Section</TEXT>
		</TEXT6>
		<TEXT7>
			<MASK>0x0C</MASK>
			<VALUE>0x04</VALUE>
			<TEXT>Application Protection Mode 4: LPM prohibited in Application Section</TEXT>
		</TEXT7>
		<TEXT8>
			<MASK>0x30</MASK>
			<VALUE>0x30</VALUE>
			<TEXT>Boot Loader Protection Mode 1: No lock on SPM and LPM in Boot Loader Section</TEXT>
		</TEXT8>
		<TEXT9>
			<MASK>0x30</MASK>
			<VALUE>0x20</VALUE>
			<TEXT>Boot Loader Protection Mode 2: SPM prohibited in Boot Loader Section</TEXT>
		</TEXT9>
		<TEXT10>
			<MASK>0x30</MASK>
			<VALUE>0x00</VALUE>
			<TEXT>Boot Loader Protection Mode 3: LPM and SPM prohibited in Boot Loader Section</TEXT>
		</TEXT10>
		<TEXT11>
			<MASK>0x30</MASK>
			<VALUE>0x10</VALUE>
			<TEXT>Boot Loader Protection Mode 4: LPM prohibited in Boot Loader Section</TEXT>
		</TEXT11>
		<LOCKBIT0>
			<NAME>LB1</NAME>
			<TEXT>Lock bit</TEXT>
		</LOCKBIT0>
		<LOCKBIT1>
			<NAME>LB2</NAME>
			<TEXT>Lock bit</TEXT>
		</LOCKBIT1>
		<LOCKBIT2>
			<NAME>BLB01</NAME>
			<TEXT>Boot Lock bit</TEXT>
		</LOCKBIT2>
		<LOCKBIT3>
			<NAME>BLB02</NAME>
			<TEXT>Boot Lock bit</TEXT>
		</LOCKBIT3>
		<LOCKBIT4>
			<NAME>BLB11</NAME>
			<TEXT>Boot lock bit</TEXT>
		</LOCKBIT4>
		<LOCKBIT5>
			<NAME>BLB12</NAME>
			<TEXT>Boot lock bit</TEXT>
		</LOCKBIT5>
	</LOCKBIT>
	<FUSE>
		<LIST>[LOW:HIGH]</LIST>
		<ID/>
		<ICON/>
		<TEXT/>
		<LOW>
			<NMB_FUSE_BITS>6</NMB_FUSE_BITS>
			<FUSE7>
				<NAME>BODLEVEL</NAME>
				<TEXT>Brown out detector trigger level</TEXT>
				<DEFAULT>1</DEFAULT>
			</FUSE7>
			<FUSE6>
				<NAME>BODEN</NAME>
				<TEXT>Brown out detector enable</TEXT>
				<DEFAULT>1</DEFAULT>
			</FUSE6>
			<FUSE3>
				<NAME>CKSEL3</NAME>
				<TEXT>Select Clock Source</TEXT>
				<DEFAULT>0</DEFAULT>
			</FUSE3>
			<FUSE2>
				<NAME>CKSEL2</NAME>
				<TEXT>Select Clock Source</TEXT>
				<DEFAULT>0</DEFAULT>
			</FUSE2>
			<FUSE1>
				<NAME>CKSEL1</NAME>
				<TEXT>Select Clock Source</TEXT>
				<DEFAULT>0</DEFAULT>
			</FUSE1>
			<FUSE0>
				<NAME>CKSEL0</NAME>
				<TEXT>Select Clock Source</TEXT>
				<DEFAULT>1</DEFAULT>
			</FUSE0>
			<NMB_TEXT>19</NMB_TEXT>
			<TEXT1>
				<MASK>0x80</MASK>
				<VALUE>0x00</VALUE>
				<TEXT>Brown-out detection level at VCC=4.0 V</TEXT>
			</TEXT1>
			<TEXT2>
				<MASK>0x80</MASK>
				<VALUE>0x80</VALUE>
				<TEXT>Brown-out detection level at VCC=2.7 V</TEXT>
			</TEXT2>
			<TEXT3>
				<MASK>0x40</MASK>
				<VALUE>0x00</VALUE>
				<TEXT>Brown-out detection enabled</TEXT>
			</TEXT3>
			<TEXT4>
				<MASK>0x0F</MASK>
				<VALUE>0x00</VALUE>
				<TEXT>CKSEL=0000 External Clock fast rising power</TEXT>
			</TEXT4>
			<TEXT5>
				<MASK>0x0F</MASK>
				<VALUE>0x01</VALUE>
				<TEXT>CKSEL=0001 External Clock BOD enabled</TEXT>
			</TEXT5>
			<TEXT6>
				<MASK>0x0F</MASK>
				<VALUE>0x02</VALUE>
				<TEXT>CKSEL=0010 Internal RC Ocsillator slowly rising power ; default value</TEXT>
			</TEXT6>
			<TEXT7>
				<MASK>0x0F</MASK>
				<VALUE>0x03</VALUE>
				<TEXT>CKSEL=0011 Internal RC Ocsillator fast rising power</TEXT>
			</TEXT7>
			<TEXT8>
				<MASK>0x0F</MASK>
				<VALUE>0x04</VALUE>
				<TEXT>CKSEL=0100 Internal RC Oscillator BOD enabled</TEXT>
			</TEXT8>
			<TEXT9>
				<MASK>0x0F</MASK>
				<VALUE>0x05</VALUE>
				<TEXT>CKSEL=0101 External RC Oscillator slowly rising power</TEXT>
			</TEXT9>
			<TEXT10>
				<MASK>0x0F</MASK>
				<VALUE>0x06</VALUE>
				<TEXT>CKSEL=0110 External RC Oscillator fast rising power</TEXT>
			</TEXT10>
			<TEXT11>
				<MASK>0x0F</MASK>
				<VALUE>0x07</VALUE>
				<TEXT>CKSEL=0111 External RC Oscillator BOD enabled</TEXT>
			</TEXT11>
			<TEXT12>
				<MASK>0x0F</MASK>
				<VALUE>0x08</VALUE>
				<TEXT>CKSEL=1000 External Low-Frequency Crystal</TEXT>
			</TEXT12>
			<TEXT13>
				<MASK>0x0F</MASK>
				<VALUE>0x09</VALUE>
				<TEXT>CKSEL=1001 External Low-Frequency Crystal</TEXT>
			</TEXT13>
			<TEXT14>
				<MASK>0x0F</MASK>
				<VALUE>0x0A</VALUE>
				<TEXT>CKSEL=1010 Crystal Oscillator slowly rising power</TEXT>
			</TEXT14>
			<TEXT15>
				<MASK>0x0F</MASK>
				<VALUE>0x0B</VALUE>
				<TEXT>CKSEL=1011 Crystal Oscillator fast rising power</TEXT>
			</TEXT15>
			<TEXT16>
				<MASK>0x0F</MASK>
				<VALUE>0x0C</VALUE>
				<TEXT>CKSEL=1100 Crystal Oscillator BOD enabled</TEXT>
			</TEXT16>
			<TEXT17>
				<MASK>0x0F</MASK>
				<VALUE>0x0D</VALUE>
				<TEXT>CKSEL=1101 Ceramic Resonator/External Clock slowly rising power</TEXT>
			</TEXT17>
			<TEXT18>
				<MASK>0x0F</MASK>
				<VALUE>0x0E</VALUE>
				<TEXT>CKSEL=1110 Ceramic Resonator fast rising power</TEXT>
			</TEXT18>
			<TEXT19>
				<MASK>0x0F</MASK>
				<VALUE>0x0F</VALUE>
				<TEXT>CKSEL=1111 Ceramic Resonator BOD enabled</TEXT>
			</TEXT19>
		</LOW>
		<HIGH>
			<NMB_FUSE_BITS>8</NMB_FUSE_BITS>
			<FUSE7>
				<NAME>OCDEN</NAME>
				<TEXT>Enable OCD</TEXT>
				<DEFAULT>1</DEFAULT>
			</FUSE7>
			<FUSE6>
				<NAME>JTAGEN</NAME>
				<TEXT>Enable JTAG</TEXT>
				<DEFAULT>0</DEFAULT>
			</FUSE6>
			<FUSE5>
				<NAME>SPIEN</NAME>
				<TEXT>Enable Serial programming and Data Downloading</TEXT>
				<DEFAULT>0</DEFAULT>
			</FUSE5>
			<FUSE3>
				<NAME>EESAVE</NAME>
				<TEXT>EEPROM memory is preserved through chip erase</TEXT>
				<DEFAULT>1</DEFAULT>
			</FUSE3>
			<FUSE2>
				<NAME>BOOTSZ1</NAME>
				<TEXT>Select Boot Size</TEXT>
				<DEFAULT>0</DEFAULT>
			</FUSE2>
			<FUSE1>
				<NAME>BOOTSZ0</NAME>
				<TEXT>Select Boot Size</TEXT>
				<DEFAULT>0</DEFAULT>
			</FUSE1>
			<FUSE0>
				<NAME>BOOTRST</NAME>
				<TEXT>Select Reset Vector</TEXT>
				<DEFAULT>1</DEFAULT>
			</FUSE0>
			<NMB_TEXT>9</NMB_TEXT>
			<TEXT1>
				<MASK>0x80</MASK>
				<VALUE>0x00</VALUE>
				<TEXT>On-Chip Debug Enabled</TEXT>
			</TEXT1>
			<TEXT2>
				<MASK>0x40</MASK>
				<VALUE>0x00</VALUE>
				<TEXT>JTAG Enabled</TEXT>
			</TEXT2>
			<TEXT3>
				<MASK>0x20</MASK>
				<VALUE>0x00</VALUE>
				<TEXT>Serial program downloading (SPI) enabled</TEXT>
			</TEXT3>
			<TEXT4>
				<MASK>0x08</MASK>
				<VALUE>0x00</VALUE>
				<TEXT>Preserve EEPROM memory during through Chip Erase Cycle</TEXT>
			</TEXT4>
			<TEXT5>
				<MASK>0x06</MASK>
				<VALUE>0x06</VALUE>
				<TEXT>Boot Flash section size=256 words Boot start address=$3F00 ; default value</TEXT>
			</TEXT5>
			<TEXT6>
				<MASK>0x06</MASK>
				<VALUE>0x04</VALUE>
				<TEXT>Boot Flash section size=512 words Boot start address=$3E00</TEXT>
			</TEXT6>
			<TEXT7>
				<MASK>0x06</MASK>
				<VALUE>0x02</VALUE>
				<TEXT>Boot Flash section size=1024 words Boot start address=$3C00</TEXT>
			</TEXT7>
			<TEXT8>
				<MASK>0x06</MASK>
				<VALUE>0x00</VALUE>
				<TEXT>Boot Flash section size=2048 words Boot start address=$3800</TEXT>
			</TEXT8>
			<TEXT9>
				<MASK>0x01</MASK>
				<VALUE>0x00</VALUE>
				<TEXT>Boot Reset vector Enabled (default address=$0000)</TEXT>
			</TEXT9>
		</HIGH>
	</FUSE>
</AVRPART>
