8- / - CK, (CK/8, CK/64, CK/256 CK/1024), TCCR0. TIFR. TCCR0. TIMSK.
/ , . , . .
8- / , . .
16- / - CK, (CK/8, CK/64, CK/256 CK/1024), TCCR1A. (, ) TIFR. 1 TIMSK.
/ 1 , . , . .
16- / 1 , . .
/ 1 OCR1A . .
/ 1 8-, 9- 10- - . OCR1 . .
/ 1 ICR1 - ICP. TCCR1.
, , , 4- .
D
ICP - D, 6 - / 1. . .
T1 - D, 5 - / 1. . .
T0 - D, 4 - / 0. . .
INT1 - D, 3 - 1. . .
INT0 - D, 2 - 0. . .
TXD - D, 1 - UART. UART, DDRD1 .
RXD - D, 0 - UART. UART, DDRD0 . UART , PORTD0 .
PB0 (AIN0) (AIN1). , ACO (Analog Comparator Output). /1. , . , .
- -
32 . . - , . AVR .
AT90S2313 , (1) (0), 12.
20.
LB1 | LB2 | ||
1 | 1 | 1 | |
2 | 0 | 1 | |
3 | 0 | 0 | 2, |
:
(Fuse bits)
AT90S2313 - SPIEN FSTRT.
ࠠ SPIEN (0) . (0).
FSTRT (0), . (1). .
.
(EEPROM) /.
2.5-4 mS . , , , . , . , . , . , , EEPROM. , EEPROM, .
EEPROM , , .
EEPROM 2 .
EEPROM
AT90S2313 128 (EEPROM). EEPROM , . EEPROM 100000 /. , . SPI .
. - SBCI, SUBI, CPI, ANDI, ORI LDI, . - R16..R31. SBC, SUB, CP, AND OR, , .
, 32 . , . X, Y Z .
, R26..R31 , . X,Y,Z :
15 | 0 | |||
X | 7 | 0 | 7 | 0 |
R27($1B) | R26($1A) | |||
15 | 0 | |||
Y | 7 | 0 | 7 | 0 |
R29($1D) | R28($1C) | |||
15 | 0 | |||
Z | 7 | 0 | 7 | 0 |
R31($1F) | R30($1E) | |||
, .
/ TIFR
$38($58) ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
TOV1 | OCF1A | - | - | ICF1 | - | TOV0 | - | TIFR | |
R/W | R/W | R | R | R/W | R | R/W | R | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7 - TOV1: / 1: TOV1 ("1") / 1. TOV1 . , , . I SREG TOIE1 TIMSK, TOV1 / 1. , / 1 $0000.
6 - OCF1A: 1: "1" / 1 OCR1A. . , . I SREG OCIE1A TIMSK, OCF1A .
5,4 - ; AT90S2313 0.
3 - ICF1: 1: ("1") , , / 1 ICR1. ICF1 . , , .
2 - ; AT90S2313 0.
1 - TOV0: 1: TOV0 ("1") / 0. . , . I SREG TOIE0 TIMSK, TOV0 / 0.
0 - ; AT90S2313 0.
, :
BAUD = Fck / (16*(UBRR+1)) ( BAUD - ()), Fck - , UBRR - UART
UBRR . (Baud Rate ; %Error ):
Ta = -40...+85C, Vcc=2.7...6.0V ( )
. | . | . | . . | ||||
'0' | -0.5 | 0.3 Vcc | |||||
'1' ( XTAL1 RESET) | 0.6 Vcc | Vcc+0.5 | |||||
'1' XTAL1 RESET | 0.7 Vcc | Vcc+0.5 | |||||
'0'(1)
( B D) |
IIL=20mA, Vcc = 5V
IIL=10mA, Vcc = 3V |
0.5 | |||||
'1'
( B D) |
I0H=3mA, Vcc = 5V
I0H=3mA, Vcc = 3V |
Vcc-0.5 | |||||
( B D) |
Vcc=5V,V0H = 4.5V
Vcc=3V,V0H = 2.7V |
10
5 |
|||||
( B D) |
Vcc=5V,VIL = 0.5V
Vcc=3V,VIL = 0.3V |
20
10 |
|||||
100 | 500 | ||||||
35 | 120 | ||||||
: | , 3V, 4 | 3 | |||||
(idle mode), 3V, 4 | 1 | ||||||
(2) WDT , 3V | 9 | 15 | |||||
(2) WDT , 3V | <1 | 2 | |||||
Vcc = 5V | 40 | ||||||
Vcc = 5V VIN = Vcc/2 | -50 | +50 | |||||
Vcc=2.7V
Vcc=4.0V |
750
500 |
||||||
:
1. :
- - 20 (5V), 10 (3V)
- - 80
2. - 2V
. | ||||
4 | 2.7...6.0 V | AT90S2313-4PC
AT90S2313-4SC |
20P3
20S |
(0C ... 70C) |
AT90S2313-4PI
AT90S2313-4SI |
20P3
20S |
(-40C ... 85C) | ||
10 | 4.0...6.0 V | AT90S2313-10PC
AT90S2313-10SC |
20P3
20S |
(0C ... 70C) |
AT90S2313-10PI
AT90S2313-10SI |
20P3
20S |
(-40C ... 85C) |
20P3 - PDIP
20S - SOIC
AT90S2313 .
* . VCC GND.
* . RESET .
* . , .
/ , $000, RJMP - . , .
.
SM (1), SLEEP (Power Down Mode). . . , . , .
Atmel 3- , . . AT90S2313 :
1. $000: $1E - - Atmel
2. $001: $91 - 2
3. $002: $01 - $01=$91 - / AT90S2313
, .
XTAL1 XTAL2 , . , . XTAL2 , XTAL1 .
. .-55 - +125
.-65 - +150 RESET . -1.0V Vcc+0.5V RESET . -1.0V - 13 V 6.6V . 40.0 VCC GND . 200.0 |
: . , . / /.
AT90S2313 Atmel
AT90S2313 - 8 , RISC AVR. , AT90S2313 1MIPS , .
AVR RISC , 32 . 32 - (), . CISC .
AT90S2313 : 2 ; 128 EEPROM; 15 / ; 32 ; / ; ; ; ; SPI ; . (Idle Mode) , , /, SPI . (Power Down Mode) , , .
Atmel. SPI . 8- RISC , AT90S2313 , .
AT90S2313 , /, .
Rd AND Rr
. 堠 蠠
ADD Rd, Rr ࠠ Rd < Rd + Rr Z,C,N,V,H 1
ADC Rd, Rr 젠 Rd < Rd + Rr + C Z,C,N,V,H 1
ADIW Rdl,K Rdh,l< Rdh,l+K Z,C,N,V,S 2
SUB Rd, Rr ࠠ Rd < Rd - Rr Z,C,N,V,H 1
SUBI Rd, K Rd < Rd - K Z,C,N,V,H 1
SBIW Rdl,K Rdh,l< Rdh,l-K Z,C,N,V,S 2
SBC Rd, Rr 젠 Rd < Rd - Rr - C Z,C,N,V,H 1
SBCI Rd, K 젠 Rd < Rd - K - C Z,C,N,V,H 1
AND Rd, Rr Ƞ Rd < Rd AND Rr Z,N,V 1
ANDI Rd, K Ƞ Rd < Rd AND K Z,N,V 1
OR Rd, Rr Ƞ Rd < Rd OR Rr Z,N,V 1
ORI Rd, K Ƞ Rd < Rd OR K Z,N,V 1
EOR Rd, Rr Ƞ Rd < Rd XOR Rr Z,N,V 1
COM Rd 1 Rd < $FF - Rd Z,C,N,V 1
NEG Rd 2 Rd < $00 - Rd Z,C,N,V,H 1
SBR Rd, K (-) 堠 Rd < Rd OR K Z,N,V 1
CBR Rd, K (-) 堠 Rd < Rd AND (FFh - K) Z,N,V 1
INC Rd 1 Rd < Rd + 1 Z,N,V 1
DEC Rd 1 Rd < Rd - 1 Z,N,V 1
TST Rd 0 Rd < Rd AND Rd Z,N,V 1
CLR Rd ॣ Rd < Rd XOR Rd Z,N,V 1
SER Rd ⠭ ॣ Rd < $FF 1
RJMP k ⭮⥫ 室 PC < PC+k+1 2
LJMP 室 (Z) PC< Z 2
RCALL k ⭮⥫ 맮 ணࠬ PC < PC+k+1 3
ICALL 맮 ணࠬ (Z) PC< Z 3
RET 室 ணࠬ PC < STACK 4
RETI 室 뢠 PC < STACK I 4
CPSE Rd, Rr ࠢ, ய ࠢ if(Rd=Rr) PC
CP Rd, Rr ࠢ Rd - Rr Z,N,V,C,H 1
CPC Rd, Rr ࠢ ७ᮬ Rd - Rr - C Z,N,V,C,H 1
CPI Rd, K ࠢ ⠭⮩ Rd - K Z,N,V,C,H 1
SBRC Rr, b ய ॣ 襭 if(Rr(b)=0) PC
SBRS Rr, b ய ॣ ⠭ if(Rr(b)=1) PC
SBIC P, b ய ॣ. /. 襭 if(P(b)=0) PC
SBIS P, b ய ॣ. /. ⠭ if(P(b)=1) PC
BRBS s, k 室 ⠭ 䫠 s if(SREG(s)=1) PC
BRBC s, k 室 襭 䫠 s if(SREG(s)=0) PC
BREQ k 室 ࠢ if(Z=1) PC < PC+k+1 1/2
BRNE k 室 ࠢ if(Z=0) PC < PC+k+1 1/2
BRCS k 室 ⠭ ७ if(C=1) PC < PC+k+1 1/2
BRCC k 室 襭 ७ if(C=0) PC < PC+k+1 1/2
BRSH k 室 ࠢ if(C=0) PC < PC+k+1 1/2
BRLO k 室 if(C=1) PC < PC+k+1 1/2
BRMI k 室 if(N=1) PC < PC+k+1 1/2
BRPL k 室 if(N=0) PC < PC+k+1 1/2
BRGE k 室 ࠢ, if(N XOR V=0) PC
BRLT k 室 , if(N XOR V=1) PC
BRHS k 室 ⠭ 䫠 H if(H=1) PC < PC+k+1 1/2
BRHC k 室 襭 䫠 H if(H=0) PC < PC+k+1 1/2
BRTS k 室 ⠭ 䫠 T if(H=1) PC < PC+k+1 1/2
BRTC k 室 襭 䫠 T if(H=0) PC < PC+k+1 1/2
BRVS k 室 ⠭ 䫠 V (९) if(H=1) PC < PC+k+1 1/2
BRVC k 室 襭 䫠 V if(H=0) PC < PC+k+1 1/2
BRIE k 室 ࠧ襭 뢠 if(I=1) PC < PC+k+1 1/2
BRID k 室 饭 뢠 if(I=1) PC < PC+k+1 1/2
. ࠭ ᠭ ⢨
MOV Rd,Rr 뫪 ॣࠬ Rd< Rr 1
LDI Rd,K 㧨 ⠭ Rd< K 1
LD Rd,X 㧨 ॣ ।⢥ Rd< (X) 2
LD Rd,X+ 㧨 ॣ ।. c ६. Rd< (X),X< X+1 2
LD Rd,-X 㧨 ॣ । ।. ६. X< X-1,Rd< (X) 2
LD Rd,Y 㧨 ॣ ।⢥ Rd< (Y) 2
LD Rd,Y+ 㧨 ॣ ।. c ६. Rd< (Y),Y< Y+1 2
LD Rd,-Y 㧨 ॣ ।. ।.६. Y< Y-1,Rd< (Y) 2
LDD Rd,Y+q 㧨 ॣ ।. ᬥ饭 Rd< (Y+q) 2
LD Rd,Z 㧨 ॣ ।⢥ Rd< (Z) 2
LD Rd,Z+ 㧨 ॣ . c ६⮬ Rd< (Z),Z< Z+1 2
LD Rd,-Z 㧨 ॣ ।. ।.६. Z< Z-1,Rd< (Z) 2
LDD Rd,Z+q 㧨 ॣ ।. ᬥ饭 Rd< (Z+q) 2
LDS Rd,k 㧨 Rd< (k) 3
ST X,Rr ॣ ।⢥ (X)< Rr 2
ST X+,Rr ॣ ।. c ६⮬. (X)< Rr,X< X+1 2
ST -X,Rr ॣ ।. c ।.६⮬. X< X-1,(X)< Rr 2
ST Y,Rr ॣ ।⢥ (Y)< Rr 2
ST Y+,Rr ॣ ।.c ६⮬. (Y)< Rr,Y< Y+1 2
ST -Y,Rr ॣ ।.c ।. ६⮬. Y< Y-1,(Y)< Rr 2
STD Y+q,Rr ॣ ।.
ᬥ饭 (Y+q)< Rr 2
ST Z,Rr ॣ ।⢥ (Z)< Rr 2
ST Z+,Rr ॣ ।. c ६⮬. (Z)< Rr,Z< Z+1 2
ST -Z,Rr ॣ ।. c ।. ६⮬. Z< Z-1,(Z)< Rr 2
STD Y+q,Rr ॣ ।. ᬥ饭 (Y+q)< Rr 2
STS k,Rr (k)< Rr 3
LPM 㧨 ணࠬ. R0< (Z) 3
IN Rd, P Rd< P 1
OUT P, Rr 뢮 P< Rr 1
PUSH Rr ⥪ STACK< Rr 2
POP Rr ⥪ Rr< STACK 2
SBI P,b ⠭ ॣ /뢮 I/O(P,b) < 1 2
CBI P,b ॣ /뢮 I/O(P,b) < 0 2
LSL Rd ᪨ ᤢ Rd(n+1)
LSR Rd ᪨ ᤢ ࠢ Rd(n)
ROL Rd १ C Rd(0)
Rd(n+1)
ROR Rd ࠢ १ C Rd(7) < C, Z,C,N,V 1
Rd(n) < Rd(n+1), C < Rd(0)
ASR Rd 䬥᪨ ᤢ ࠢ Rd(n) < Rd(n+1), n=0..6 Z,C,N,V 1
SWAP Rd Rd(3-0) < Rd(7-4), 1
Rd(7-4) < Rd(3-0)
BSET s ⠭ 䫠 SREG(s) < 1 SREG(s) 1
BCLR s 䫠 SREG(s) < 0 SREG(s) 1
BST Rr,b T T < Rr(b) T 1
BLD Rd, b T Rd(b) < T 1
SEC ⠭ ७ C < 1 C 1
CLC ७ C < 0 C 1
SEN ⠭ 䫠 N N < 1 N 1
CLN 䫠 N N < 0 N 1
SEZ ⠭ 䫠 Z Z < 1 Z 1
CLZ 䫠 Z Z < 0 Z 1
SEI 뢠 I < 1 I 1
CLI 뢠 I < 0 I 1
SES ⠭ 䫠 S S < 1 S 1
CLS 䫠 S S < 0 S 1
SEV ⠭ 䫠 V V < 1 V 1
CLV 䫠 V V < 0 V 1
SET ⠭ 䫠 T T < 1 T 1
CLT 䫠 T T < 0 T 1
SEH ⠭ 䫠 H H < 1 H 1
CLH 䫠 H H < 0 H 1
NOP 樨 1
SLEEP ⠭ 3
WDR ⠩ 1
AT90S2313 GIMSK - , $3B($5B) TIMSK - / - $39($59).
, I () . . I 1 - RETI.
(.. ) ( / 1 ) , . , , .
, , , . .
- GIFR
$3A($5A) ./. (R/W) . . |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
INTF1 | INTF0 | - | - | - | - | - | - | GIFR | |
R/W | R/W | R | R | R | R | R | R | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7 - INTF1: 1: INT1 , , INTF1 "1". I SREG INT1 GIMSK, $002. . , , .
6 - INTF0: 0: INT0 , INTF0 "1". I SREG INT0 GIMSK, $001. . , , .
5..0 - . AT90S2313 0.
- GIMSK
$3B($5B) ./. (R/W) . . |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
INT1 | INT0 | - | - | - | - | - | - | GIMSK | |
R/W | R/W | R | R | R | R | R | R | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7 - 1 . , I , . (ISC11 ISC10) (MCUCR) - . , $002 . (. " ").
6 - INT0: 0 . , I , . (ISC01 ISC00) (MCUCR) - . INT0 , DDD2 D (DDRD), 0, INT0 . , $001 . (. " ").
5..0 - . AT90S2313 0.
32 8- , . . , , - .
32 16- , (16- X, Y Z). ( Z) . X-, Y- Z-.
, . .
, , $00-$1F , .
64 , , / . / , ($20-$5F).
AVR . . , . . - -.
. AVR 16-, . 16- 32- .
. , . (SP) , ( ). 8- / /.
128 , / AVR.
AVR .
/, . . . .
VCC -
GND -
Port B (PB7..PB0) - B 8- /. ( ). PB0 PB1 (AIN0) (AIN1) . B 20 . PB0..PB7 , , . , B , .
Port D (PD6..PD0) - D 7- . D 20. , D , . , D , .
RESET - . ( ), .
XTAL1 - .
XTAL2 - .
Vcc=2.7...6.0 V | Vcc=4.0...6.0 V | . | |||
. | . | . | . | ||
0 | 4 | 0 | 10 | ||
250 | 100 | ||||
'1' | 100 | 40 | |||
'0' | 100 | 40 | |||
() | 1,6 | 0.5 |
/ UART - UDR. UDR :
- UDR . .
- UDR , . , . UART - USR - - UDRE/. , UART . UDR 10(11)- , 0 ( ), 9 10 ( ). 9- ( CHR9 UCR), TXB8 UCR 9- .
, , TXD. , . , , UDR . UDRE. UDR , UDRE UDR. TXD , USR - TXC.
TXEN UCR . TXEN, PD1 / . TXEN , UART PD1 DDD1 DDRD.
B
B 8- .
: PORTB ($18, $38), - DDRB ($17, $37) B ($16, $36). B , - /.
. B 20 . PB0..PB7 , , (IIL). B 16.
16. B.
PB0 | AIN0 ( ) |
PB1 | AIN1 ( ) |
PB5 | MOSI ( ) |
PB6 | MISO ( ) |
PB7 | SCK ( ) |
. DDRB PORTB .
B, /
8 B / .
DDBn DDRB . (1), . (0) - . PORTBn , . , PORTBn (0) .
B
SCK - 7 B - /
MISO - 6 B -
MOSI - 5 B -
OC1 - PORTB, Bit 3 - . - 1. DDB3 1 ( ).
AIN1 - 1 B - . (DDB1 ) (PB0 ), .
AIN0 - 0 B - . (DDB0 ) (PB1 ), .
17. DDBn B
DDBn | PORTBn | / | . | |
0 | 0 | (Hi-Z) | ||
0 | 1 | PBn IIL, | ||
1 | 0 | 0 | ||
1 | 1 | 1 |
n = 7,6...0 -
D
D 3 - PORTD ($12, $32), - DDRD ($11, $31) D - PIND ($10, $30). /, PIND - .
D - 7- . 20 . , IIL, . , 18.
, / .
18. D
PD0 | RXD ( UART) |
PD1 | TXD ( UART) |
PD2 | INT0 ( 0) |
PD3 | INT1 ( 1) |
PD4 | T0 ( 0) |
PD5 | T1 ( 1) |
PD6 | ICP ( 1) |
D, /
7 D / .
DDDn DDRD . (1), . (0) - . PORTDn , . , PORTDn (0) .
19. DDDn D
DDDn | PORTDn | / | . | |
0 | 0 | (Hi-Z) | ||
0 | 1 | PDn IIL, | ||
1 | 0 | 0 | ||
1 | 1 | 1 |
n = 6...0 -
.
RXD 16 ( , 16 ). , . , 8, 9 10 RXD. , 1 0.
, . 8, 9 10 , . , .
1. , USR FE. UDR FE .
UDR RXC USR. UDR , , - . UDR , - . 9- 9- RXB8 UCR.
UDR , UCR - OR. , UDR . OR UDR. , OR UDR .
RXEN UCR . PD0 / . RXEN, PD0 DDD0 DDRD.
/
/ AT90S2313.
/ AT90S2313 /. IN OUT, 32- /. $00..$1F SBI CBI. SBIC SBIS. .
IN, OUT, SBIS SBIC, $00..$3F. / , $20. .
1. / AT90S2313.
$3F($5F) | SREG | Status REGister | |
$3D($5D) | SPL | Stack pointer low | , . |
$3B($5B) | GIMSK | General Interrupt MaSK register | |
$3A($5A) | GIFR | General Interrupt Flag register | |
$39($59) | TIMSK | Timer/counter Interrupt mask register | / |
$38($58) | TIFR | Timer/counter Interrupt Flag register | / |
$35($55) | MCUCR | MCU general Control Register | |
$33($53) | TCCR0 | Timer/Counter 0 Control Register | 0 |
$32($52) | TCNT0 | Timer/Counter 0 (8-) | / 0 (8 ) |
$2F($4F) | TCCR1A | Timer/Counter 1 Control Register A | A 1 |
$2E($4E) | TCCR1B | Timer/Counter 1 Control Register B | B 1 |
$2D($4D) | TCNT1H | Timer/Counter 1 High byte | / 1 |
$2C($4C) | TCNT1L | Timer/Counter 1 Low byte | / 1 |
$2B($4B) | OCR1H | Output Compare Register 1 high byte | 1 |
$2A($4A) | ICR1L | Output Compare Register 1 low byte | 1 |
$25($45) | ICR1H | T/C 1 Input Cupture Register High Byte | \ 1 |
$24($44) | ICR1L | T/C 1 Input Cupture Register Low Byte | \ 1 |
$21($41) | WDTCR | Watchdog Timer Control Register | |
$1E($3E) | EEAR | EEPROM Address Register | |
$1D($3D) | EEDR | EEPROM Data Register | |
$1C($3C) | EECR | EEPROM Control Register | |
$18($38) | PORTB | Data Register, Port B | B |
$17($37) | DDRB | Data Direction Register Port B | B |
$16($36) | PINB | Input pins, Port B | B |
$12($32) | PORTD | Data Register, Port D | D |
$11($31) | DDRD | Data Direction Register Port D | D |
$10($30) | PIND | Input pins, Port D | D |
$0C($2C) | UDR | UART Data Register | |
$0B($2B) | USR | UART Status Register | |
$0A($2A) | UCR | UART Control Register | |
$09($29) | UBRR | UART Baud Rate Register | 蠠 |
$08($28) | ACSR | Analog Comparator Control and Status Register | |
: .
A / 1 - TCCR1A
$2F ($4F) ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
COM1A1 | COM1A0 | - | - | - | - | PWM11 | PWM10 | TCCR1A | |
R/W | R/W | R | R | R | R | R/W | R/W | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7,6 - COM1A1, COM1A0: , 1 0: OC1 / 1. , . :
7. .
COM1A1 | COM1A0 | |
0 | 0 | / 1 OC1 |
0 | 1 | OC1 |
1 | 0 | (0) OC1 |
1 | 1 | (1) OC1 |
, 11.
COM1A1 COM1A0 , TIMSK. , .
5..2 - . AT90S2313 0.
1,0 - PWM11, PWM10: : / 1 (. . 8). .
8. .
PWM11 | PWM10 | |
0 | 0 | |
0 | 1 | 8- |
1 | 0 | 9- |
1 | 1 | 10- |
EEPROM - EEAR
$1E($3E) ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
- | EEAR6 | EEAR5 | EEAR4 | EEAR3 | EEAR2 | EEAR1 | EEAR0 | EEAR | |
R | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7 - . AT90S2313 0.
6..0 - EEAR6..0 - EEPROM. EEPROM 128- EEPROM. EEPROM 0..127.
B / 1 - TCCR1B
$2E ($4E) ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
ICNC1 | ICES1 | - | - | CTC1 | CS12 | CS11 | CS10 | TCCR1B | |
R/W | R/W | R | R | R/W | R/W | R/W | R/W | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7 - ICNC1: : (0), . ( ) ICP. ICP. , ICES1. .
6 - ICES1: : ICES1 (0) / 1 ICP. - .
5,4 - . AT90S2313 0.
3 - CTC1: 1 : (1), / 1 $0000 . , / 1 , , . .
2,1,0 - CS12, CS11, CS10: : / 1.
9. .
CS12 | CS11 | CS10 | |
0 | 0 | 0 | / |
0 | 0 | 1 | CK |
0 | 1 | 0 | CK/8 |
0 | 1 | 1 | CK/64 |
1 | 0 | 0 | CK/256 |
1 | 0 | 1 | CK/1024 |
1 | 1 | 0 | T1, |
1 | 1 | 1 | T1, |
EEPROM - EEDR
$1D ($3D) ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
MSB | - | - | - | - | - | - | LSB | EEDR | |
R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7..0 - EEDR7..0 - EEPROM. EEDR , EEPROM EEAR. EEPROM EEAR.
B - PORTB
$18 ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
PORTB7 | PORTB6 | PORTB5 | PORTB4 | PORTB3 | PORTB2 | PORTB1 | PORTB0 | PORTB | |
R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
D - PORTD
$12($32) ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
- | PORTD6 | PORTD5 | PORTD4 | PORTD3 | PORTD2 | PORTD1 | PORTD0 | PORTD | |
R | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
/ - TIMSK
$39($59) ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
TOIE1 | OCIE1A | - | - | TICIE1 | - | TOIE0 | - | TIMSK | |
R/W | R/W | R | R | R/W | R | R/W | R | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7 - TOIE1: / 1: , / 1. ( $005) / 1. / (TIFR) . / 1 , , $0000.
6 - OCIE1A: / 1: OCIE1A , / 1. ( $004) / 1 . TIFR ("1") .
5,4 - ; AT90S2313 0.
3 - TICIE1: : TICIE1 , . ( $003) 11 (PD6/ICP). TIFR ("1") .
2 - ; AT90S2313 0.
1 - TOIE0: / 0. 1, I 1, / 0. ($006). (TOV0) (TIFR) / 1.
0 - ; AT90S2313 0.
B - DDRB
$17 ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
DDB7 | DDB6 | DDB5 | DDB4 | DDB3 | DDB2 | DDB1 | DDB0 | DDRB | |
R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
D - DDRD
$11($31) ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
- | DDD6 | DDD5 | DDD4 | DDD3 | DDD2 | DDD1 | DDD0 | DDRD | |
R | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
(UBRR)
$09 ($29) ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
MSB | - | - | - | - | - | - | LSB | UBRR | |
R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
8- , .
- SREG
$3F($5F) / :
$3F($5F) ./. (R/W) . . |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
I | T | H | S | V | N | Z | C | SREG | |
R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7 - I: . . - GIMSK/TIMSK. (0), GIMSK/TIMSK, . I RETI, .
6 - T: . BLD (Bit LoaD) BST (Bit STore) . T BST, T BLD.
5 - H: . . .
4 - S: , S = N XOR V. S N ( ) V ( ). .
3 - V: . . .
2 - N: . . .
1 - Z: . . .
0 - C: . . .
UART (USR)
$0B($2B) ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
RXC | TXC | UDRE | FE | OR | - | - | - | USR | |
R | R | R | R | R | R | R | R | ||
0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
USR , UART.
Bit 7 - RXC - . 1 UDR. . RXCIE UCR, . RXC UDR. , UDR RXC, .
Bit 6 - TXC - . 1 ( ) , UDR . , . TXIE UCR, TXC . TXC . , , 1.
Bit 5 - UDRE - UART . 1 , UDR . , . UDRIE UCR, . UDRE UDR. , UDR, UDRE, . 1, .
Bit 4 - FE - . , .. FE .
Bit 3 - OR - . , .. UDR , . , .. , UDR . OR , UDR.
2..0 - . AT90S2313 0.
A / 1 - OCR1AH OCR1AL
$2B ($4B) ./. (R/W) .. |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
MSB | - | - | - | - | - | - | - | OCR1AH | |
R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
$2A ($4A) ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
- | - | - | - | - | - | - | LSB | OCR1AL | |
R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
- 16- , .
, / 1. / 1 .
OCR1A 16-, , , . , , OCR1AH OCR1AL. , .
EEPROM - EECR
$1C($3C) ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
- | - | - | - | - | EEMWE | EEWE | EERE | EECR | |
R | R | R | R | R | R/W | R/W | R/W | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7..3 - . AT90S2313 0.
2 - EEMWE - . , EEWE. EEMWE , EEWE EEPROM. , EEWE . .
1 - EEWE - EEPROM. EEWE EEPROM. EEPROM EEWE. "1" EEWE EEMWE, EEPROM. 蠠 ⠠ EEPROM ࠠ :
1. EEWE
2. EEAR ( )
3. EEDR ( )
4. 1 EEMWE
5. 4 EEMWE 젠 EEWE
( 2.5 mS Vcc=5V 4mS Vcc=2.7), EEWE . , . EEWE, .
0 - EERE - EEPROM. EERE EEPROM. EEAR, EERE. EERE , EEDR. EEPROM EERE. EERE, Ӡ . EEWE, , .
- ACSR
$08($28) ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
ACD | - | ACO | ACI | ACIE | ACIC | ACIS1 | ACIS0 | ACSR | |
R/W | R | R | R/W | R/W | R/W | R/W | R/W | ||
0 | 0 | N/A | 0 | 0 | 0 | 0 | 0 |
7 - ACD - . , . . , . ACD ACIE ACSR. .
6 - . AT90S2313 0.
5 - ACO - . ACO .
4 - ACI - . , ACIS1 ACIS0. , ACIE (1) I . ACI . ACI - .
3 - ACIE - . I , . (0), .
2 - ACIC - . , /1 . , .
, . /1, TICIE1 TIMSK.
1,0 - ACIS1, ACIS0 - . .15.
15. ACIS1/ACIS0
ACIS1 |
ACIS0 |
|
0 |
0 |
|
0 |
1 |
|
1 |
0 |
|
1 |
1 |
|
MCUCR
.
$35($55) ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
- | - | SE | SM | ISC11 | ISC10 | ISC01 | ISC00 | MCUCR | |
R | R | R/W | R/W | R/W | R/W | R/W | R/W | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7,6 - . AT90S2313 0.
5 - Sleep Enable - Sleep. 1, SLEEP (Sleep). 1 SLEEP.
4 - Sleep Mode - Sleep. . (0), Sleep (Idle mode). , - (Power down). .
3,2 - ISC11, ISC10: 1: INT1 I SREG GIMSK. 4 .
1,0 - ISC01, ISC00: 0: INT0 I SREG GIMSK. 5 .
4. 1.
ISC11 | ISC10 | |
0 | 0 | INT1 |
0 | 1 | |
1 | 0 | INT1 |
1 | 1 | INT1 |
ISC10 INT1
: ISC11/ ISC10 INT1 GIMSK. .
5. 0.
ISC01 |
ISC00 |
|
0 |
0 |
INT0 |
0 |
1 |
|
1 |
0 |
INT0 |
1 |
1 |
INT0 |
- WDTCR
$21($41) ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
- | - | - | WDTOE | WDE | WDP2 | WDP1 | WDP0 | WDTCR | |
R | R | R | R/W | R/W | R/W | R/W | R/W | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7..5 - . AT90S2313 0.
4 - WDTOE - . WDE (1). , . , .
3 - WDE- . (1), , - . , WDTOE 1. :
1. 1 WDTOE WDE. WDE ࠠ
2. WDE 0, ࠠ .
2..0 - WDP2..0 - . , . 13 Vcc=5V.
13.
WDP2 | WDP1 | WDP0 | WDP2 | WDP1 | WDP0 | |||
0 | 0 | 0 | 16 | 1 | 0 | 0 | 256 | |
0 | 0 | 1 | 32 | 1 | 0 | 1 | 512 | |
0 | 1 | 0 | 64 | 1 | 1 | 0 | 1024 | |
0 | 1 | 1 | 128 | 1 | 1 | 1 | 2048 |
AT90S2313
$33($53) ./. (R/W) .. |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
- |
- |
- |
- |
- |
CS02 |
CS01 |
CS00 |
TCCR0 |
|
R |
R |
R |
R |
R |
R/W |
R/W |
R/W |
||
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
2,1,0 - CS02, CS01, CS00 - . .
6.
CS02 |
CS01 |
CS00 |
|
0 |
0 |
0 |
/ |
0 |
0 |
1 |
CK |
0 |
1 |
0 |
CK/8 |
0 |
1 |
1 |
CK/64 |
1 |
0 |
0 |
CK/256 |
1 |
0 |
1 |
CK/1024 |
1 |
1 |
0 |
T0, |
1 |
1 |
1 |
T0, |
UART (UCR)
$0A($2A) ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
RXCIE | TXCIE | UDRIE | RXEN | TXEN | CHR9 | RXB8 | TXB8 | UCR | |
R/W | R/W | R/W | R/W | R/W | R/W | R | W | ||
0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7 - RXCIE - . (1), RXC USR ( )
6 - TXCIE - . , TXC USR ( , ).
5 - UDRIE - . , UDRE USR UART ( , ).
4 - RXEN - . UART. , TXC, OR FE . , RXEN .
3 - TXEN - . UART. , , UDR.
2 - CHR9 - 9- . , 9 . 9- RXB8 TXB8 . 9- .
1 - RXB8 - 8 . CHR9, 9- .
0 - TXB8 - 8 . CHR9, 9- .
/ UART UDR
$0C ($2C) ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
MSB | - | - | - | - | - | - | LSB | UDR | |
R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
UDR , . , - .
/ 1 - ICR1H ICR1L
$25 ($45) ./. (R/W) .. |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
MSB | - | - | - | - | - | - | - | ICR1H | |
R | R | R | R | R | R | R | R | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
$24 ($44) ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
- | - | - | - | - | - | - | LSB | ICR1L | |
R | R | R | R | R | R | R | R | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
16- , .
( ICES1) ICP / 1 ICR1. ICF1.
16-, , , . ICR1L, , ICR1H . , . 16- .
.
SM (0), SLEEP (Idle mode). , /, . , / . , ACD ACSR. .
.
(1) SE MCUCR, SLEEP. , , SLEEP. / . , .
, Power Down, - 16 . 0 .
.
AT90S2313 10 . . 1, I .
. 2. . . , INT0 - 0 ..
2. .
1 | $000 | RESET | |
2 | $001 | INT0 | 0 |
3 | $002 | INT1 | 1 |
4 | $003 | TIMER1 CAPT1 | / 1 |
5 | $004 | TIMER1 COMP1 | / 1 |
6 | $005 | TIMER1 OVF1 | / 1 |
7 | $006 | TIMER0,OVF0 | / 0 |
8 | $007 | UART RX | : |
9 | $008 | UART UDRE | : |
10 | $009 | UART TX | : |
11 | $00A | ANA_COMP |
:
ࠠ 䠠
$000 rjmp RESET ;
$001 rjmp EXT_INT0 ; IRQ0
$002 rjmp EXT_INT1 ; IRQ1
$003 rjmp TIM_CAPT1 ; 1
$004 rjmp TIM_COMP1 ; 1
$005 rjmp TIM_OVF1 ; 1
$006 rjmp TIM_OVF0 ; 0
$007 rjmp UART_RXC ;
$008 rjmp UART_DRE ; UDR
$009 rjmp UART_TXC ;
$00A rjmp ANA_COMP ;
$00B MAIN: <instr> xxx ;
, . Ttout. .
, . , , , . Tpor Tout (. ).
3. (Vcc=5.0 B).
Min | Typ | Max | |||
Vpor | 1.8 | 2 | 2.2 | ||
Vrst | RESET | VCC/2 | |||
Tpor | 2 | 3 | 4 | ||
Ttout | (FSTRT ) | 11 | 16 | 21 | |
Ttout | (FSTRT ) | 1.0 | 1.1 | 1.2 |
, , - FSTRT.
RESET , , . RESET . .
1
|
|
Bit 7 |
Bit 6 |
Bit 5 |
Bit 4 |
Bit 3 |
Bit 2 |
Bit 1 |
Bit 0 |
. |
||||||
$3F($5F) |
SREG |
I |
T |
H |
S |
V |
N |
Z |
C |
14 |
||||||
$3E($5E) |
|
|||||||||||||||
$3D($5D) |
SPL |
SP7 |
SP6 |
SP5 |
SP4 |
SP3 |
SP2 |
SP1 |
SP0 |
15 |
||||||
$3C($5C) |
|
|||||||||||||||
$3B($5B) |
GIMSK |
INT1 |
INT0 |
- |
- |
- |
- |
- |
- |
20 |
||||||
$3A($5A) |
GIFR |
INTF1 |
INTF0 |
- |
- |
- |
- |
- |
- |
20 |
||||||
$39($59) |
TIMSK |
TOIE1 |
OCIE1A |
- |
- |
TICIE1 |
- |
TOIE0 |
- |
21 |
||||||
$38($58) |
TIFR |
TOV1 |
OCF1A |
- |
- |
ICF1 |
- |
TOV0 |
- |
22 |
||||||
|
|
|
||||||||||||||
$35($55) |
MCUCR |
- |
- |
SE |
SM |
ISC11 |
ISC10 |
ISC01 |
ISC00 |
25 |
||||||
$34($54) |
|
|||||||||||||||
$33($53) |
TCCR0 |
- |
- |
- |
- |
- |
CS02 |
CS01 |
CS00 |
28 |
||||||
$32($52) |
TCNT0 |
/ (8 ) |
29 |
|||||||||||||
|
|
|
||||||||||||||
$2F($4F) |
TCCR1A |
COM1A1 |
COM1A0 |
- |
- |
- |
- |
PWM11 |
PWM10 |
30 |
||||||
$2E($4E) |
TCCR1B |
ICNC1 |
ICES1 |
- |
- |
CTC1 |
CS12 |
CS11 |
CS10 |
32 |
||||||
$2D($4D) |
TCNT1H |
/1 |
33 |
|||||||||||||
$2C($4C) |
TCNT1L |
/1 |
33 |
|||||||||||||
$2B($4B) |
OCR1AH |
/ 1 |
34 |
|||||||||||||
$2A($4A) |
OCR1AL |
/1 |
34 |
|||||||||||||
|
|
|
||||||||||||||
$25($45) |
ICR1H |
/1 |
34 |
|||||||||||||
$24($44) |
ICR1L |
/1 |
35 |
|||||||||||||
|
|
|
||||||||||||||
$21($41) |
WDTCR |
- |
- |
- |
WDTOE |
WDE |
WDP2 |
WDP1 |
WDP0 |
37 |
||||||
|
|
|
||||||||||||||
$1E($3E) |
EEAR |
- |
|
39 |
||||||||||||
$1E($3E) |
EEDR |
|
39 |
|||||||||||||
$1E($3E) |
EECR |
- |
- |
- |
- |
- |
EEMWE |
EEWE |
EERE |
39 |
||||||
|
|
|
||||||||||||||
$18($38) |
PORTB |
PORTB7 |
PORTB6 |
PORTB5 |
PORTB4 |
PORTB3 |
PORTB2 |
PORTB1 |
PORTB0 |
48 |
||||||
$17($37) |
DDRB |
DDB7 |
DDB6 |
DDB5 |
DDB4 |
DDB3 |
DDB2 |
DDB1 |
DDB0 |
49 |
||||||
$16($36) |
PINB |
PINB7 |
PINB6 |
PINB5 |
PINB4 |
PINB3 |
PINB2 |
PINB1 |
PINB0 |
49 |
||||||
|
|
|
||||||||||||||
$12($32) |
PORTD |
- |
PORTD6 |
PORTD5 |
PORTD4 |
PORTD3 |
PORTD2 |
PORTD1 |
PORTD0 |
51 |
||||||
$11($31) |
DDRD |
- |
DDD6 |
DDD5 |
DDD4 |
DDD3 |
DDD2 |
DDD1 |
DDD0 |
52 |
||||||
$10($30) |
PIND |
- |
PIND6 |
PIND5 |
PIND4 |
PIND3 |
PIND2 |
PIND1 |
PIND0 |
52 |
||||||
|
|
|
||||||||||||||
$0C($2C) |
UDR |
UART |
42 |
|||||||||||||
$0B($2B) |
USR |
RXC |
TXC |
UDRE |
FE |
OR |
- |
- |
- |
43 |
||||||
$0A($2A) |
UCR |
RXCIE |
TXCIE |
UDRIE |
RXEN |
TXEN |
CHR9 |
RXB8 |
TXB8 |
44 |
||||||
$09($29) |
UBRR |
UART |
46 |
|||||||||||||
$08($28) |
ACSR |
ACD |
- |
ACO |
ACI |
ACIE |
ACIC |
ACIS1 |
ACIS0 |
46 |
||||||
|
|
|
||||||||||||||
AT90S2313:
R0 | $00 | |
R1 | $01 | |
R30 | $1E | |
R31 | $1F | |
./ | ||
$00 | $20 | |
$00 | $21 | |
$3E | $5E | |
$3F | $5F | |
$60 | ||
$61 | ||
$DE | ||
$DF |
224 , / . 96 /, 128 - .
: , , , . R26..R31 .
.
63 Y Z.
X, Y Z.
32 , 64 / 128 .
1 ( 5). 16 2048 . RC .
WDR . 8- , WDR . , WDR, AT90S2313 , .
, , WDTCR.
/ 0 - TCNT0.
$32($52) ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
MSB | - | - | - | - | - | - | LSB | TCNT0 | |
R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
/ . /, , / .
/ 1 - TCNT1H TCNT1L
$2D ($4D) ./. (R/W) .. |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
MSB | - | - | - | - | - | - | - | TCNT1H | |
R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
$2C ($4C) ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
- | - | - | - | - | - | - | LSB | TCNT1L | |
R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
16- , / 1. , c (TEMP).
- 1: TCNT1H, TEMP. , , TEMP / 1. , 16- TCNT1H.
- / 1: TCNT1L, , TCNT1H TEMP, 16-. TCNT1H, TEMP.
/ 1 ( - /) . / 1, , .
/
- (), / 1 OCR1A 8, 9 10- "" , PB3(OC1). / 1 0 (. .10). , . 8, 9 10- OCR1A, PD3(OC1) COM1A1 COM1A0 TCCR1 (. .11).
10. .
8 | $00FF (255) | Ftc1/510 |
9 | $01FF (511) | Ftc1/1022 |
10 | $03FF (1023) | Ftc1/2046 |
, OCR1A, 10 / . (), OCR1A.
11. .
COM1A1 | COM1A1 | OC1 |
0 | 0 | |
0 | 1 | |
1 | 0 | , ( ) |
1 | 1 | , ( ) |
OCR1A $0000 (TOP), OC1 , COM1A1 COM1A0. . 12.
12. OCR=$0000 TOP
COM1A1 | COM1A1 | OCR1A | OC1 |
1 | 0 | $0000 | |
1 | 0 | TOP | |
1 | 1 | $0000 | |
1 | 1 | TOP |
1 (TOV1) , $0000. 1 /, .. , TOV1 . .
/
AT90S2313 / , 8- 16-. 10- . , .
(CK), (CK/8, CK/64, CK/256 CK/1024) . , , .
SP
8- $3D ($5D) AT90S2313. 8- , $60-$DF.
$3D($5D) ./. (R/W) . . |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
SP7 | SP6 | SP5 | SP4 | SP3 | SP2 | SP1 | SP0 | SPL | |
R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
. . 1 PUSH 2 CALL . 1 POP 2 (RET RETI).
-
AT90S2313 (UART), :
-
-
- 8 9
-
-
-
-
- - , .
INT0 INT1. , . . , . MCUCR. , , .
MCUCR.
RESET. , , . RESET Vrst, Ttout.
- 4 . . 4 (9 ) , 2. 2 . , .
4 . 4 . , .
, SREG , , . SREG, .
.
AVR . .
(pipeline) , . 1MIPS , , .
B - PINB
$16 ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
PINB7 | PINB6 | PINB5 | PINB4 | PINB3 | PINB2 | PINB1 | PINB0 | PINB | |
R | R | R | R | R | R | R | R | ||
Hi-Z | Hi-Z | Hi-Z | Hi-Z | Hi-Z | Hi-Z | Hi-Z | Hi-Z |
PINB , B. PORTB, -, PINB .
D - PIND
$10 ($30) ./. (R/W) .. |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
- | PIND6 | PIND5 | PIND4 | PIND3 | PIND2 | PIND1 | PIND0 | PIND | |
R | R | R | R | R | R | R | R | ||
0 | Hi-Z | Hi-Z | Hi-Z | Hi-Z | Hi-Z | Hi-Z | Hi-Z |
PIND , D. PORTD, -, PIND .
.
AT90S2313 2 . 16- , 1K 16- . - 1000 .
10 1024 -.
.
0-2K. (. LPM).