COP8SG National Semiconductor, COP8SG Datasheet - Page 14
![no-image](/images/manufacturer_photos/0/4/469/national_semiconductor_sml.jpg)
COP8SG
Manufacturer Part Number
COP8SG
Description
8-Bit CMOS ROM Based and OTP Microcontrollers with 8k to 32k Memory/ Two Comparators and USART
Manufacturer
National Semiconductor
Datasheet
1.COP8SG.pdf
(61 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
COP8SGE728M7
Manufacturer:
NS/国半
Quantity:
20 000
Company:
Part Number:
COP8SGE728N8/NOPB
Manufacturer:
National
Quantity:
370
Company:
Part Number:
COP8SGE744V8
Manufacturer:
RENESAS
Quantity:
6 674
Company:
Part Number:
COP8SGE744V8
Manufacturer:
Texas Instruments
Quantity:
10 000
Company:
Part Number:
COP8SGE744V8/NOPB
Manufacturer:
Texas Instruments
Quantity:
10 000
Company:
Part Number:
COP8SGE7VEJ8/NOPB
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
COP8SGR728M7
Manufacturer:
NS/国半
Quantity:
20 000
Company:
Part Number:
COP8SGR728M8/NOPB
Manufacturer:
National
Quantity:
296
Company:
Part Number:
COP8SGR744V8
Manufacturer:
NSC
Quantity:
5 510
Company:
Part Number:
COP8SGR744V8
Manufacturer:
ST
Quantity:
5 510
Company:
Part Number:
COP8SGR744V8
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
COP8SGR744V8
Manufacturer:
NS/国半
Quantity:
20 000
www.national.com
4.0 Pin Descriptions
Port D is an 8-bit output port that is preset high when RESET
goes low. The user can tie two or more D port outputs (ex-
cept D2) together in order to get a higher drive.
Note: Care must be exercised with the D2 pin operation. At RESET, the ex-
FIGURE 6. I/O Port Configurations — Output Mode
FIGURE 7. I/O Port Configurations — Input Mode
(address xxD7) will return the same data as reading the Port F input
pins (address xx96). It is recommended new applications which will go
to production with the COP8SGx use the Port F addresses. Note that
compatible ROM devices contains the input only Port I instead of the
bi-directional Port F.
ternal loads on this pin must ensure that the output voltages stay
above 0.7 V
keep the external loading on D2 to less than 1000 pF.
FIGURE 5. I/O Port Configurations
CC
to prevent the chip from entering special modes. Also
(Continued)
DS101317-11
DS101317-12
DS101317-10
14
5.0 Functional Description
The architecture of the devices are a modified Harvard archi-
tecture. With the Harvard architecture, the program memory
ROM is separated from the data store memory (RAM). Both
ROM and RAM have their own separate addressing space
with separate address buses. The architecture, though
based on the Harvard architecture, permits transfer of data
from ROM to RAM.
5.1 CPU REGISTERS
The CPU can do an 8-bit addition, subtraction, logical or shift
operation in one instruction (t
There are six CPU registers:
A is the 8-bit Accumulator Register
PC is the 15-bit Program Counter Register
B is an 8-bit RAM address pointer, which can be optionally
post auto incremented or decremented.
X is an 8-bit alternate RAM address pointer, which can be
optionally post auto incremented or decremented.
S is the 8-bit Segment Address Register used to extend the
lower half of the address range (00 to 7F) into 256 data seg-
ments of 128 bytes each.
SP is the 8-bit stack pointer, which points to the subroutine/
interrupt stack (in RAM). With reset the SP is initialized to
RAM address 02F Hex (devices with 64 bytes of RAM), or
initialized to RAM address 06F Hex (devices with 128 bytes
of RAM).
All the CPU registers are memory mapped with the excep-
tion of the Accumulator (A) and the Program Counter (PC).
5.2 PROGRAM MEMORY
The program memory consists of varies sizes of ROM.
These bytes may hold program instructions or constant data
(data tables for the LAID instruction, jump vectors for the JID
instruction, and interrupt vectors for the VIS instruction). The
program memory is addressed by the 15-bit program
counter (PC). All interrupts in the device vector to program
memory location 0FF Hex. The contents of the program
memory read 00 Hex in the erased state. Program execution
starts at location 0 after RESET.
5.3 DATA MEMORY
The data memory address space includes the on-chip RAM
and data registers, the I/O registers (Configuration, Data and
Pin), the control registers, the MICROWIRE/PLUS SIO shift
register, and the various registers, and counters associated
with the timers (with the exception of the IDLE timer). Data
memory is addressed directly by the instruction or indirectly
by the B, X and SP pointers.
The data memory consists of 256 or 512 bytes of RAM. Six-
teen bytes of RAM are mapped as “registers” at addresses
0F0 to 0FE Hex. These registers can be loaded immediately,
and also decremented and tested with the DRSZ (decrement
register and skip if zero) instruction. The memory pointer
registers X, SP and B are memory mapped into this space at
address locations 0FC to 0FE Hex respectively, with the
other registers (except 0FF) being available for general us-
age.
The instruction set permits any bit in memory to be set, reset
or tested. All I/O and registers (except A and PC) are
PU is the upper 7 bits of the program counter (PC)
PL is the lower 8 bits of the program counter (PC)
C
) cycle time.