START : MOV A, #'A' ; ASSIGN A WITH SERIAL DATA
; P1.1 IS USED
MOV R7, #08H ; COUNTER OF 8 AS ACCUMULATOR OF 8 BIT
BACK : RRC A ; ROTATE BITS THROUGH CY
MOV P1.1, C ; TRANSFER CONTENTS OF CARRY TO PORT PIN
DJNZ R7, BACK ;
SJMP START ;
END
The blog talks about variety of topics on Embedded System, 8085 microprocessor, 8051 microcontroller, ARM Architecture, C2000 Architecture, C28x, AVR and many many more. Also includes some projects that have been worked upon and also episodes to Embedded System Podcast.
Instruction | Function |
SETB C | Make CY = 1 |
CLR C | Clear CY bit |
CPL C | Complement CY bit |
MOV b, C | Copy carry status to bit |
MOV C, b | Copy bit location status to carry |
JNC TARGET | Jump to target when CY = 0 |
JC TARGET | Jump to target when CY = 1 |
ANL C, bit | AND CY with bit and save it on CY |
ANL C, /bit | AND CY with inverted bit and save it on CY |
ORL C, bit | OR CY with bit and save it on CY |
ORL C, /bit | OR CY with inverted bit and save it on CY |
Example of Electric field |
Interrupt Name | Maskable | Masking Method | Vectored | Memory | Triggering Method |
INTR | Yes | DI / EI | No | No | Level Sensitive |
RST 5.5 / RST 6.5 | Yes | DI / EI SIM | Yes | No | Level Sensitive |
RST 7.5 | Yes | DI / EI SIM | Yes | Yes | Edge Sensitive |
TRAP | No | None | Yes | No | Level & Edge Sensitive |