ATA6020N ATMEL Corporation, ATA6020N Datasheet - Page 20

no-image

ATA6020N

Manufacturer Part Number
ATA6020N
Description
Low-current Microcontroller For Watchdog Function
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATA6020N
Manufacturer:
ATMEL
Quantity:
28
Part Number:
ATA6020N
Manufacturer:
ST
0
Part Number:
ATA6020N
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATA6020N-020-TKQY
Manufacturer:
ATMEL
Quantity:
230
Part Number:
ATA6020N-020-TKQY
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
5. Peripheral Modules
5.1
20
Addressing Peripherals
ATA6020N
Accessing the peripheral modules takes place via the I/O bus (see
instructions allow direct addressing of up to 16 I/O modules. A dual register addressing scheme
has been adopted to enable direct addressing of the primary register. To address the auxiliary
register, the access must be switched with an auxiliary switching module. Thus, a single IN (or
OUT) to the module address will read (or write into) the modules primary register. Accessing the
auxiliary register is performed with the same instruction preceded by writing the module address
into the auxiliary switching module. Byte wide registers are accessed by multiple IN (or OUT)
instructions. For more complex peripheral modules, with a larger number of registers, extended
addressing is used. In this case, a bank of up to 16 subport registers are indirectly addressed
with the subport address. The first OUT-instruction writes the subport address to the
sub-address register, the second IN or OUT instruction reads data from or writes data to the
addressed subport.
Figure 5-1.
Aux._Data = Data to be written into Auxiliary Register
Aux._Data (lo) = Data to be written into Auxiliary Register (low nibble)
Addr. (Mx) = Module Mx Address
Addr. (SPort) = Subport Address
Prim._Data = Data to be written into Primary Register
Addr. (ASW) = Auxililiary Switch Module Address
Example of
qFORTH
Program
Code
Module ASW
Auxiliary Switch
Primary Reg.
Module
Example of I/O Addressing
1
2
1
2
1
2
2
1
2
2
(Address Pointer)
Subaddress Reg.
Addr. (SPort) Addr. (M1) OUT
(Subport Register Write Byte)
Addr. (SPort) Addr. (M1) OUT
(Subport Register Read Byte)
Addr. (SPort) Addr. (M1) OUT
SPort_Data
(Subport Register Read)
SPort_Data (lo) Addr. (M1)
SPort_Data (hi) Addr. (M1)
(Subport Register Write)
Addr. (SPort) Addr. (M1) OUT
1
Indirect Subport Access
Module M1
Addr. (M1)
Addr. (M1) IN (hi)
Addr. (M1) IN (lo)
Addr. (M1) IN
Bank of
Primary Regs.
Subport FH
Subport EH
Subport 0
Subport 1
OUT
OUT
OUT
2
Aux._Data (hi) = Data to be written into Auxiliary Register (high nibble)
SPort_Data (lo) = Data to be written into Subport (low nibble)
SPort_Data (hi) = Data to be written into Subport (high nibble)
(lo) = SPort_Data (low nibble)
(hi) = SPort_Data (high nibble)
I/O bus
3
4
5
3
4
5
4
5
5
Addr. (M2) Addr. (ASW) OUT
Addr. (M2) Addr. (ASW) OUT
Aux._Data Addr. (M2) OUT
Prim._Data Addr. (M2) OUT
Aux._Data (lo) Addr. (M2)
Aux._Data (hi) Addr. (M2)
(Primary Register Write)
(Auxiliary Register Read )
Addr. (M2) Addr. (ASW) OUT
(Primary Register Read)
(Auxiliary Register Write)
Aux. Reg.
(Auxiliary Register Write Byte)
5
Dual Register Access
4
Module M2
Addr. (M2) IN
Addr. (M2) IN
Primary Reg.
3
OUT
OUT
6
6
Figure
to other modules
Single Register Access
Prim._Data Addr. (M3) OUT
(Primary Register Write)
(Primary Register Read)
Module M3
Primary Reg.
5-1). The IN or OUT
Addr. (M3) IN
6
4708D–4BMCU–09/05

Related parts for ATA6020N