User guide
Arch Meter Corporation PS1000 Ver1.2
PS1000Rev. 1.2 May 2006
26/ 67
www.archmeter.com
OPCode: ALU operation Control
0000 16-bits MUL (unsigned) C = AL * BL
0001 16-bits MUL (signed) C = AL * BL
0010 32-bits MUL (unsigned) {D,C} = A * B
0011 32-bits MUL (signed) {D,C} = A * B
0100 C = C + D
0101 C = AH * AL, D = BH *BL (signed)
0110 32-bits DIV (unsigned) {C, D} = A / B
0111 32-bits DIV (unsigned)
1000 Shift Left
1001 Shift Left with Carry
1010 Shift Right
1011 Shift Right with Carry
1100 Rotate Left
1101
1110 Rotate Right
1111
When the MCU wants to use the ALU, it must set the operand A, B and OPCode
fist. After all configurations are set, MCU toggle the EN bit to enable the ALU
operation and wait for the BUSY return to zero. For every ALU operation, MCU needs
to toggle the EN bit once.
7.2 MODE Control
PS1000 has several operation modes; it can control by the MODE [2:0]. There are
four major modes for the PS1000, normal operation mode, ICP (In-Circuit
Programming) mode, external MCU mode and test mode. The memory space of each
mode is shown as follow.