Table Exam

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 24

Embedded system

Register Map
Bank 0
Bank 1
STATUS REGISTER
PORTA REGISTER
PORTB REGISTER
TRISA REGISTER
TRISB REGISTER
WORKING REGISTER

W
ASSEMBLY
HEX.NUM

0xFE
1110 1111
PORTB 8 BITS

TRISB 8 BITS

0xFF
TRISB = 0XFF ; 1111 1111 OUTPUT
Instructing Set

• Bit • Byte • Lateral and


Orientation Orientation Control
Operations Operations Operations
BIT ORIENTATION
OPERATIONS
BCF VS BSF
• Set registers • Set registers
bits to zero bits to one
LATERAL AND CONTROL
INTSTRUTION
BYTS ORENTATION
OPERATION
EXAMPLE 1:-
ADD VALUE 4 TO REGISTER
0Ch
ASSEMBLY CODE
WRITE CODE TO SET RB6
ON ALL THE TIME AND SET
ALL OTHER PINS AS
OUTPUT.
H.W.

WRITE ASSEMBLY CODE THAT LIGHT


LED IN RB6 ON AND OFF EVERY
200M

You might also like