224 30 649KB
Russian Pages 57 Year 2003
AT90S2333 AT90S2333 RISC
AT90S4433 AVR. 1MIPS . AVR . 32
32
:2
Atmel
8-
, , AT90S2333
AT90S4433
, RISC
, -
. CISC ; 128/256
/4
/
AT90S4433
; 32
;
;
( . AT90S2333/4433
EEPROM; 128 / ; 6-
, 20 ; 10-
; SPI . ,
/ ,
; .Э
, SPI
),
(Idle Mode)
; -
, (Power Down Mode)
, . Atmel. SPI 8-
. , AT90S2333/4433
RISC
, AT90S2333/4433
, /
,
.
RESET PD0/RXD PD1/TXD PD2/INT0 PD3/INT1 PD4/T0 VCC GND XTAL1 XTAL2 PD5/T1 PD6/AIN0 PD7/AIN1 PB0/ICP PB1/OC1 PB2/SS PB3/MOSI PB4/MISO PB5/SCK AVCC AREF AGND PC0/ADC0 PC1/ADC1 PC2/ADC2 PC3/ADC3 PC4/ADC4
29 30 31 32 1 2 4 5 7 8 9 10 11 12 13 14 15 16 17 18 20 21 23 24 25 26 27
PDIP 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
PC5/ADC5
28
28
. ,
Ы GND Port B (PB5..PB0) .
B
6B
/ 20
, B Port
. ,
PB0..PB5 .
,
(P 5..P 0) .
.
6-
/ 20
,
. ,
P 0..P 5 .
. Port D (PD5..PD0) .
D
8B
/ 20
.
, .
D
RESET -
PD0..PD7 ,
-
,
.
. ),
( -
. XTAL1 XTAL2 -
. . .Э
AVCC . AREF -
.
,
2.7 ...AVCC.
AGND -
,
.
GND.
ɄȼȺɊɐȿȼɕɃ ȽȿɇȿɊȺɌɈɊ XTAL1
XTAL2 .
, ,
.
,
XTAL2
HC, XTAL2
5pF. , XTAL1
.
Ɉɛɡɨɪ ɚɪɯɢɬɟɤɬɭɪɵ ɩɪɨɰɟɫɫɨɪɨɜ. 32 8-
,
.
.
,
,
. 32
-
16-
, (16-
(
X, Y
Z)
Z).
. c
,
.
. ,
, 00h-1Fh 64
/ ,
,
. ,
/
.
/
,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/ɜɵɜɨɞɚ AT90S2333/4433 Ⱥɞɪɟɫɚ 3Fh(5Fh) 3Dh(5Dh) 3Bh(5Bh) 3Ah(5Ah) 39h(59h) 38h(58h) 35h(55h) 34h(54h) 33h(53h) 32h(52h) 2Fh(4Fh) 2Eh(4Eh)
ɪɟɝɢɫɬɪɵ SREG SP GIMSK GIFR TIMSK TIFR MCUCR MCUSR TCCR0 TCNT0 TCCR1A TCCR1B
ɧɚɡɜɚɧɢɟ Status REGister Stack pointer low General Interrupt MaSK register General Interrupt Flag Register Timer/counter Interrupt mask register Timer/counter Interrupt Flag register MCU general Control Register MCU Status Register Timer/Counter 0 Control Register Timer/Counter 0 (8- ) Timer/Counter 1 Control Register A Timer/Counter 1 Control Register B
2Dh(4Dh) 2Ch(4Ch) 2Bh(4Bh) 2Ah(4Ah) 27h(47h) 26h(46h) 21h(41h) 1Eh(3Eh) 1Dh(3Dh) 1Ch(3Ch) 18h(38h) 17h(37h) 16h(36h) 15h(35h) 14h(34h) 13h(33h) 12h(32h) 11h(31h) 10h(30h) 0Fh(2Fh) 0Eh(2Eh) 0Dh(2Dh) 0Ch(2Ch) 0Bh(2Bh) 0Ah(2Ah) 09h(29h) 08h(28h) 07h(27h) 06h(26h) 05h(25h) 04h(24h) 03h(23h)
TCNT1H TCNT1L OCR1H OCR1L ICR1H ICR1L WDTCR EEAR EEDR EECR PORTB DDRB PINB PORT DDR PIN PORTD DDRD PIND SPDR SPSR SPCR UDR USR UCR UBRR ACSR ADMUX ADCSR ADCH ADCL UBRRHI
Timer/Counter 1 High byte Timer/Counter 1 Low byte Output Compare Register 1 high byte Output Compare Register 1 low byte T/C 1 Input Cupture Register High Byte T/C 1 Input Cupture Register Low Byte Watchdog Timer Control Register EEPROM Address Register EEPROM Data Register EEPROM Control Register Data Register, Port B Data Direction Register Port B Input pins, Port B Data Register, Port Data Direction Register Port Input pins, Port Data Register, Port D Data Direction Register Port D Input pins, Port D SPI I/O Data Register SPI Status Register SPI Control Register UART Data Register UART Status Register UART Control Register UART Baud Rate Register Analog Comparator Control and Status Register ADC multiplexer Select register ADC Control and Status Register ADC data register High ADC data register Low UART Baud Rate Register HIgh
:
ɮɭɧɤɰɢɢ
/ / .
. 0 /
0 (8
)
.A .B
1 1 / /
1 1 .1 .1 \ 1 \ 1
B B B
D D D SPI SPI SPI
. .
.
( (
.) .) (
.)
/ IN /
.
/ 32-
OUT, 00h..1Fh
SBI SBIC
. IN, OUT, SBIS , . ,
/
. CBI.
SBIS.
SBIC,
$00..$3F. $20. /
Ɋɟɝɢɫɬɪ ɫɨɫɬɨɹɧɢɹ – SREG 3Fh(5Fh) 3Fh (5Fh)
7 I R\W 0
3Fh(5Fh)
6 T R\W 0
5 H R\W 0
7 - I:
/
4 S R\W 0
:
3 V R\W 0
2 N R\W 0
1 Z R\W 0
0 S R\W 0
.
. - GIMSK
(0),
GIMSK/TIMSK RETI, .
6 - T:
.
TIMSK.
I . BLD (Bit LoaD)
BST (Bit STore)
. BST,
T 5 - H: 4 - S:
(
. Э . , S = N XOR V. ).
. S
N(
.Э
2 - N: .
) .
. Э
3 - V:
1 - Z: . 0 - C:
T BLD.
. . .
.Э .
.Э
. .
V
ɍɤɚɡɚɬɟɥɶ ɫɬɟɤɚ SP Э
8-
3Dh (5Dh)
. 8-
,
60h -DFh.
3Dh(5Dh)
7 SP7 R\W 0
6 SP6 R\W 0
5 SP5 R\W 0
4 SP4 R\W 0
3 SP3 R\W 0
2 SP2 R\W 0
1 SP1 R\W 0
0 SP0 R\W 0
. . 1
PUSH
CALL
.
2 1
POP
2
(RET
RETI).
***
ɋɛɪɨɫ ɢ ɨɛɪɚɛɨɬɤɚ ɩɪɟɪɵɜɚɧɢɣ. .Э
13 .
1,
I
. .
Э
. .
0
,
INT0 -
. .
:
000h
rjmp RESET
Ɉɛɪɚɛɨɬɤɚ ɫɛɪɨɫɚ
001h 002h 003h 004h 005h 006h 007h 008h 009h 00Ah 00Bh 00Ch 00Dh 00Eh
rjmp EXT_INT0 rjmp EXT_INT1 rjmp TIM1_CAPT rjmp TIM1_COMP rjmp TIM1_OVF rjmp TIM0_OVF rjmp SPI_STC rjmp UART_RXC rjmp UART_DRE rjmp UART_TXC rjmp ADC rjmp EE_RDY rjmp ANA_COMP
Ɉɛɪɚɛɨɬɤɚ IRQ0 Ɉɛɪɚɛɨɬɤɚ IRQ1 Ɉɛɪɚɛɨɬɤɚ ɡɚɯɜɚɬɚ ɬɚɣɦɟɪɚ 1 Ɉɛɪɚɛɨɬɤɚ ɫɨɜɩɚɞɟɧɢɹ ɬɚɣɦɟɪɚ 1 Ɉɛɪɚɛɨɬɤɚ ɩɟɪɟɩɨɥɧɟɧɢɹ ɬɚɣɦɟɪɚ 1 Ɉɛɪɚɛɨɬɤɚ ɩɟɪɟɩɨɥɧɟɧɢɹ ɬɚɣɦɟɪɚ 0 Ɉɛɪɚɛɨɬɤɚ ɩɟɪɟɞɚɱɢ ɩɨ SPI Ɉɛɪɚɛɨɬɤɚ ɩɪɢɟɦɚ ɛɚɣɬɚ Ɉɛɪɚɛɨɬɤɚ ɨɫɜɨɛɨɠɞɟɧɢɹ UDR Ɉɛɪɚɛɨɬɤɚ ɩɟɪɟɞɚɱɢ ɛɚɣɬɚ Ɉɛɪɚɛɨɬɤɚ ɩɪɟɨɛɪɚɡɨɜɚɧɢɹ Ⱥɐɉ Ɉɛɪɚɛɨɬɤɚ ɝɨɬɨɜɧɨɫɬɢ EEPROM Ɉɛɪɚɛɨɬɤɚ ɚɧɚɥɨɝɨɜ. ɤɨɦɩɚɪɚɬɨɪɚ ɇɚɱɚɥɨ ɨɫɧɨɜɧɨɣ ɩɪɨɝɪɚɦɦɵ
-
ɋɛɪɨɫ ɢ ɜɟɤɬɨɪɵ ɩɪɟɪɵɜɚɧɢɣ. ɇɨɦɟɪ ɜɟɤɬɨɪɚ 1 2 3 4 5 6 7 8 9 10 11 12 13
14
Ⱥɞɪɟɫ
ɂɫɬɨɱɧɢɤ
000h 001h 002h 003h 004h 005h 006h 007h 008h 009h 00Ah 00Bh 00Ch
RESET INT0 INT1 TIMER1 CAPT TIMER1 COMP TIMER1 OVF TIMER0 OVF SPI, STC UART RX UART UDRE UART TX ADC RDY
00Dh
Ɉɩɢɫɚɧɢɟ ɩɪɟɪɵɜɚɧɢɹ ,
Brown-Out reset 0 1 /
.
1 /
1 / /
1 0
SPI . . . EEPROM
COMP
ɂɋɌɈɑɇɂɄɂ ɋȻɊɈɋȺ AT90S2333/4433 * *
. .
VCC
.
GND.
RESET
. *
.
,
. * Brown-Out
Vcc
.
/ $000,
, RJMP -
. ,
.
ɋɛɪɨɫ ɩɨ ɜɤɥɸɱɟɧɢɸ ɩɢɬɚɧɢɹ .
- 2.2 .
. ,
. . Э
4.
Ɍɚɛɥɢɰɚ 3. ɏɚɪ ɚɤɬɟɪɢɫɬɢɤɢ ɫɛɪɨɫɚ.(Vcc=5.0V)
Vpower Vreset Vbodlevel
Min
Typ
Max
1.7v
2.2v
2.7v
2.6v 3.8v
0.6Vcc 2.7v 4.0v
2.8v 4.2v
RESET Brown-Out
BODLEVEL=1
Brown-Out
BODLEVEL=0
Ɍɚɛɥɢɰɚ 4. ɍɫɬɚɧɨɜɤɚ ɜɪɟɦɟɧɢ ɫɛɪɨɫɚ ȼɪɟɦɹ ɡɚɩɭɫɤɚ 4mS + 6CK 6CK 64mS + 16K CK 4mS + 16K CK 16K CK 64mS + 1K CK 4mS + 1K CK 1K CK
CKSEL [2:0] 000 001 010 011 100 101 110 111
ȼɇȿɒɇɂɃ ɋȻɊɈɋ RESET. . Tout
Vrst
,
.
BROWN-OUT AT90S2333/4433 -
. BODEN. . BODLEVEL .
BODEN
, (
2.7
.4).
4 50
.
,
3 4 (7
2.7 ).
ɋȻɊɈɋ ɉɈ ɋɌɈɊɈɀȿȼɈɆɍ ɌȺɃɆȿɊɍ
1 .
,
ɊȿȽɂɋɌɊ ɋɈɋɌɈəɇɂə ɉɊɈɐȿɋɋɈɊȺ - MCUSR Э
,
. MCUSR
7 R 0
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E1A: 004h)
0 R\W 0
1:
, (
1 TOIE0 R\W 0
/ 1
1. TIFR
.
OCIE1A ( ("1")
. 5,4 -
; AT90S2333/4433
0.
3 - TICIE1:
: , 11 (PD6/ICP). ; AT90S2333/4433
2-
TICIE1 . TIFR
( ("1") 0.
1 - TOIE0:
/
0.
1,
1,
/ (006h).
(TIFR) 0-
003h) .
/
0. (TOV0)
1.
; AT90S2333/4433
0.
ɊȿȽɂɋɌɊ ɎɅȺȽɈȼ ɉɊȿɊɕȼȺɇɂɃ ɈɌ ɌȺɃɆȿɊɈȼ/ɋɑȿɌɑɂɄɈȼ – TIFR TIFR
38h(58h)
7 TOV1 R\W 0
6 OCF1 R\W 0
5 R\W 0
4 R\W 0
3 ICF1 R\W 0
2 R\W 0
1 TOV0 R\W 0
0 R\W 0
I
7 - TOV1: / 1. , TOV1 / 1
/
1:
TOV1
("1")
TOV1
. ,
.
I SREG /
1.
,
0000h.
6 - OCF1A: 1 . , TIMSK,
1 : OCR1A.
/
"1" .
OCF1A
5,4 -
I SREG
3 - ICF1:
0.
1: /
("1")
,
1
,
ICR1. ICF1 .
,
,
.
; AT90S2333/4433
0.
1 - TOV0:
1:
TOV0
("1") . TOIE0 TIMSK,
0. .
I SREG /
0-
OCIE1A
.
; AT90S2333/4433
2-
TOIE1 TIMSK,
/ , TOV0
0.
; AT90S2333/4433
0. ȼɇȿɒɇɂȿ ɉɊȿɊɕȼȺɇɂə INT0 INT1. ,
.Э
.
.Э
,
-
MCUCR.
, ,
. MCUCR. ȼɊȿɆə ɊȿȺɄɐɂɂ ɇȺ ɉɊȿɊɕȼȺɇɂȿ -4
.
. ,
4
2. 2
.
,
. 4
.
4
. . ,
,
SREG
,
.
SREG, ( . .
. /
1
) ,
.
,
ɊȿȽɂɋɌɊ ɍɉɊȺȼɅȿɇɂə ɆɂɄɊɈɄɈɇɌɊɈɅɅȿɊɈɆ – MCUCR Э
. MCUCR
7 R 0
35h(55h)
7,6 -
.
6 R 0
5 SE R\W 0
4 SM R\W 0
3 ISC11 R\W 0
2 ISC10 R\W 0
1 ISC01 R\W 0
AT90S2333/4433
0.
Sleep: Э
5 - SE:
0 ISC00 R\W 0
1,
SLEEP
. SLEEP. 4 - SM:
Sleep: Э Sleep
. (Idle mode).
down).
(0), (Power
,.
3,2 - ISC11, ISC10: I
1:
INT1
SREG :
1,0 - ISC01, ISC00: I GIMSK. 6
GIMSK.
0:
INT0
SREG . Ɍɚɛɥɢɰɚ 5. ɍɩɪɚɜɥɟɧɢɟ ɫɪɚɛɚɬɵɜɚɧɢɟɦ ɩɪɟɪɵɜɚɧɢɹ 1.
ISC11 0 0 1 1
Ɉɩɢɫɚɧɢɟ
ISC10 0 1 0 1
:
INT1 INT1 INT1 INT1
. ISC11/ISC10 GIMSK.
INT1 .
Ɍɚɛɥɢɰɚ 6. ɍɩɪɚɜɥɟɧɢɟ ɫɪɚɛɚɬɵɜɚɧɢɟɦ ɩɪɟɪɵɜɚɧɢɹ 0. ISC01 0 0 1 1 :
Ɉɩɢɫɚɧɢɟ
ISC0 0 1 0 1
INT0 INT0 . ISC01 GIMSK.
ISC00,
INT0 INT0
INT0 .
ɊȿɀɂɆɕ ɉɈɇɂɀȿɇɇɈȽɈ ɗɇȿɊȽɈɉɈɌɊȿȻɅȿɇɂə. (1)
SE
MCUCR,
SLEEP. ,
, SLEEP.
/
.
,
. ,
.
. .
SM
(0),
/
SLEEP
.Э
, ,
(Idle mode).
,
/
.
,
ACSR. Э
ACD .
.
Э
. SM
(1),
SLEEP
(Power Down Mode). .
.
, .
,
, brown-out . ,
. Э
. , 1uS
.
, 5
25
.
, . .
CKSEL, 7.
,
,
,
, .
Ɍɚɛɥɢɰɚ 7. ɍɫɬɚɧɨɜɤɚ ɡɚɞɟɪɠɤɢ ɜɤɥɸɱɟɧɢɹ CKSEL [2:0] 000 001 010 011 100 101 110 111
ȼɪɟɦɹ ɡɚɩɭɫɤɚ 6CK 6CK 16K CK 16K CK 16K CK 1K CK 1K CK 1K CK
ɌȺɃɆȿɊɕ/ɋɑȿɌɑɂɄɂ AT90S2333/4433
/
. 8-
16-
.
10-
. . (CK),
(CK/8, CK/64, CK/256 ,
CK/1024)
.
,
. 8-ɊȺɁɊəȾɇɕɃ ɌȺɃɆȿɊ/ɋɑȿɌɑɂɄ 0
8(CK/8, CK/64, CK/256 TCCR0.
/ CK/1024),
- CK, TIFR.
TCCR0. TIMSK.
/
,
.
, . 8-
. /
, . . ɊȿȽɂɋɌɊ ɍɉɊȺȼɅȿɇɂə ɌȺɃɆȿɊɈɆ/ɋɑȿɌɑɂɄɈɆ 0 - TCCR0 TCCR0
7 R 0
33h(53h)
7..3 -
.
6 R 0
4 R 0
3 R 0
2 CS02 R\W 0
AT90S2333/4433
2,1,0 - CS02, CS01, CS00 -
Ɉɩɢɫɚɧɢɟ Ɍɚɣɦɟɪ/ɫɱɟɬɱɢɤ ɨɫɬɚɧɨɜɥɟɧ CK CK/8 CK/64 CK/256 CK/1024 ȼɧɟɲɧɢɣ ɜɵɜɨɞ T0, ɧɚɪɚɫɬɚɸɳɢɣ ɮɪɨɧɬ ȼɧɟɲɧɢɣ ɜɵɜɨɞ T0, ɫɩɚɞɚɸɳɢɣ ɮɪɨɧɬ
/
/ (0 -
1 CS01 R\W 0
0 CS00 R\W 0
0.
.Э Ɍɚɛɥɢɰɚ 8. ȼɵɛɨɪ ɤɨɷɮɮɢɰɢɟɧɬɚ ɩɪɟɞɜɚɪɢɬɟɥɶɧɨɝɨ ɞɟɥɟɧɢɹ
CS02 CS01 CS00 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 Stop .
5 R 0
).
.
.
ɌȺɃɆȿɊ/ɋɑȿɌɑɂɄ 0 - TCNT0. TCNT0 7 MSB R\W 0
32h(52h)
6
5
4
3
2
1
R\W 0
R\W 0
R\W 0
R\W 0
R\W 0
R\W 0
/
0 LSB R\W 0
. ,
/
/
, .
16-ɊȺɁɊəȾɇɕɃ ɌȺɃɆȿɊ/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SREG EEWE.
, .Э
,
0 EERE R\W 0
0.
EEPROM. Э
2 - EEMWE EEMWE EEWE .
1 EEWE R\W 0
AT90S2333/4433
3 - EERIE -
,
EERIE,
EEWE.
EEWE
EEPROM.
,
.
1 - EEWE EEWE EEPROM.
R 0
2 EEMWE R\W 0
EEPROM. EEPROM EEMWE,
EEWE
EEPROM. "1"
EEWE.
EEPROM
(
1 2 3 4 5
EEWE EEAR ( EEDR ( 1 EEMWE EEMWE
4 (
2.5 mS
Vcc=5V
2
3
):
) ) EEWE
4mS ,
Vcc=2.7),
EEWE
. .
EEWE,
.
0 - EERE -
EEPROM. EEAR,
EERE EERE.
EEPROM. EERE EERE.
EEPROM . EEWE,
, .
, EERE,
EEDR.
ɉɈɋɅȿȾɈȼȺɌȿɅɖɇɕɃ ɂɇɌȿɊɎȿɃɋ SPI SPI
AT90S2333/4433 :
. SPI1. 2. 3. 4. 5. 6. 7.
3-
; ; ; ; ;
Idle. .
PB5(SCK) SPI PB3(MOSI)
. .
PB3(MOSI) (
SPIE
SPCR),
. (SPIF). PB2(SS)
.
. 16-
.
,
.
. .
SPI
,
.
. SS
.
/
SPI
MOSI, MISO, SCK
. 16.
SPI
MOSI MISO SCK SS
ɊȺȻɈɌȺ ȼɕȼɈȾȺ SS SPI SS.
(
MSTR
SS
SPCR),
,
SPI.
/
,
,
SPI
SS
. SPI
, .
SPI MSTR SPCR, SPIF SPSR, SPI
1. 2.
: SPI
.
MOSI
.
MSTR.
MSTR
,
.
SPI
, . .
. SS
,
SPI
SCK
,
, MISO, SS
SS
. , ,
.
SS
, .
. ,
SPI
Ɋɟɠɢɦɵ ɨɛɦɟɧɚ ɞɚɧɧɵɦɢ CPHA
CPOL
SCK .
.
.
SCK, CPOL=0 CPOL=1
,
CPHA SCK (
CPOL
, . ,
CPOL=0
CPHA=1
CPHA=0 CPOL=1 -
).
SCK. ɊȿȽɂɋɌɊ ɍɉɊȺȼɅȿɇɂə SPI – SPCR 7 SPIE R\W 0
0Dh(2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, . . , . .
.Э
, ,
UDRE
, UDRE,
.Э
4 - FE -
UDR
,
UDR
.
UDR
OR
UDR. 2..1 Э
.
AT90S2333/4433
0. .Э
0 - MPCM -
. .
MPCM
.
ɊȿȽɂɋɌɊ ɍɉɊȺȼɅȿɇɂə ɂ ɋɈɋɌɈəɇɂə UART (UɋSRB) 7 RXCIE R\W 0
0Ah(2Ah)
6 TXCIE R\W 0
5 UDRIE R\W 0
4 RXEN R\W 0
7 - RXCIE UCSRA
3 TXEN R\W 0
2 CHR9 R\W 1
.
1 RXB8 R 0
(1),
RXC
(
6 - TXCIE -
0 TXB8 W 0
).
.
,
(
,
TXC
5 - UDRIE UDRE UCSRA ).
.
, UART (
4 - RXEN , TXC, OR
. FE
.
3 - TXEN -
UCSRA
).
,
RXEN
.
,
UART. . UART.
, ,
UDR.
2 - CHR9 - 9-
.
, RXB8
9-
9 TXB8
. 9-
. 1 - RXB8 -
8
.
CHR9,
0 - TXB8 -
8
.
CHR9,
99-
. .
.
ȽȿɇȿɊȺɌɈɊ ɋɄɈɊɈɋɌɂ ɉȿɊȿȾȺɑɂ , : BAUD = Fck / (16*(UBRR+1)) BAUD ( ) Fck UBRR UBRRH
UBRR (0...4095) UBRR . .18
., 2400 4800 9600 14400 19200 28800 38400 57600 76800 115200 ., 2400 4800 9600 14400 19200 28800 38400 57600 76800 115200 ., 2400 4800 9600 14400 19200 28800 38400 57600 76800 115200
1.0000 MHz 25 12 6 3 2 1 1 0 0 0 3.2768 MHz 84 42 20 13 10 6 4 3 2 1 7.3728 MHz 191 95 47 31 23 15 11 7 5 3
. % 0.2 0.2 7.5 7.8 7.8 7.8 22.9 7.8 22.9 84.3 . % 0.4 0.8 1.6 1.6 3.1 1.6 6.3 12.5 12.5 12.5 . % 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
., 2400 4800 9600 14400 19200 28800 38400 57600 76800 115200 ., 2400 4800 9600 14400 19200 28800 38400 57600 76800 115200 ., 2400 4800 9600 14400 19200 28800 38400 57600 76800 115200
1.8432 MHz 47 23 11 7 5 3 2 1 1 0 3.6864 MHz 95 47 23 15 11 7 5 3 2 1 8.0000 MHz 207 103 51 34 25 16 12 8 6 3
. % 0 0 0 0 0 0 0 0 33.0 0 . % 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 . % 0.2 0.2 0.2 0.8 0.2 2.1 0.2 3.7 7.5 7.8
., 2400 4800 9600 14400 19200 28800 38400 57600 76800 115200 ., 2400 4800 9600 14400 19200 28800 38400 57600 76800 115200 ., 2400 4800 9600 14400 19200 28800 38400 57600 76800 115200
2.0000 MHz 51 25 12 8 6 3 2 1 1 0 4.0000 MHz 103 51 25 16 12 8 6 3 2 1 9.2160 MHz 239 119 59 39 29 19 14 9 7 4
. % 0.2 0.2 0.2 3.7 7.5 7.8 7.8 7.8 22.9 7.8 . % 0.2 0.2 0.2 2.1 0.2 3.7 7.5 7.8 7.8 7.8 . % 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 6.7 0.0
ɊȿȽɂɋɌɊ ɋɄɈɊɈɋɌɂ ɉȿɊȿȾȺɑɂ (UBRR) UBRRHI 7
6
5
4
3 MSB R\W 0
03h(23h) R 0
R 0
R 0
R 0
2
1 -
0 -
R\W 0
R\W 0
R\W 0
UBRR 7
6
5
4
3
2
1
R\W 0
R\W 0
R\W 0
R\W 0
R\W 0
R\W 0
R\W 0
0 LSB R\W 0
09h(29h)
Э
12-
, .
UBRRHI
4
, UBRR - 8
.
ȺɇȺɅɈȽɈȼɕɃ ɄɈɆɉȺɊȺɌɈɊ PD7(AIN1). Comparator Output). ,
PD6 (AIN0) , / .
ACO (Analog 1.
,
.
ɊȿȽɂɋɌɊ ɍɉɊȺȼɅȿɇɂə ɂ ɋɈɋɌɈəɇɂə ȺɇȺɅɈȽɈȼɈȽɈ ɄɈɆɉȺɊȺɌɈɊȺ (ACSR). ACSR 7 ACD R\W 0
08h(28h)
6 AINBG R 0
5 ACO
4 ACI R\W 0
R 0
7 - ACD .
3 ACIE R\W 0
2 ACIC R\W 1
.
1 ACIS1 R\W 0
0 ACIS0 R\W 0
, .
.
ACD
ACIE
ACSR.
.
6 - AINBG 1.22 + 0.05 .
.
,
AIN0
AIN0.
5 - ACO -
.
ACO
. .Э ACIS1
4 - ACI ACIE (1) . 3 - ACIE -
ACIS0. I ACI -
. ACI .
. .
2 - ACIC -
I (0),
,
.
.
,
/
1
. ,
. , /
1,
TICIE1
1,0 - ACIS1, ACIS0 -
. TIMSK. .
19.
.
ACIS1/ACIS0
ACIS1 ACIS0 0 0 0 1 1 0 1 1 :
ACIS1/ACIS0 ACSR.
.
ȺɇȺɅɈȽɈ-ɐɂɎɊɈȼɈɃ ɉɊȿɈȻɊȺɁɈȼȺɌȿɅɖ : -6 -
10 +- 1/2 65-260 uS
Sleep
AT90S2333/4433 . ,
10-
. C. . AVCC
VCC
AGND.
GND,
AVCC AREF. Э
+-0.3 . AGND-AVCC. ɊȺȻɈɌȺ Ⱥɐɉ -
. .
.
ADFR
ADMUX
ADCSR.
. .
"1" "
(ADEN ,
13.
25
- ADCS. Э .
1 , ,
.Э
-
. 10
ADCH
ADCSR). .
"
,
-
ADCL,
.
, . Э
:
.Э
ADCL. ADCL .
ADCH.
, (
ADCL
,
ADCH, .
ADCH),
. 50-200 kHz.
13
260 uS. . ADPS0-ADPS2.
, . .
65
100 ADEN ,
ADEN
. , ,
ADEN , :
ADCSR.
, .
1.
,
. .
ADEN=1 ADSC=0 ADFR=0 ADIE=1 2. 3.
.
. , .
ɊȿȽɂɋɌɊ ɍɉɊȺȼɅȿɇɂə ɆɍɅɖɌɂɉɅȿɄɋɈɊɈɆ Ⱥɐɉ – AMUX
07h(27h)
7 R\W 0
7-
6 ADCBG R 0
5
4 -
R 0
R\W 0
; AT90S2333/4433
6 - ADCBG 1.22+-0.05 , 5..3 2..0 - MUX2..MUX0 .
3 -
R\W 0
2 MUX2 R\W 1
1 MUX1 R\W 0
0 MUX0 R\W 0
0. -
, .
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ɂɂ PORTB SCK - PORTB, Bit 5 -
SPI.
SPI
,
DDB5.
, , MISO - PORTB, Bit 4 PB4
, DDB4.
DDB5. . SPI
PORTB5. SPI. SPI
SPI. , ,
DDB4. MOSI - PORTB, Bit 3 -
PORTB4. SPI.
, DDB3.
SPI
,
SPI ,
DDB3. PORTB3. SPI. SS - PORTB, Bit 2. DDB2. SPI
.
.
, .
SPI
DDB2. PORTB2. OC1 - PORTB, Bit 1.
, ,
. PB1
.
, SPI.
.
SPI. / (DDB1=1).
.
OC1 .
ICP - PORTB, Bit 0.
.
PB0
/ .
.
1. .
1.
ɉɨɪɬ C C 6-
/
.
: 34h)
C - PINC (13h, 33h). / C
PORTC (15h, 35h),
- DDRC (14h,
C
,
. 20 mA
. .
PC0..PC5
, (Iil). ,
, C-
. .
.Э
Vcc/2
. ɊȿȽɂɋɌɊ ȾȺɇɇɕɏ ɉɈɊɌȺ C – PORTC 7 -
15h(35h)
6 -
R 0
R 0
5 PORTC5 R\W 0
4
3
2
1
R\W 0
R\W 0
R\W 0
R\W 0
0 PORTC0 R\W 0
ɊȿȽɂɋɌɊ ɇȺɉɊȺȼɅȿɇɂə ȾȺɇɇɕɏ ɉɈɊɌȺ B DDRC 7 -
14h(34h)
6 -
R 0
R 0
5 DDC5 R\W 0
4
3
2
1
R\W 0
R\W 0
R\W 0
R\W 0
0 DDC0 R\W 0
ȼɕȼɈȾɕ ɉɈɊɌȺ B PINC 7 -
13h(33h)
6 -
R 0
PINC
R 0
5 PINC5 R\W Z
4
3
2
1
R\W Z
R\W Z
R\W Z
R\W Z
, PORTC, .
0 PINC0 R\W Z
C. -
,
PINC
ɉɈɊɌ C, ɄȺɄ ɉɈɊɌ ȼȼɈȾȺ/ȼɕȼɈȾȺ ɈȻɓȿȽɈ ɇȺɁɇȺɑȿɇɂə 6 DDCn
C
/
.
DDRC (0) -
.
(1),
.
. ,
PORTCn , PORTCn
.
(0)
. 23. DDC 0 0 1 1
PORTC 0 1 0 1
DDCn
In\Out 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 3
LB1 1 0 0
LB2 1 1 0
EEPROM 2, : Ȼɢɬɵ ɤɨɧɮɢɝɭɪɚɰɢɢ (Fuse bits)
AT90S2333/4433
- SPIEN, BODLEVEL, BODEN,
CKSEL[2:0].
SPIEN (0) . (0). BODLEVEL. - 2.7 ,
. . -4 .
BODEN.
. (0),
.
CKSEL[2:0]. 4 010 - 64mS+16K CK.
. .
Atmel AT90S4433 1. $000: $1E 2. $001: $92 - 4 3. $002: $01 1. $000: $1E 2. $001: $91 - 2 3. $002: $05 -
(1),
3-
.Э
: - Atmel $01=$92 - /
AT90S4433 - Atmel
$01=$92 - /
AT90S2333
AT90S2333:
,
.Э
ɉɪɨɝɪɚɦɦɢɪɨɜɚɧɢɟ ɮɥɷɲ ɩɚɦɹɬɢ ɢ EEPROM AT90S2333/4433
2
4
256 (
.
FFh)
.
(12 ) +12
,
(
.
). EEPROM
. .
ɉɚɪɚɥɥɟɥɶɧɨɟ ɩɪɨɝɪɚɦɦɢɪɨɜɚɧɢɟ. ,
,
.
, .
. 27. / .
XA0
RDY/BSY
PD1
OE WR BS XA0 XA1
PD2 PD3 PD4 PD5 PD6
0: 1: (
0)
(
0)
XTAL XTAL
XA1
0 1 XTAL1.
: 28. XA1 XA0 0 0
XA1
XA0
XTAL1 (
/
BS 0 1 1
(
1 0 1
WR
/
BS)
,
OE ,
. 29. 29.
7 6 5 4 3 2 1 0
, D3-BODEN, D2-D0-CKSEL (0 , (
,1 0) (
, BODLEVEL, D3-BODEN, D2-D0 -CKSEL (
: D5-SPIEN, D4-BODLEVEL, ) : D2 - LB2, D1 - LB1
BS=1) ( ,1
0)
D2-LB2, D1-LB1 ( 0)
: D5-SPIEN, D4BS=0)
. -
ȼɏɈȾ ȼ ɊȿɀɂɆ ɉɊɈȽɊȺɆɆɂɊɈȼȺɇɂə : 1. 2. 3. BS.
4.5...5.5 RESET BS 0 12 RESET
. 100
.
100 BS
,
.
-
ɋɌɂɊȺɇɂȿ ɄɊɂɋɌȺɅɅȺ ,
.
.
1. 2. 3. 4.
.(
). " " XA1,XA0 '10'. Э BS 0 PC(1..0) PB(5..0) '1000 0000'. Э XTAL1. XTAL1, . 10
. . . WR, .
RDY/BSY.
ɉɊɈȽɊȺɆɆɂɊɈȼȺɇɂȿ ɎɅɗɒ ɉȺɆəɌɂ 1. 2. 3. 4.
" XA1,XA0 '10'. Э BS 0 PC(1..0) PB(5..0) '0001 0000'. Э XTAL1.
1. 2. 3. 4.
XA1,XA0 '00'. Э BS 0. Э PC(1..0) PB(5..0)
1. 2. 3. 4.
XA1,XA0 '00'. Э BS 1. Э PC(1..0) PB(5..0)
1. 2. 3.
XA1,XA0 '01'. Э PC(1..0) PB(5..0)
1. 2. 3.
1. 2. 3.
" .
.
. . . XTAL1.
.
. . . ($00..$01) XTAL1.
.
. . XTAL1.
BS '0'. Э WR
.
. .Э
. RDY/BSY ,
XA1,XA0 '01'. Э PC(1..0) PB(5..0)
RDY/BSY
. . XTAL1.
. .
.
BS '1'. Э WR
1. 2. 3.
. .Э
. RDY/BSY ,
.
RDY/BSY
. ,
. * * (256
).
ɉɊɈȽɊȺɆɆɂɊɈȼȺɇɂȿ ɉȺɆəɌɂ ȾȺɇɇɕɏ ( ,
):
1. 2. 3. 4.
'0001 0001'. (00h - 7Fh/FFh). WR
RDY/BSY 1. . ɑɌȿɇɂȿ ɉȺɆəɌɂ ɉɊɈȽɊȺɆɆ (
,
): 1. 2. 3. 4. 5. 6.
'0000 0010' ($00 - $FF) ($00 - $03/$07) OE '0', BS '0'. BS '1'. OE '1'.
PC(1..0) PB(5..0)
.
PB
. . ɑɌȿɇɂȿ ɉȺɆəɌɂ ȾȺɇɇɕɏ (
,
): 1. 2. 3. 4.
'0000 0011' (00h - 7Fh) OE '0', BS '0'. OE '1'.
PC(1..0) PB(5..0)
. .
ɉɊɈȽɊȺɆɆɂɊɈȼȺɇɂȿ ȻɂɌɈȼ ɄɈɇɎɂȽɍɊȺɐɂɂ ( ,
):
1. 2.
'0100 0000' 5=0 4=0 4=1 3=0 3=1 2-0 =0 -
-
SPIEN, 5=1 BODLEVEL, BODLEVEL BODEN, BODEN CKSEL,
SPIEN
3.
2-0 =1 WR
CKSEL RDY/BSY
.
ɉɊɈȽɊȺɆɆɂɊɈȼȺɇɂȿ ȻɂɌɈȼ ȻɅɈɄɂɊɈȼɄɂ ( , 1. 2.
): '0010 0000'
2=0 1=0 -
LB2 LB1
3.
WR
RDY/BSY .
.
ɑɌȿɇɂȿ ȻɂɌɈȼ ɄɈɇɎɂȽɍɊȺɐɂɂ ɂ ȻɅɈɄɂɊɈȼɄɂ ( 1. 2.
3.
3.
, '0000 0100' OE '0', BS '0'. 5 - SPIEN - '0' 4 - BODLEVEL - '0' 3 - BODEN - '0' 2-0 - CKSEL - '0' OE '0', BS '1'. 2 - LB2 - '0' 1 - LB1 - '0' OE '1'.
): PC(1..0) PB(5..0)
.
PC(1..0) PB(5..0)
.
ɑɌȿɇɂȿ ȻȺɃɌɈȼ ɋɂȽɇȺɌɍɊɕ (
, 1. 2. 3.
): 0000 1000 ($00 - $02),
OE
BS
"0".
PC(1..0) PB(5..0). OE "1". .
31. T=21..27 ±C, Vcc=4.5-5.5V tDVXH
.
.
.
Min 67
.
Typ
Max nS
XTAL1 tXHXL tXLDH
XTAL
67 67
nS nS
67 67
nS nS nS nS nS mS
XTAL1 = 1 tBVVL tWLWH tWHRL tXLOL tOLDV tWLRH
BS
WR WR WR XL XL WR
:
tWHRL
1 0 0 0
0
RDY/BSY OE 0
0(
RDY/BSY
1(
,
)
20 67
)
tWLRH
0.5
20 0.7 RDY/BSY
0.9
.
ɉɈɋɅȿȾɈȼȺɌȿɅɖɇȺə ɁȺȽɊɍɁɄȺ , RESET ).
MISO (
SPI, SCK, MOSI ( )
. RESET
/
.
,
(
),
.
FFh. : 000h - 3FFh/7FFh
07Fh/0FFh
000h XTAL1
. XTAL1
SCK :>2 :>2
XTAL2.
: XTAL1 XTAL1
ɉɈȾɌȼȿɊɀȾȿɇɂȿ ȾȺɇɇɕɏ , ,
FFh. .Э FFh,
.Э
,
4mS. FFh,
,
EEPROM
FFh
.Э
.
FFh, 4mS.
ȺɅȽɈɊɂɌɆ ɉɈɋɅȿȾɈȼȺɌȿɅɖɇɈȽɈ ɉɊɈȽɊȺɆɆɂɊɈȼȺɇɂə AT90S2333/4433 (
.
.32):
1.
SCK
: VCC GND, XTAL1 XTAL2, ,
'0'
RESET
SCK
'0'. XTAL1.( '0',
SCK
RESET
, SCK "0". 20 mS
2. 3.
MOSI/PB3. ,
.
, SCK
53h,
(53h) 53h
. .
, 32
.
4.
(
),
RESET
10 mS,
2.
5.
. EEPROM
.
,
,
.
FFh
.
6.
, MISO/PB4.
7. 8.
RESET ( ) RESET '1'.
)
'1' XTAL1 '0' (
. -
CLK. CLK. 32.
. . . .
1 1010 1100
2 0101 0011
3 xxxx xxxx
4 xxxx xxxx
1010 1100 0010 H000
100x xxxx 0000 aaaa
xxxx xxxx bbbb bbbb
xxxx xxxx oooo oooo
0100 H000
0000 aaaa
bbbb bbbb
.
. RESET '0' . o
iiii iiii
ab .
.
i ab
. .
-
1010 0000 1100 0000 0101 1000 1010 1100
0000 000a 0000 000a xxxx xxxx 111x x21x
bbbb bbbb bbbb bbbb xxxx xxxx xxxx xxxx
oooo oooo iiii iiii xxxx x21x xxxx xxxx
0011 0000 1010 1100
xxxx xxxx 11_176543
xxxx xxbb xxxx xxxx
oooo oooo xxxx xxxx
o i 2
1
ab ab
0–
1-
.
.
1,2=0 o
-
b 3,4,5,6,7
.
"0" -
1010 0000
xxxx xxxx
xxxx xxxx
xx87 6543
0–
a H x 3 8
;b;o= '0', '1';i; - ; 1 - 1; 2 - 2; - CKSEL0; 4 - CKSEL1; 5 - CKSEL2; 6 - BODEN; 7 - BODLEVEL; - SPIEN;
................................. -40± - +105± ................................ -65± - +150± RESET .............. -1.0V - +7.0V ..................... 6.6V .................... 40.0 mA VCC GND .......................140.0 mA . Э
: , /
. 1-
. / .
ɏȺɊȺɄɌȿɊɂɋɌɂɄɂ ɉɈ ɉɈɋɌɈəɇɇɈɆɍ ɌɈɄɍ Ta = -40...+85±C, Vcc=2.7...6.0V ( ) ./ ./ . '0' - -0.5/_/0.3Vcc V '1'( XTAL1 RESET) - 0.7Vcc/_/Vcc+0.5 V XTAL1 RESET - 0.7Vcc/_/Vcc+0.5 V '0'( B,C,D) Il=20mA, Vcc=5V - _/_/0.5 V Il=10mA, Vcc=3V - _/_/0.5 V '1'( B,C,D) I0h=10mA, Vcc=5V - Vcc-0.5/_/_ V I0h=5mA, Vcc=2.7V - Vcc-0.5/_/_ V - 100/_/500 10/50/100 : , 3V, 4MHz - _/3.0/_ mA (idle mode), 3V, 4MHz - _/750/_ uA WDT , 3V - _/10/_ uA WDT , 3V - _/_/1 uA Vcc=5V - _/_/20 mV - 1/5/10 nA Vcc=2.7V - _/750/_ nS Vcc=4.0V - _/500/_ nS ɉɊɂɆȿɑȺɇɂə: 1. -
: - 20 mA - 80mA ,
. .
2.
- 2V ɉȺɊȺɆȿɌɊɕ ȼɇȿɒɇȿȽɈ ɌȺɄɌɈȼɈȽɈ ɋɂȽɇȺɅȺ
'1' '0'
Vcc=2.7...6.0 V min max 0 4
Vcc=4.0...6.0 V min max 0 8
250 115 115
125 58.3 58.3 10
ɋɩɢɫɨɤ ɪɟɝɢɫɬɪɨɜ.
4.15
. MH z nS nS nS nS
Ⱥɞɪɟɫ ɪɟɝɢɫɬɪɚ 3Fh (5Fh) 3Eh (5Eh) 3Dh (5Dh) 3Ch (5Ch) 3Bh (5Bh) 3Ah (5Ah) 39h (59h) 38h (58h) 37h (57h) 36h (56h) 35h (55h) 34h (54h) 33h (53h) 32h (52h) 31h (51h) 30h (50h) 2Fh (4Fh) 2Eh (4Eh) 2Dh (4Dh) 2 h (4 h) 2Bh (4Bh) 2Ah (4Ah) 27h (47h) 26h (46h) 21h (41h) 20h (40h) 1Fh (3Fh) 1Eh (3Eh) 1Dh (3Dh) 1Ch (3Ch) 18h (38h) 17h (37h) 16h (36h) 15h (35h) 14h (34h) 13h (33h) 12h (32h) 11h (31h) 10h (30h) 0Fh (2Fh) 0Eh (2Eh) 0Dh (2Dh) 0Ch (2Ch) 0Bh (2Bh) 0Ah (2Ah) 09h (29h) 08h (28h) 07h (27h) 06h (26h) 05h (25h) 04h (24h) 03h ( 23h) 00h (20h)
ɧɚɡɜɚɧɢɟ ɟɝɢɫɬɪɚ SREG
Bit 7 I
Bit 6 T
Bit 5 H
Bit 4 S
Bit 3 V
Bit 2 N
Bit 1 Z
Bit 0 C
SP
SP7
SP6
SP5
SP4
SP3
SP2
SP1
SP0
GIMSK GIFR TIMSK TIFR
INT1 INTF1 TOIE1 TOV1
INT0 INTF0 OCIE1 OCF1
-
-
TICE1 ICF1
-
TOIE0 TOV0
-
MCUCR MCUSR TCCR0 TCNT0
-
-
SE -
SM -
ISC11 WDRF (8
ISC10 BORF CS02
ISC01 EXTRF CS01
ISC00 PORF CS00
TCCR1A TCCR1B TCNT1H TCNT1L OCR1AH OCR1AL
COM11 ICNC1
CTC1
CS12
PWM11 CS11
PWM10 CS10
/
COM10 ICES1
-
/ / 1 1
/ / / /
ICR1H ICR1L
)
1 1
1 1
WDTCR
-
-
-
WDTOE
WDE
WDP2
WDP1
WDP0
EEAR EEDR EECR
-
-
-
-
EERIE
EEMWE
EEWE
EERE
-
-
PORTB5 DDB5 PINB5 PORTC5 DDC5 PINC5 PORTD5 DDD5 PIND5
PORTB4 DDB4 PINB4 PORTC4 DDC4 PINC4 PORTD4 DDD4 PIND4
SPIF SPIE
WCOL SPE
DORD
MSTR
RXC RXCIE
TXC TXCIE
UDRE UDRIE
FE RXEN
ACD ADEN ADC7
AINBG ADCBG ADSC ADC6
ACO ADFR ADC5
ACI ADIF ADC4
PORTB DDRB PINB PORTC DDRC PINC PORTD DDRD PIND SPDR SPSR SPCR UDR USR UCR UBRR ACSR ADMUX ADCSR ADCH ADCL UBRRH -
PORTB3 PORTB2 PORTB1 DDB3 DDB2 DDB1 PINB3 PINB2 PINB1 PORTC3 PORTC2 PORTC1 DDC3 DDC2 DDC1 PINC3 PINC2 PINC1 PORTD3 PORTD2 PORTD1 DDD3 DDD2 DDD1 PIND3 PIND2 PIND1 SPI CPOL CPHA SPR1 UART OR TXEN CHR9 RXB8 UART ACIE ACIC ACIS1 MUX2 MUX1 ADIE ADPS2 ADPS1 ADC9 ADC3 ADC2 ADC1 UART ( )
PORTB0 DDB0 PINB0 PORTC0 DDC0 PINC0 PORTD0 DDD0 PIND0 SPR0 TXB8 ACIS0 MUX0 ADPS0 ADC8 ADC0
:
,
"0". .
ɇɚɛɨɪ ɤɨɦɚɧɞ
ADD ADC ADIW SUB SUBI SBIW SBC SBCI AND ANDI OR ORI EOR COM NEG SBR CBR INC DEC TST CLR SER
Rd, Rr Rd, Rr Rdl,K Rd, Rr Rd, K Rdl,K Rd, Rr Rd, K Rd, Rr Rd, K Rd, Rr Rd, K Rd, Rr Rd Rd Rd,K Rd,K Rd Rd Rd Rd Rd
RJMP LJMP RCALL ICALL RET RETI CPSE CP CPC CPI SBRC SBRS SBIC SBIS BRBS BRBC BREQ BRNE BRCS BRCC BRSH BRLO
k
1 2 . . 1 1 0
1 Ы (Z)
k (Z)
Rd,Rr Rd,Rr Rd,Rr Rd,K Rr,b Rr,b P, b P, b s, k s, k k k k k k k
,
Rd=Rr
I\O I\O s s Z=1 if(Z=0)
Rd