C8051F124-TB Silicon Laboratories Inc, C8051F124-TB Datasheet - Page 169

no-image

C8051F124-TB

Manufacturer Part Number
C8051F124-TB
Description
BOARD PROTOTYPING W/C8051F124
Manufacturer
Silicon Laboratories Inc
Datasheets

Specifications of C8051F124-TB

Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
12.7.2. Multiply Only Example
The example below implements the equation:
MOV
MOV
MOV
MOV
MOV
NOP
NOP
NOP
12.7.3. MAC0 Accumulator Shift Example
The example below shifts the MAC0 accumulator left one bit, and then right two bits:
MOV
MOV
MOV
MOV
MOV
MOV
NOP
NOP
MOV
MOV
NOP
NOP
MAC0CF, #01h
MAC0AH, #12h
MAC0AL, #34h
MAC0BH, #FEh
MAC0BL, #DCh
MAC0OVR, #40h
MAC0ACC3, #88h
MAC0ACC2, #44h
MAC0ACC1, #22h
MAC0ACC0, #11h
MAC0CF, #20h
MAC0CF, #30h
MAC0CF, #30h
; Use integer numbers, and multiply only mode (add to zero)
; Load MAC0A register with 1234 hex = 4660 decimal
; Load MAC0B register with FEDC hex = -292 decimal
; This line initiates the Multiply operation
; After this instruction, the Accumulator should be equal to
; FFFFEB3CB0 hex = -1360720 decimal. The MAC0STA register should
; be 0x01, indicating a negative result.
; After this instruction, the Rounding register is updated
; The next few instructions load the accumulator with the value
; 4088442211 Hex.
; Initiate a Left-shift
; After this instruction, the accumulator should be 0x8110884422
; The rounding register is updated after this instruction
; Initiate a Right-shift
; Initiate a second Right-shift
; After this instruction, the accumulator should be 0xE044221108
; The rounding register is updated after this instruction
4660
Rev. 1.4
292
=
C8051F120/1/2/3/4/5/6/7
1360720
C8051F130/1/2/3
169

Related parts for C8051F124-TB