| Electronic Components Datasheet Search |
|
DP8344 Datasheet(PDF) 154 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
DP8344 Datasheet(HTML) 154 Page - National Semiconductor (TI) |
|
154 / 184 page ![]() 60 Reference Section (Continued) SUBA Subtract with Accumulator Syntax SUBA Rs Rd register register SUBA Rs mlr register indexed Affected Flags N Z C V Description Subtracts the active accumulator from the source register Rs and places the result into the destination specified The destination may be either a register Rd or data memory via an index register mode mlr Negative numbers are repre- sented using the two’s complement format Note that regis- ter bank selection determines which accumulator is active Example In the first example the value 4 is placed into the currently active accumulator that accumulator is subtracted from the contents of register 20 and then the result is placed into register 21 MOVE 4 A Place constant into accum SUBA R20 R21 R20 b accum xR21 In the second example the alternate accumulator of regis- ter bank B is selected and then subtracted from register 20 The result is placed into the data memory pointed to by the index register IZ and then the value of IZ is incremented by one EXX 0 1 Select alt accumulator SUBA R20 IZa R20 b accum xdata mem and increment data pointer Instruction Format SUBA Rs Rd 111010 Opcode Rd Rs 15 9 4 0 SUBA Rs mlr TLF9336 – 16 T-states SUBA Rs Rd 2 SUBA Rs mlr 3 Bus Timing SUBA Rs Rd Figure 6-1 SUBA Rs mlr Figure 6-7 Operation SUBA Rs Rd Rs b accumulator xRd SUBA Rs mlr Rs b accumulator xdata memory TRAP Software Interrupt Syntax TRAP v g Affected Flags None Description Pushes the Program Counter the Global Interrupt Enable bit GIE the ALU flags and the current register bank selec- tions onto the internal Address Stack then unconditionally transfers control to the instruction at the memory address created by concatenating the contents of the Interrupt Base Register IBR to the value of v extended with zeros to 8 bits If the value of g is equal to ‘‘1’’ then the Global Inter- rupt Enable bit GIE will be cleared If the g operand is omitted then g e 0 is assumed The vector number v points to one of 64 Interrupt Table entries (range 0 to 63) Since some of the Interrupt Table entries are used by the hardware interrupts the TRAP instruction can simulate hardware interrupts The following table lists the hardware interrupts and their associated vector numbers Hardware Interrupt Vector Table Interrupt v (Binary) NMI 28 (011100) RFFDARA 4 (000100) TFE 8 (001000) LTA 12 (001100) BIRQ 16 (010000) TO 20 (010100) Example Simulate the Transmitter FIFO Empty interrupt TRAP 8 1 TFE interrupt simulation Instruction Format 110011111 Opcode g v 15 6 5 0 T-states 2 Bus Timing Figure 6-1 Operation PC GIE ALU flags register bank selections xAddress Stack if g e 1 then clear GIE Create PC address by concatonating the IBR register to the vector number v as shown below TLF9336 – 17 154 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |