AP160 AMICC [AMIC Technology], AP160 Datasheet - Page 13

no-image

AP160

Manufacturer Part Number
AP160
Description
8-BIT MICROCONTROLLER WITH 8KB OTP
Manufacturer
AMICC [AMIC Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AP1601M10LA
Manufacturer:
DIODES/美台
Quantity:
20 000
Part Number:
AP1601M8LA
Manufacturer:
DIODES/美台
Quantity:
20 000
Part Number:
AP1602
Manufacturer:
DIODES/美台
Quantity:
20 000
Part Number:
AP1603WA
Manufacturer:
DIODES
Quantity:
9 000
Part Number:
AP1603WA
Manufacturer:
DIODES/美台
Quantity:
20 000
Part Number:
AP1603WL-7
Manufacturer:
DIDOES
Quantity:
6 000
Part Number:
AP1604AWA
Manufacturer:
DIODES/美台
Quantity:
20 000
Part Number:
AP1604AWG-7
Manufacturer:
DIDOES
Quantity:
6 000
Part Number:
AP1604AWL-7
Manufacturer:
DIDOES
Quantity:
9 000
Part Number:
AP1609SG-13
Manufacturer:
TI
Quantity:
12 500
Company:
Part Number:
AP1609SG-13
Quantity:
5 000
DATA MEMORY
The AP160 implements 256 bytes of on-chip RAM. The upper 128 bytes occupy a parallel address space to the Special
Function Registers. That means the upper 128 bytes have the same addresses as the SFR space but are physically
separate from SFR space. When an instruction accesses an internal location above address 7FH, the address mode used
in the instruction specifies whether the CPU accesses the upper 128 bytes of RAM or the SFR space. Instructions that use
direct addressing access SFR space. For example, the following direct addressing instruction accesses the SFR at location
0A0H (which is P2).
Note that stack operations are examples of indirect addressing, so the upper 128 bytes of data RAM are avail-able as stack
space.
POWER MANAGEMENT
IDLE MODE
In idle mode, the CPU puts itself to sleep while all the on-chip peripherals remain active. The mode is invoked by software.
The content of the on-chip RAM and all the special functions registers remain unchanged during this mode. The idle mode
can be terminated by any enabled interrupt or by a hardware reset. Note that when idle mode is terminated by a hardware
reset, the device normally resumes program execution from where it left off, up to two machine cycles before the internal
reset algorithm takes control. On-chip hardware inhibits access to internal RAM in this event, but access to the port pins is
not inhibited. To eliminate the possibility of an unexpected write to a port pin when idle mode is terminated by a reset, the
instruction following the one that invokes idle mode should not write to a port pin or to external memory.
POWER DOWN MODE
In the power down mode, the oscillator is stopped, and the instruction that invokes power down is the last instruction
executed. The on-chip RAM and Special Function Registers retain their values until the power down mode is terminated.
The way to exit from power down mode is either hardware reset or external interrupt. Reset redefines the SFRs but does not
change the on-chip RAM. The reset should not be activated before V CC is restored to its normal operating level and must
be held active long enough to allow the oscillator to restart and stabilize.
Status of External Pins During Idle and Power Down Modes
RESET
A reset is accomplished by holding the RST pin high for at least two machine cycles (24 oscillator periods), while the
oscillator is running. To insure a good power-up reset, the RST pin must be high long enough to allow the oscillator time to
start up (normally a few milliseconds) plus two machine cycles.
REDUCED EMI
All port pins of the AP160 have slew rate controlled outputs. This is to limit noise generated by quickly switching output
signals. The slew rate is factory set to approximately 10 ns rise and fall times.
AUXR Address = 8EH
NOTE: The AO bit (AUXR.0) in the AUXR register when set disables the ALE output.
Version 0.0
Instructions that use indirect addressing access the upper 128 bytes of RAM. For example, the following indirect addressing
instruction, where R0 contains 0A0H, accesses the data byte at address 0A0H, rather than P2 (whose address is 0A0H).
Bit
Power Down
Power Down
Mode
Idle
Idle
7
-
Program Memory
External
External
Internal
Internal
6
-
5
-
ALE
1
1
0
0
MOV 0A0H, #data
MOV @R0, #data
4
-
PSEN
13
1
1
0
0
3
-
PORT0
Float
Float
Data
Data
PORT1
2
-
Data
Data
Data
Data
AMIC Technology, Inc.
Address
PORT2
Data
Data
Data
1
-
AP160
PORT3
Data
Data
Data
Data
AO
0

Related parts for AP160