.


:




:

































 

 

 

 


ATmega16




4

RISC - ATmega16(32) Atmel

ATmega16

, 8 [] Advanced RISC-;

131 ;

32 8-. + ;

16 . (MIPS) 16 ;

2 ;

16KBytes Flash ;

512Bytes EEPROM;

1KByte SRAM;

- : 10,000 Flash/100,000 EEPROM;

: 20 85C/100 25C(1);

;

;

SPI ;

JTAG ( IEEE 1149.1);

8- / ;

16- / , ;

;

( );

8- 10 ;

2 1x, 10x, 200x;

- I2C

USART ( RS232)

;

;

;

RC ;

:

(Idle);

;

(Power-save);

(Power-down);

(Standby);

(Extended Standby);

;

32 -;

40-pin PDIP, 44- TQFP;

2.7 5 ;

0 16;

Active: 0.6

: 0,2

: < 1

:

 

 

 

:

 

 

:

 

 

. - , .

.

$0000 . ( RESET) .

( + SRAM) EEPROM .

32 4 RA, RB, RC, RD.

 

.

 

 

 

 

DDRx PORTx PINx.

DDRx . DDRx=1 - (). (0 1) PORTx Pxn.

DDRx=1 (). PINx. PORTx = 1, () (+5). , , . PORTx = 0, ( - " " ). . , .

.

DDRC.0=1; PORTC.0 =0; PnC.0, 0.

DDRC.0=1; PORTC.0 =1; PnC.0, 1.

.

DDRC.0=0; PORTC.1 =0; PINC.0, 0 - . 5,

 

if (PIN.0==1) {for(k=1;k<300;k++); /* . */}

DDRC.0=0; PORTC.1 =1; +5 .

 

 

. , PD2 , INT0.

, .

PUD = 1 SFIOR .

 

 

 

, :

 

 

7 SREG.7=1 ( )

, .

odeVision , .

 

, , , ATmega128 . ATmega16.

.

 





:


: 2017-02-24; !; : 2337 |


:

:

, .
==> ...

1719 - | 1539 -


© 2015-2024 lektsii.org - -

: 0.013 .