COP8SA-DM National Semiconductor, COP8SA-DM Datasheet - Page 159
COP8SA-DM
Manufacturer Part Number
COP8SA-DM
Description
MODULE DEBUGGING FOR COP8SA
Manufacturer
National Semiconductor
Datasheet
1.DM-COP820D.pdf
(254 pages)
Specifications of COP8SA-DM
Module/board Type
Debugger Module
For Use With/related Products
Cop 8
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
*COP8SA-DM
- Current page: 159 of 254
- Download datasheet (2Mb)
program memory to a two-byte SUM, and then subtracts the SUM from a two-byte total
TOT. Assume that the table is located starting a program memory address 0401, while
SUM and TOT are at RAM data memory locations 1, 0 and 3, 2, respectively. The
program is encoded as a subroutine.
MATHMEM: .DSB4
ARITH1:
LOOP:
LUP:
2.19.3 Binary Multiplication
The following program listing shows the code for a 16-by-16-bit binary multiply
subroutine. The multiplier starts in the lower 16 bits of the 32-bit result location. As the
multiplier is shifted out of the low end of the result location with the RRC instruction,
each multiplier bit is tested in the Carry flag. The multiplicand is conditionally added
(depending on the multiplier bit) into the high end of the result location, after which the
partial product is shifted down one bit position following the multiplier. Note that one
additional terminal shift cycle is necessary to align the result.
.SECT
SUMLO = MATHMEM
SUMHI = MATHMEM+1 ;Sum upper byte storage location
TOTLO = MATHMEM+2 ;Total lower byte storage location
TOTHI = MATHMEM+3 ;Total upper byte storage location
.SECT
.BYTE
.BYTE
.BYTE
.BYTE
.BYTE
LD
LD
RC
LD
LAID
ADC
X
CLR
ADC
X
DRSZ
JP
SC
LD
LD
X
SUBC
X
IFBNE
JP
RET
MATH,RAM
CODE, ROM, ABS=0401
102
41
31
26
5
X,#5
B,#SUMLO
A,X
A,[B]
A,[B+]
A
A,[B]
A,[B-]
X
LOOP
B,#2
A,[X+]
A,[B]
A,[B]
A,[B+]
#4
LUP
;CONSTANT DECLARATIONS
;Sum lower byte storage location
;ROM TABLE
;Store 102
;Store 41
;Store 31
;Store 26
;Store 5
;PERFORM ADDITION AND SUBTRACTION
;Set up ROM table pointer
;Set up sum pointer
;Reset carry flag
;Load ROM pointer into accumulator
;Read data from ROM
;Add SUMLO to ROM value
;Store result in SUMLO, point to SUMHI
;Clear accumulator
;Add SUMHI and carry bit to the accumulator
;Store result in SUMHI, point to SUMLO
;Decrement ROM pointer, If not equal to zero
;then repeat the loop
;else set the carry flag
;Load B pointer with 2 (point to TOTLO)
;Load accumulator with subtrahend
;Reverse operands for subtraction
;Subtract
;Increment minuend pointer
;If B pointer not equal to 4
;then repeat the loop
;else return
COP8SAx7 MICROCONTROLLER
2-121
Related parts for COP8SA-DM
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
PROGRAMING UNIT FOR COP8SA PARTS
Manufacturer:
National Semiconductor
Part Number:
Description:
ADAPTER SOIC 16,20,28,44 PLCC
Manufacturer:
National Semiconductor
Part Number:
Description:
8-Bit CMOS ROM Based and One-Time Programmable OTP Microcontroller with 1k to 4k Memory/ Power On Reset/ and Very Small Packaging
Manufacturer:
National Semiconductor
Datasheet:
Part Number:
Description:
National Semiconductor [8-Bit D/A Converter]
Manufacturer:
National Semiconductor
Datasheet:
Part Number:
Description:
National Semiconductor [Media Coprocessor]
Manufacturer:
National Semiconductor
Datasheet:
Part Number:
Description:
Digitally Controlled Tone and Volume Circuit with Stereo Audio Power Amplifier, Microphone Preamp Stage and National 3D Sound
Manufacturer:
National Semiconductor
Datasheet:
Part Number:
Description:
Digitally Controlled Tone and Volume Circuit with Stereo Audio Power Amplifier, Microphone Preamp Stage and National 3D Sound
Manufacturer:
National Semiconductor
Datasheet:
Part Number:
Description:
AC97 Rev 2 Codec with Sample Rate Conversion and National 3D Sound
Manufacturer:
National Semiconductor
Part Number:
Description:
Manufacturer:
National Semiconductor
Datasheet:
Part Number:
Description:
Manufacturer:
National Semiconductor
Datasheet:
Part Number:
Description:
General Purpose, Low Voltage, Low Power, Rail-to-Rail Output Operational Amplifiers
Manufacturer:
National Semiconductor
Datasheet:
Part Number:
Description:
8-bit 20 MSPS flash A/D converter.
Manufacturer:
National Semiconductor
Datasheet:
Part Number:
Description:
Low Noise Quad Operational Amplifier
Manufacturer:
National Semiconductor
Datasheet:
Part Number:
Description:
Quad Differential Line Receivers
Manufacturer:
National Semiconductor
Datasheet: