Part Number Hot Search : 
2A182 CTW135 DSPIC3 1N256 NTE1711 17HUK4 PA104B DST5200
Product Description
Full Text Search
 

To Download ATMEGA16L Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1 features ? high-performance, low-power avr ? 8-bit microcontroller  advanced risc architecture ? 131 powerful instructions ? most single-clock cycle execution ? 32 x 8 general purpose working registers ? fully static operation ? up to 16 mips throughput at 16 mhz ? on-chip 2-cycle multiplier  nonvolatile program and data memories ? 16k bytes of in-system self-programmable flash endurance: 10,000 write/erase cycles ? optional boot code section with independent lock bits in-system programming by on-chip boot program true read-while-write operation ? 512 bytes eeprom endurance: 100,000 write/erase cycles ? 1k byte internal sram ? programming lock for software security  jtag (ieee std. 1149.1 compliant) interface ? boundary-scan capabilities according to the jtag standard ? extensive on-chip debug support ? programming of flash, eeprom, fuses, and lock bits through the jtag interface  peripheral features ? two 8-bit timer/counters with separate prescalers and compare modes ? one 16-bit timer/counter with separate prescaler, compare mode, and capture mode ? real time counter with separate oscillator ? four pwm channels ? 8-channel, 10-bit adc 8 single-ended channels 7 differential channels in tqfp package only 2 differential channels with programmable gain at 1x, 10x, or 200x ? byte-oriented two-wire serial interface ? programmable serial usart ? master/slave spi serial interface ? programmable watchdog timer with separate on-chip oscillator ? on-chip analog comparator  special microcontroller features ? power-on reset and programmable brown-out detection ? internal calibrated rc oscillator ? external and internal interrupt sources ? six sleep modes: idle, adc noise reduction, power-save, power-down, standby and extended standby  i/o and packages ? 32 programmable i/o lines ? 40-pin pdip, 44-lead tqfp, and 44-pad mlf  operating voltages ? 2.7 - 5.5v for ATMEGA16L ? 4.5 - 5.5v for atmega16  speed grades ? 0 - 8 mhz for ATMEGA16L ? 0 - 16 mhz for atmega16  power consumption @ 1 mhz, 3v, and 25 c for ATMEGA16L ? active: 1.1 ma ? idle mode: 0.35 ma ? power-down mode: < 1 a 8-bit microcontroller with 16k bytes in-system programmable flash atmega16 ATMEGA16L preliminary summary rev. 2466fs?avr?02/03 n ote : thi s i s a summary d ocume nt. a comp l ete d ocumen t i s ava ila ble on our we b site at www.atmel.com .
2 atmega16(l) 2466fs?avr?02/03 pin configurations figure 1. pinouts atmega16 disclaimer typical values contained in this data sheet are based on simulations and characteriza- tion of other avr microcontrollers manufactured on the same process technology. min and max values will be available after the device is characterized. (xck/t0) pb0 (t1) pb1 (int2/ain0) pb2 (oc0/ain1) pb3 (ss) pb4 (mosi) pb5 (miso) pb6 (sck) pb7 reset vcc gnd xtal2 xtal1 (rxd) pd0 (txd) pd1 (int0) pd2 (int1) pd3 (oc1b) pd4 (oc1a) pd5 (icp) pd6 pa0 (adc0) pa1 (adc1) pa2 (adc2) pa3 (adc3) pa4 (adc4) pa5 (adc5) pa6 (adc6) pa7 (adc7) aref gnd avcc pc7 (tosc2) pc6 (tosc1) pc5 (tdi) pc4 (tdo) pc3 (tms) pc2 (tck) pc1 (sda) pc0 (scl) pd7 (oc2) pa4 (adc4) pa5 (adc5) pa6 (adc6) pa7 (adc7) aref gnd avcc pc7 (tosc2) pc6 (tosc1) pc5 (tdi) pc4 (tdo) (mosi) pb5 (miso) pb6 (sck) pb7 reset vcc gnd xtal2 xtal1 (rxd) pd0 (txd) pd1 (int0) pd2 (int1) pd3 (oc1b) pd4 (oc1a) pd5 (icp) pd6 (oc2) pd7 vcc gnd (scl) pc0 (sda) pc1 (tck) pc2 (tms) pc3 pb4 (ss) pb3 (ain1/oc0) pb2 (ain0/int2) pb1 (t1) pb0 (xck/t0) gnd vcc pa0 (adc0) pa1 (adc1) pa2 (adc2) pa3 (adc3) pdip tqfp/mlf
3 atmega16(l) 2466fs?avr?02/03 overview the atmega16 is a low-power cmos 8-bit microcontroller based on the avr enhanced risc architecture. by executing powerful instructions in a single clock cycle, the atmega16 achieves throughputs approaching 1 mips per mhz allowing the system designer to optimize power consumption versus processing speed. block diagram figure 2. block diagram internal oscillator oscillator watchdog timer mcu ctrl. & timing oscillator timers/ counters interrupt unit stack pointer eeprom sram status register usart program counter program flash instruction register instruction decoder programming logic spi adc interface comp. interface porta drivers/buffers porta digital interface general purpose registers x y z alu + - portc drivers/buffers portc digital interface portb digital interface portb drivers/buffers portd digital interface portd drivers/buffers xtal1 xtal2 reset control lines vcc gnd mux & adc aref pa0 - pa7 pc0 - pc7 pd0 - pd7 pb0 - pb7 avr cpu twi avcc internal calibrated oscillator
4 atmega16(l) 2466fs?avr?02/03 the avr core combines a rich instruction set with 32 general purpose working registers. all the 32 registers are directly connected to the arithmetic logic unit (alu), allowing two independent registers to be accessed in one single instruction executed in one clock cycle. the resulting architecture is more code efficient while achieving throughputs up to ten times faster than conventional cisc microcontrollers. the atmega16 provides the following features: 16k bytes of in-system programmable flash program memory with read-while-w rite capabilities, 512 bytes eeprom, 1k byte sram, 32 general purpose i/o lines, 32 general purpose working registers, a jtag interface for boundary-scan, on-chip debugging support and programming, three flexible timer/counters with compare modes, internal and external interrupts, a serial programmable usart, a byte oriented two-wire serial interface, an 8-channel, 10-bit adc with optional differential input stage with programmable gain (tqfp package only), a programmable watchdog timer wi th internal oscillator, an spi serial port, and six software selectable power saving modes. the idle mode stops the cpu while allowing the usart, two-wire interface, a/d converter, sram, timer/counters, spi port, and interrupt system to continue functioning. the power-down mode saves the register con- tents but freezes the oscillator, disabling all other chip functions until the next external interrupt or hardware reset. in power-save mode, the asynchronous timer continues to run, allowing the user to maintain a timer base while the rest of the device is sleeping. the adc noise reduction mode stops the cpu and all i/o modules except asynchro- nous timer and adc, to minimize switching noise during adc conversions. in standby mode, the crystal/resonator oscillator is running while the rest of the device is sleeping. this allows very fast start-up combined with low-power consumption. in extended standby mode, both the main oscillator and the asynchronous timer continue to run. the device is manufactured using atmel?s high density nonvolatile memory technology. the on-chip isp flash allows the program memory to be reprogrammed in-system through an spi serial interface, by a conventional nonvolatile memory programmer, or by an on-chip boot program running on the avr core. the boot program can use any interface to download the application program in the application flash memory. soft- ware in the boot flash section will continue to run while the application flash section is updated, providing true read-while-write operation. by combining an 8-bit risc cpu with in-system self-programmable flash on a monolithic chip, the atmel atmega16 is a powerful microcontroller that provides a highly-flexible and cost-effective solution to many embedded control applications. the atmega16 avr is supported with a fu ll suite of program and system development tools including: c compilers, macro assemblers, program debugger/simulators, in-cir- cuit emulators, and evaluation kits. pin descriptions vcc digital supply voltage. gnd ground. port a (pa7..pa0) port a serves as the analog inputs to the a/d converter. port a also serves as an 8-bit bi-directional i/o port, if the a/d converter is not used. port pins can provide internal pull-up resistors (selected for each bit). the port a output buffers have symmetrical drive characteristics with both high sink and source capability. when pins pa0 to pa7 are used as inputs and are externally pulled low, they will source current if the internal pull-up resistors are activated. the port a pins are tri-stated when a reset condition becomes active, even if the clock is not running.
5 atmega16(l) 2466fs?avr?02/03 port b (pb7..pb0) port b is an 8-bit bi-directional i/o port with internal pull-up resistors (selected for each bit). the port b output buffers have symmetrical drive characteristics with both high sink and source capability. as inputs, port b pins that are externally pulled low will source current if the pull-up resistors are activated. the port b pins are tri-stated when a reset condition becomes active, even if the clock is not running. port b also serves the functions of various special features of the atmega16 as listed on page 56. port c (pc7..pc0) port c is an 8-bit bi-directional i/o port with internal pull-up resistors (selected for each bit). the port c output buffers have symmetrical drive characteristics with both high sink and source capability. as inputs, port c pins that are externally pulled low will source current if the pull-up resistors are activated. the port c pins are tri-stated when a reset condition becomes active, even if the clock is not running. if the jtag interface is enabled, the pull-up resistors on pins pc5(tdi), pc3(tms) and pc2(tck) will be acti- vated even if a reset occurs. port c also serves the functions of the jtag interface and other special features of the atmega16 as listed on page 59. port d (pd7..pd0) port d is an 8-bit bi-directional i/o port with internal pull-up resistors (selected for each bit). the port d output buffers have symmetrical drive characteristics with both high sink and source capability. as inputs, port d pins that are externally pulled low will source current if the pull-up resistors are activated. the port d pins are tri-stated when a reset condition becomes active, even if the clock is not running. port d also serves the functions of various special features of the atmega16 as listed on page 61. reset reset input. a low level on this pin for longer than the minimum pulse length will gener- ate a reset, even if the clock is not running. the minimum pulse length is given in table 15 on page 36. shorter pulses are not guaranteed to generate a reset. xtal1 input to the inverting oscillator amplifier and input to the internal clock operating circuit. xtal2 output from the inverting oscillator amplifier. avcc avcc is the supply voltage pin for port a and the a/d converter. it should be externally connected to v cc , even if the adc is not used. if the adc is used, it should be con- nected to v cc through a low-pass filter. aref aref is the analog reference pin for the a/d converter. about code examples this documentation contains simple code examples that briefly show how to use various parts of the device. these code examples assume that the part specific header file is included before compilation. be aware that not all c compiler vendors include bit defini- tions in the header files and interrupt handling in c is compiler dependent. please confirm with the c compiler documentation for more details.
6 atmega16(l) 2466fs?avr?02/03 register summary address name bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 page $3f ($5f) sreg i t h s v n z c 7 $3e ($5e) sph ? ? ? ? ? sp10 sp9 sp8 10 $3d ($5d) spl sp7 sp6 sp5 sp4 sp3 sp2 sp1 sp0 10 $3c ($5c) ocr0 timer/counter0 output compare register 82 $3b ($5b) gicr int1 int0 int2 ? ? ? ivsel ivce 46, 66 $3a ($5a) gifr intf1 intf0 intf2 ? ? ? ? ?67 $39 ($59) timsk ocie2 toie2 ticie1 ocie1a ocie1b toie1 ocie0 toie0 82, 113, 131 $38 ($58) tifr ocf2 tov2 icf1 ocf1a ocf1b tov1 ocf0 tov0 83, 114, 132 $37 ($57) spmcr spmie rwwsb ? rwwsre blbset pgwrt pgers spmen 250 $36 ($56) twcr twint twea twsta twsto twwc twen ? twie 179 $35 ($55) mcucr sm2 se sm1 sm0 isc11 isc10 isc01 isc00 30, 65 $34 ($54) mcucsr jtd isc2 ? jtrf wdrf borf extrf porf 39, 66, 230 $33 ($53) tccr0 foc0 wgm00 com01 com00 wgm01 cs02 cs01 cs00 80 $32 ($52) tcnt0 timer/counter0 (8 bits) 82 $31 (1) ($51) (1) osccal oscillator calibration register 28 ocdr on-chip debug register 226 $30 ($50) sfior adts2 adts1 adts0 ? acme pud psr2 psr10 55,85,133,200,220 $2f ($4f) tccr1a com1a1 com1a0 com1b1 com1b0 foc1a foc1b wgm11 wgm10 108 $2e ($4e) tccr1b icnc1 ices1 ? wgm13 wgm12 cs12 cs11 cs10 111 $2d ($4d) tcnt1h timer/counter1 ? counter register high byte 112 $2c ($4c) tcnt1l timer/counter1 ? counter register low byte 112 $2b ($4b) ocr1ah timer/counter1 ? output compare register a high byte 112 $2a ($4a) ocr1al timer/counter1 ? output compare register a low byte 112 $29 ($49) ocr1bh timer/counter1 ? output compare register b high byte 112 $28 ($48) ocr1bl timer/counter1 ? output compare register b low byte 112 $27 ($47) icr1h timer/counter1 ? input capture register high byte 113 $26 ($46) icr1l timer/counter1 ? input capture register low byte 113 $25 ($45) tccr2 foc2 wgm20 com21 com20 wgm21 cs22 cs21 cs20 126 $24 ($44) tcnt2 timer/counter2 (8 bits) 128 $23 ($43) ocr2 timer/counter2 output compare register 128 $22 ($42) assr ? ? ? ? as2 tcn2ub ocr2ub tcr2ub 129 $21 ($41) wdtcr ? ? ? wdtoe wde wdp2 wdp1 wdp0 41 $20 (2) ($40) (2) ubrrh ursel ? ? ? ubrr[11:8] 166 ucsrc ursel umsel upm1 upm0 usbs ucsz1 ucsz0 ucpol 164 $1f ($3f) eearh ? ? ? ? ? ? ? eear8 17 $1e ($3e) eearl eeprom address register low byte 17 $1d ($3d) eedr eeprom data register 17 $1c ($3c) eecr ? ? ? ? eerie eemwe eewe eere 17 $1b ($3b) porta porta7 porta6 porta5 porta4 porta3 porta2 porta1 porta0 63 $1a ($3a) ddra dda7 dda6 dda5 dda4 dda3 dda2 dda1 dda0 63 $19 ($39) pina pina7 pina6 pina5 pina4 pina3 pina2 pina1 pina0 63 $18 ($38) portb portb7 portb6 portb5 portb4 portb3 portb2 portb1 portb0 63 $17 ($37) ddrb ddb7 ddb6 ddb5 ddb4 ddb3 ddb2 ddb1 ddb0 63 $16 ($36) pinb pinb7 pinb6 pinb5 pinb4 pinb3 pinb2 pinb1 pinb0 64 $15 ($35) portc portc7 portc6 portc5 portc4 portc3 portc2 portc1 portc0 64 $14 ($34) ddrc ddc7 ddc6 ddc5 ddc4 ddc3 ddc2 ddc1 ddc0 64 $13 ($33) pinc pinc7 pinc6 pinc5 pinc4 pinc3 pinc2 pinc1 pinc0 64 $12 ($32) portd portd7 portd6 portd5 portd4 portd3 portd2 portd1 portd0 64 $11 ($31) ddrd ddd7 ddd6 ddd5 ddd4 ddd3 ddd2 ddd1 ddd0 64 $10 ($30) pind pind7 pind6 pind5 pind4 pind3 pind2 pind1 pind0 64 $0f ($2f) spdr spi data register 140 $0e ($2e) spsr spif wcol ? ? ? ? ? spi2x 140 $0d ($2d) spcr spie spe dord mstr cpol cpha spr1 spr0 138 $0c ($2c) udr usart i/o data register 161 $0b ($2b) ucsra rxc txc udre fe dor pe u2x mpcm 162 $0a ($2a) ucsrb rxcie txcie udrie rxen txen ucsz2 rxb8 txb8 163 $09 ($29) ubrrl usart baud rate register low byte 166 $08 ($28) acsr acd acbg aco aci acie acic acis1 acis0 200 $07 ($27) admux refs1 refs0 adlar mux4 mux3 mux2 mux1 mux0 216 $06 ($26) adcsra aden adsc adate adif adie adps2 adps1 adps0 218 $05 ($25) adch adc data register high byte 219 $04 ($24) adcl adc data register low byte 219 $03 ($23) twdr two-wire serial interface data register 181 $02 ($22) twar twa6 twa5 twa4 twa3 twa2 twa1 twa0 twgce 181
7 atmega16(l) 2466fs?avr?02/03 notes: 1. when the ocden fuse is unprogrammed, the osccal register is always accessed on this address. refer to the debug- ger specific documentation for details on how to use the ocdr register. 2. refer to the usart description for details on how to access ubrrh and ucsrc. 3. for compatibility with future devices, reserved bits should be written to zero if accessed. reserved i/o memory addresses should never be written. 4. some of the status flags are cleared by writing a logical one to them. note that the cbi and sbi instructions will operate on all bits in the i/o register, writing a one back into any flag read as set, thus clearing the flag. the cbi and sbi instruction s work with registers $00 to $1f only. $01 ($21) twsr tws7 tws6 tws5 tws4 tws3 ? twps1 twps0 180 $00 ($20) twbr two-wire serial interface bit rate register 179 address name bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 page
8 atmega16(l) 2466fs?avr?02/03 instruction set summary mnemonics operands description operation flags #clocks arithmetic and logic instructions add rd, rr add two registers rd rd + rr z,c,n,v,h 1 adc rd, rr add with carry two registers rd rd + rr + c z,c,n,v,h 1 adiw rdl,k add immediate to word rdh:rdl rdh:rdl + k z,c,n,v,s 2 sub rd, rr subtract two registers rd rd - rr z,c,n,v,h 1 subi rd, k subtract constant from register rd rd - k z,c,n,v,h 1 sbc rd, rr subtract with carry two registers rd rd - rr - c z,c,n,v,h 1 sbci rd, k subtract with carry constant from reg. rd rd - k - c z,c,n,v,h 1 sbiw rdl,k subtract immediate from word rdh:rdl rdh:rdl - k z,c,n,v,s 2 and rd, rr logical and registers rd rd ? rr z,n,v 1 andi rd, k logical and register and constant rd rd ? k z,n,v 1 or rd, rr logical or registers rd rd v rr z,n,v 1 ori rd, k logical or register and constant rd rd v k z,n,v 1 eor rd, rr exclusive or registers rd rd rr z,n,v 1 com rd one?s complement rd $ff ? rd z,c,n,v 1 neg rd two?s complement rd $00 ? rd z,c,n,v,h 1 sbr rd,k set bit(s) in register rd rd v k z,n,v 1 cbr rd,k clear bit(s) in register rd rd ? ($ff - k) z,n,v 1 inc rd increment rd rd + 1 z,n,v 1 dec rd decrement rd rd ? 1 z,n,v 1 tst rd test for zero or minus rd rd ? rd z,n,v 1 clr rd clear register rd rd rd z,n,v 1 ser rd set register rd $ff none 1 mul rd, rr multiply unsigned r1:r0 rd x rr z,c 2 muls rd, rr multiply signed r1:r0 rd x rr z,c 2 mulsu rd, rr multiply signed with unsigned r1:r0 rd x rr z,c 2 fmul rd, rr fractional multiply unsigned r1:r0 (rd x rr) << 1 z,c 2 fmuls rd, rr fractional multiply signed r1:r0 (rd x rr) << 1 z,c 2 fmulsu rd, rr fractional multiply signed with unsigned r1:r0 (rd x rr) << 1 z,c 2 branch instructions rjmp k relative jump pc pc + k + 1 none 2 ijmp indirect jump to (z) pc z none 2 jmp k direct jump pc k none 3 rcall k relative subroutine call pc pc + k + 1 none 3 icall indirect call to (z) pc z none 3 call k direct subroutine call pc k none 4 ret subroutine return pc stack none 4 reti interrupt return pc stack i 4 cpse rd,rr compare, skip if equal if (rd = rr) pc pc + 2 or 3 none 1 / 2 / 3 cp rd,rr compare rd ? rr z, n,v,c,h 1 cpc rd,rr compare with carry rd ? rr ? c z, n,v,c,h 1 cpi rd,k compare register with immediate rd ? k z, n,v,c,h 1 sbrc rr, b skip if bit in register cleared if (rr(b)=0) pc pc + 2 or 3 none 1 / 2 / 3 sbrs rr, b skip if bit in register is set if (rr(b)=1) pc pc + 2 or 3 none 1 / 2 / 3 sbic p, b skip if bit in i/o register cleared if (p(b)=0) pc pc + 2 or 3 none 1 / 2 / 3 sbis p, b skip if bit in i/o register is set if (p(b)=1) pc pc + 2 or 3 none 1 / 2 / 3 brbs s, k branch if status flag set if (sreg(s) = 1) then pc pc+k + 1 none 1 / 2 brbc s, k branch if status flag cleared if (sreg(s) = 0) then pc pc+k + 1 none 1 / 2 breq k branch if equal if (z = 1) then pc pc + k + 1 none 1 / 2 brne k branch if not equal if (z = 0) then pc pc + k + 1 none 1 / 2 brcs k branch if carry set if (c = 1) then pc pc + k + 1 none 1 / 2 brcc k branch if carry cleared if (c = 0) then pc pc + k + 1 none 1 / 2 brsh k branch if same or higher if (c = 0) then pc pc + k + 1 none 1 / 2 brlo k branch if lower if (c = 1) then pc pc + k + 1 none 1 / 2 brmi k branch if minus if (n = 1) then pc pc + k + 1 none 1 / 2 brpl k branch if plus if (n = 0) then pc pc + k + 1 none 1 / 2 brge k branch if greater or equal, signed if (n v= 0) then pc pc + k + 1 none 1 / 2 brlt k branch if less than zero, signed if (n v= 1) then pc pc + k + 1 none 1 / 2 brhs k branch if half carry flag set if (h = 1) then pc pc + k + 1 none 1 / 2 brhc k branch if half carry flag cleared if (h = 0) then pc pc + k + 1 none 1 / 2 brts k branch if t flag set if (t = 1) then pc pc + k + 1 none 1 / 2 brtc k branch if t flag cleared if (t = 0) then pc pc + k + 1 none 1 / 2 brvs k branch if overflow flag is set if (v = 1) then pc pc + k + 1 none 1 / 2 brvc k branch if overflow flag is cleared if (v = 0) then pc pc + k + 1 none 1 / 2
9 atmega16(l) 2466fs?avr?02/03 brie k branch if interrupt enabled if ( i = 1) then pc pc + k + 1 none 1 / 2 brid k branch if interrupt disabled if ( i = 0) then pc pc + k + 1 none 1 / 2 data transfer instructions mov rd, rr move between registers rd rr none 1 movw rd, rr copy register word rd+1:rd rr+1:rr none 1 ldi rd, k load immediate rd k none 1 ld rd, x load indirect rd (x) none 2 ld rd, x+ load indirect and post-inc. rd (x), x x + 1 none 2 ld rd, - x load indirect and pre-dec. x x - 1, rd (x) none 2 ld rd, y load indirect rd (y) none 2 ld rd, y+ load indirect and post-inc. rd (y), y y + 1 none 2 ld rd, - y load indirect and pre-dec. y y - 1, rd (y) none 2 ldd rd,y+q load indirect with displacement rd (y + q) none 2 ld rd, z load indirect rd (z) none 2 ld rd, z+ load indirect and post-inc. rd (z), z z+1 none 2 ld rd, -z load indirect and pre-dec. z z - 1, rd (z) none 2 ldd rd, z+q load indirect with displacement rd (z + q) none 2 lds rd, k load direct from sram rd (k) none 2 st x, rr store indirect (x) rr none 2 st x+, rr store indirect and post-inc. (x) rr, x x + 1 none 2 st - x, rr store indirect and pre-dec. x x - 1, (x) rr none 2 st y, rr store indirect (y) rr none 2 st y+, rr store indirect and post-inc. (y) rr, y y + 1 none 2 st - y, rr store indirect and pre-dec. y y - 1, (y) rr none 2 std y+q,rr store indirect with displacement (y + q) rr none 2 st z, rr store indirect (z) rr none 2 st z+, rr store indirect and post-inc. (z) rr, z z + 1 none 2 st -z, rr store indirect and pre-dec. z z - 1, (z) rr none 2 std z+q,rr store indirect with displacement (z + q) rr none 2 sts k, rr store direct to sram (k) rr none 2 lpm load program memory r0 (z) none 3 lpm rd, z load program memory rd (z) none 3 lpm rd, z+ load program memory and post-inc rd (z), z z+1 none 3 spm store program memory (z) r1:r0 none - in rd, p in port rd p none 1 out p, rr out port p rr none 1 push rr push register on stack stack rr none 2 pop rd pop register from stack rd stack none 2 bit and bit-test instructions sbi p,b set bit in i/o register i/o(p,b) 1 none 2 cbi p,b clear bit in i/o register i/o(p,b) 0 none 2 lsl rd logical shift left rd(n+1) rd(n), rd(0) 0 z,c,n,v 1 lsr rd logical shift right rd(n) rd(n+1), rd(7) 0 z,c,n,v 1 rol rd rotate left through carry rd(0) c,rd(n+1) rd(n),c rd(7) z,c,n,v 1 ror rd rotate right through carry rd(7) c,rd(n) rd(n+1),c rd(0) z,c,n,v 1 asr rd arithmetic shift right rd(n) rd(n+1), n=0..6 z,c,n,v 1 swap rd swap nibbles rd(3..0) rd(7..4),rd(7..4) rd(3..0) none 1 bset s flag set sreg(s) 1sreg(s)1 bclr s flag clear sreg(s) 0 sreg(s) 1 bst rr, b bit store from register to t t rr(b) t 1 bld rd, b bit load from t to register rd(b) t none 1 sec set carry c 1c1 clc clear carry c 0 c 1 sen set negative flag n 1n1 cln clear negative flag n 0 n 1 sez set zero flag z 1z1 clz clear zero flag z 0 z 1 sei global interrupt enable i 1i1 cli global interrupt disable i 0 i 1 ses set signed test flag s 1s1 cls clear signed test flag s 0 s 1 sev set twos complement overflow. v 1v1 clv clear twos complement overflow v 0 v 1 set set t in sreg t 1t1 clt clear t in sreg t 0 t 1 seh set half carry flag in sreg h 1h1 mnemonics operands description operation flags #clocks
10 atmega16(l) 2466fs?avr?02/03 clh clear half carry flag in sreg h 0 h 1 mcu control instructions nop no operation none 1 sleep sleep (see specific descr. for sleep function) none 1 wdr watchdog reset (see specific descr. for wdr/timer) none 1 break break for on-chip debug only none n/a mnemonics operands description operation flags #clocks
11 atmega16(l) 2466fs?avr?02/03 ordering information speed (mhz) power supply ordering code package operation range 8 2.7 - 5.5v ATMEGA16L-8ac ATMEGA16L-8pc ATMEGA16L-8mc 44a 40p6 44m1 commercial (0 o c to 70 o c) ATMEGA16L-8ai ATMEGA16L-8pi ATMEGA16L-8mi 44a 40p6 44m1 industrial (-40 o c to 85 o c) 16 4.5 - 5.5v atmega16-16ac atmega16-16pc atmega16-16mi 44a 40p6 44m1 commercial (0 o c to 70 o c) atmega16-16ai atmega16-16pi atmega16-16mc 44a 40p6 44m1 industrial (-40 o c to 85 o c) package type 44a 44-lead, thin (1.0 mm) plastic gull wing quad flat package (tqfp) 40p6 40-pin, 0.600? wide, plastic dual inline package (pdip) 44m1 44-pad, 7 x 7 x 1.0 mm body, lead pitch 0.50 mm, micro lead frame package (mlf)
12 atmega16(l) 2466fs?avr?02/03 packaging information 44a 2325 orchard parkway san jose, ca 95131 title drawing no. r rev. 44a, 44-lead, 10 x 10 mm body size, 1.0 mm body thickness, 0.8 mm lead pitch, thin profile plastic quad flat package (tqfp) b 44a 10/5/2001 pin 1 identifier 0?~7? pin 1 l c a1 a2 a d1 d e e1 e b common dimensions (unit of measure = mm) symbol min nom max note notes: 1. this package conforms to jedec reference ms-026, variation acb. 2. dimensions d1 and e1 do not include mold protrusion. allowable protrusion is 0.25 mm per side. dimensions d1 and e1 are maximum plastic body size dimensions including mold mismatch. 3. lead coplanarity is 0.10 mm maximum. a 1.20 a1 0.05 0.15 a2 0.95 1.00 1.05 d 11.75 12.00 12.25 d1 9.90 10.00 10.10 note 2 e 11.75 12.00 12.25 e1 9.90 10.00 10.10 note 2 b 0.30 0.45 c 0.09 0.20 l 0.45 0.75 e 0.80 typ
13 atmega16(l) 2466fs?avr?02/03 40p6 2325 orchard parkway san jose, ca 95131 title drawing no. r rev. 40p6 , 40-lead (0.600"/15.24 mm wide) plastic dual inline package (pdip) b 40p6 09/28/01 pin 1 e1 a1 b ref e b1 c l seating plane a 0?~ 15? d e eb common dimensions (unit of measure = mm) symbol min nom max note a 4.826 a1 0.381 d 52.070 52.578 note 2 e 15.240 15.875 e1 13.462 13.970 note 2 b 0.356 0.559 b1 1.041 1.651 l 3.048 3.556 c 0.203 0.381 eb 15.494 17.526 e 2.540 typ notes: 1. this package conforms to jedec reference ms-011, variation ac. 2. dimensions d and e1 do not include mold flash or protrusion. mold flash or protrusion shall not exceed 0.25 mm (0.010").
14 atmega16(l) 2466fs?avr?02/03 44m1 2325 orchard parkway san jose, ca 95131 title drawing no. r rev. 44m1 , 44-pad, 7 x 7 x 1.0 mm body, lead pitch 0.50 mm micro lead frame package (mlf) c 44m1 01/15/03 common dimensions (unit of measure = mm) symbol min nom max note a 0.80 0.90 1.00 a1 0.02 0.05 a3 0.25 ref b 0.18 0.23 0.30 d 7.00 bsc d2 5.00 5.20 5.40 e 7.00 bsc e2 5.00 5.20 5.40 e 0.50 bsc l 0.35 0.55 0.75 note: jedec standard mo-220, fig. 1 (saw singulation) vkkd-1. top view side view bottom view d e marked pin# 1 id e2 d2 b e pin #1 corner l a1 a3 a seating plane
15 atmega16(l) 2466fs?avr?02/03 erratas the revision letter in this section refers to the revision of the atmega16 device. atmega16(l) rev. g. there are no errata for this revision of atmega16. atmega16(l) rev. h. there are no errata for this revision of atmega16.
16 atmega16(l) 2466fs?avr?02/03 data sheet change log for atmega16 this section contains a log on the changes made to the data sheet for atmega16. changes from rev. 2466b-09/01 to rev. 2466c-03/02 all page numbers refer to this document. 1. updated typical eeprom programming time, table 1 on page 18. 2. updated typical start-up time in the following tables: table 3 on page 23, table 5 on page 25, table 6 on page 26, table 8 on page 27, table 9 on page 27, and table 10 on page 28. 3. updated table 17 on page 41 with typical wdt time-out. 4. added some preliminary test limits and characterization data. removed some of the tbd's in the following tables and pages: table 15 on page 36, table 16 on page 40, table 116 on page 272 (table removed in document review #d), ?electrical characteristics? on page 290, table 119 on page 292, table 121 on page 294, and table 122 on page 296. 5. updated twi chapter. added the note at the end of the ?bit rate generator unit? on page 177. 6. corrected description of adsc bit in ?adc control and status register a ? adcsra? on page 218. 7. improved description on how to do a polarity check of the adc diff results in ?adc conversion result? on page 215. 8. added jtag version number for rev. h in table 87 on page 228. 9. added not regarding ocden fuse below table 105 on page 260. 10. updated programming figures: figure 127 on page 262 and figure 136 on page 273 are updated to also reflect that avcc must be connected during programming mode. figure 131 on page 269 added to illustrate how to program the fuses. 11. added a note regarding usage of the ?prog_pageload ($6)? on page 279 and ?prog_pageread ($7)? on page 279. 12. removed alternative algortihm for leaving jtag programming mode. see ?leaving programming mode? on page 287. 13. added calibrated rc oscillator characterization curves in section ?atmega16 typical characteristics ? preliminary data? on page 298. 14. corrected ordering code for mlf package (16mhz) in ?ordering information? on page 11. 15. corrected table 90, ?scan signals for the oscillators (1)(2)(3) ,? on page 234.
17 atmega16(l) 2466fs?avr?02/03 changes from rev. 2466c-03/02 to rev. 2466d-09/02 all page numbers refer to this document. 1. changed all flash write/erase cycles from 1,000 to 10,000. 2. updated the following tables: table 4 on page 24, table 15 on page 36, table 42 on page 82, table 45 on page 109, table 46 on page 109, table 59 on page 141, table 67 on page 166, table 90 on page 234, table 102 on page 258, ?dc characteristics? on page 290, table 119 on page 292, table 121 on page 294, and table 122 on page 296. 3. updated ?erratas? on page 15. changes from rev. 2466d-09/02 to rev. 2466e-10/02 all page numbers refer to this document. 1. updated ?dc characteristics? on page 290. changes from rev. 2466e-10/02 to rev. 2466f-02/03 all page numbers refer to this document. 1. added note about masking out unused bits when reading the program counter in ?stack pointer? on page 10. 2. added chip erase as a first step in ?programming the flash? on page 287 and ?programming the eeprom? on page 288. 3. added the section ?unconnected pins? on page 53. 4. added tips on how to disable the ocd system in ?on-chip debug system? on page 34. 5. removed reference to the ?multi-purpose oscillator? application note and ?32 khz crystal oscillator? application note, which do not exist. 6. added information about pwm symmetry for timer0 and timer2. 7. added note in ?filling the temporary buffer (page loading)? on page 253 about writing to the eeprom during an spm page load. 8. removed adhsm completely. 9. added table 73, ?twi bit rate prescaler,? on page 181 to describe the twps bits in the ?twi status register ? twsr? on page 180. 10. added section ?default clock source? on page 23. 11. added note about frequency variation when using an external clock. note added in ?external clock? on page 29. an extra row and a note added in table 118 on page 292. 12. various minor twi corrections. 13. added ?power consumption? data in ?features? on page 1. 14. added section ?eeprom write during power-down sleep mode? on page 20 .
18 atmega16(l) 2466fs?avr?02/03 15. added note about differential mode with auto triggering in ?prescaling and conversion timing? on page 206. 16. added updated ?packaging information? on page 12.
19 atmega16(l) 2466fs?avr?02/03
printed on recycled paper. ? atmel corporation 2003. atmel corporation makes no warranty for the use of its products, other than those expressly contained in the company?s standard warranty which is detailed in atmel?s terms and conditions located on the company?s web site. the company assumes no responsibility for any errors which may appear in this document, reserves the right to change devices or specifications detailed herein at any time without n otice, and does not make any commitment to update the information contained herein. no licenses to patents or other intellectual property of at mel are granted by the company in connection with the sale of atmel products, expressly or by implication. atmel?s products are not authorized for use as critical components in life support devices or systems. atmel headquarters atmel operations corporate headquarters 2325 orchard parkway san jose, ca 95131 tel 1(408) 441-0311 fax 1(408) 487-2600 europe atmel sarl route des arsenaux 41 case postale 80 ch-1705 fribourg switzerland tel (41) 26-426-5555 fax (41) 26-426-5500 asia room 1219 chinachem golden plaza 77 mody road tsimhatsui east kowloon hong kong tel (852) 2721-9778 fax (852) 2722-1369 japan 9f, tonetsu shinkawa bldg. 1-24-8 shinkawa chuo-ku, tokyo 104-0033 japan tel (81) 3-3523-3551 fax (81) 3-3523-7581 memory 2325 orchard parkway san jose, ca 95131 tel 1(408) 441-0311 fax 1(408) 436-4314 microcontrollers 2325 orchard parkway san jose, ca 95131 tel 1(408) 441-0311 fax 1(408) 436-4314 la chantrerie bp 70602 44306 nantes cedex 3, france tel (33) 2-40-18-18-18 fax (33) 2-40-18-19-60 asic/assp/smart cards zone industrielle 13106 rousset cedex, france tel (33) 4-42-53-60-00 fax (33) 4-42-53-60-01 1150 east cheyenne mtn. blvd. colorado springs, co 80906 tel 1(719) 576-3300 fax 1(719) 540-1759 scottish enterprise technology park maxwell building east kilbride g75 0qr, scotland tel (44) 1355-803-000 fax (44) 1355-242-743 rf/automotive theresienstrasse 2 postfach 3535 74025 heilbronn, germany tel (49) 71-31-67-0 fax (49) 71-31-67-2340 1150 east cheyenne mtn. blvd. colorado springs, co 80906 tel 1(719) 576-3300 fax 1(719) 540-1759 biometrics/imaging/hi-rel mpu/ high speed converters/rf datacom avenue de rochepleine bp 123 38521 saint-egreve cedex, france tel (33) 4-76-58-30-00 fax (33) 4-76-58-34-80 e-mail literature@atmel.com web site http://www.atmel.com 2466fs?avr?02/03 0m at m e l ? , avr ? , and avr studio ? are the registered trademarks of atmel. other terms and product names may be the trademarks of others.


▲Up To Search▲   

 
Price & Availability of ATMEGA16L

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X