7
4234G–SCR–01/07
AT83C24
Address Byte
The first byte to send to the device is the address byte. The device controls if the hardware
address (A2/CK, A1/RST, A0/3V pins on reset) corresponds to the address given in the
address byte (A2, A1, A0 bits).
If the level is not stable on A2/CK pin (or A1/RST pin, or A0/3V pin) at reset, the user has to send
the commands to the possible address taken by the device.
If A2/CK to A0/3V are tied to the host microcontroller and their reset values are unknown, a gen-
eral call on the TWI bus allows to reset all the AT83C24 devices and set their address after
A2/CK to A0/3V are fixed.
Figure 2. Address Byte
Up to 8 devices can be connected on the same TWI bus. Each device is configured with a differ-
ent combination on A2/CK, A1/RST, A0/3V pins. The corresponding address byte values for
read/write operations are listed below.
Table 2. Address Byte Values
A2
(A2/CK pin)
A1
(A1/RST pin)
A0
(A0/3V pin)
Address Byte
for
Read
Command
Address Byte
for
Write
Command
0 0 0 0x41 0x40
0 0 1 0x43 0x42
0 1 0 0x45 0x44
0 1 1 0x47 0x46
1 0 0 0x49 0x48
1 0 1 0x4B 0x4A
1 1 0 0x4D 0x4C
1 1 1 0x4F 0x4E
8
4234G–SCR–01/07
AT83C24
Write Commands
The write commands are:
1. Reset:
Initializes all the logic and the TWI interface as after a power-up or power-fail reset. If a
smart card is active when RESET falls, a deactivation sequence is performed. This is a one-
byte command.
2. Write Config:
Configures the device according to the last six bits in the CONFIG0 register and to the fol-
lowing four bytes in CONFIG1, CONFIG2, CONFIG3 then CONFIG4 registers. This is a
five bytes command.
Figure 3. Command byte format for Write CONFIG0 command
3. Write Timer:
Program the 16-bit automatic reset transition timer with the following two bytes. This is a
three bytes command.
4. Write Interface:
Program the interface. This is a one-byte command. The MSB of the command byte is fixed
at 0.
5. General Call Reset:
A general call followed by the value 06h has the same effect as a Reset command.
Table 3. Write Commands Description
Address Byte
(See Table 2) Command Byte
Data Byte
1
Data Byte
2
Data Byte
3
Data Byte
4
1. Reset 0100 A
2
A
1
A
0
0 1111 1111
2. Write config
0100 A
2
A
1
A
0
0
(10 + CONFIG0 6
bits)
CONFIG1 CONFIG2 CONFIG3 CONFIG4
3. Write Timer 0100 A
2
A
1
A
0
0 1111 1100 TIMER1 TIMER0
4. Write Interface
0100 A
2
A
1
A
0
0
(0+INTERFACE 7
bits)
5. General Call
Reset
0000 0000 0000 0110
b7 b6 b5 b4 b3 b2 b1
1
X
0
X X
X
X
CONFIG0 on 6 Bits
b0
X
9
4234G–SCR–01/07
AT83C24
Read Command
After the slave address has been configured, the read command allows to read one or several
bytes in the following order:
STATUS, CONFIG0, CONFIG1, CONFIG2, CONFIG3, INTERFACE, TIMER1, TIMER0,
CAPTURE1, CAPTURE0
FFh is completing the transfer if the microcontroller attempts to read beyond the last byte.
Note: Flags are only reset after the corresponding byte read has been acknowledged by the master.
Table 4. Read Command Description
Interrupts
The PRES/INT behavior depends on IT_SEL bit value (see CONFIG4 register).
If IT_SEL= 0, the PRES/INT output is High by default (on chip pull up or open drain).
PRES/INT is driven Low by any of the following event:
INSERT bit set in CONFIG0 register (card insertion/extraction or bit set by software )
VCARD_INT bit set in STATUS register (the DC/DC output voltage has settled)
over-current detection on CVCC
VCARDERR bit set in CONFIG0 register (out of range voltage on CVCC or bit set by
software)
ATRERR bit set in CONFIG0 register (no ATR before the card clock counter
overflows or bit set by software).This control of ATR timing is only available if ART bit
=1.
If IT_SEL=0, a read command of STATUS register and of CONFIG0 register will release
PRES/INT pin to high level.
Several AT83C24 devices can share the same interrupt and the microcontroller can identify
the interrupt sources by polling the status of the AT83C24 devices using TWI commands.
If IT_SEL= 1 (mandatory for NDS applications and for software compatibility with existing
devices) the PRES/INT output is High to indicate a card is present and none of the following
event has occured:
Byte Description Byte Value
Address byte 0100 A
2
A
1
A
0
1
Data byte 1 STATUS
Data byte 2 CONFIG0
Data byte 3 CONFIG1
Data byte 4 CONFIG2
Data byte 5 CONFIG3
Data byte 6 CONFIG4
Data byte 7 INTERFACE
Data byte 8 TIMER 1 (MSB)
Data byte 9 TIMER 0 (LSB)
Data byte 10 CAPTURE 1 (MSB)
Data byte 11 CAPTURE 0 (LSB)
Data byte 12 0xFF

AT83C24B-PRRUL

Mfr. #:
Manufacturer:
Microchip Technology / Atmel
Description:
Interface - Specialized 3V Smart card reader
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union