
Instruction Set
4-168
NOT
NOT
This example for the SD186EM demonstration board controls the LEDs that are mapped
(using negative logic) to eight of the microcontroller’s programmable input/output (PIO) pins
according to the signal levels in AL. Because some of the LEDs on the board are mapped
to the low eight PIO pins (5–0)—and some are mapped to the next eight PIO pins (15–
14)—the example duplicates the signal levels in AH. Before writing the PIO signal levels
to the PIO Data 0 (PDATA0) register, the example uses NOT to convert them to negative
logic.
Related Instructions
If you want to
See
Clear particular bits of a component to 0
AND
Change the sign of an integer
NEG
Set particular bits of a component to 1
OR
Toggle particular bits of a component
XOR
; control LEDs mapped using negative logic
; load eight LED signal levels into AL
...
; write to LEDs
MOV
DX,PIO_DATA0_ADDR
; address of PDATA0 register
MOV
AH,AL
; copy AL to AH
NOT
AX
; LEDs are negative logic
OUT
DX,AX
; write out signals to port
Содержание Am186 Series
Страница 1: ...Am186 and Am188 Family Instruction Set Manual February 1997...
Страница 10: ...Table of Contents x...
Страница 18: ...Programming 1 8...
Страница 40: ...Instruction Set Listing 3 14...