0% found this document useful (0 votes)
6 views3 pages

MC 1

This document discusses special function registers (SFRs) in 8051 microcontrollers. SFRs are on-chip registers located from 80H to FFH that are used to control I/O ports, timers, interrupts and other microcontroller functions. Common SFRs include ACC, B, PSW, SP, DPTR, TMOD, TCON and SCON. The 8051 is an efficient microcontroller with separate memory, 4KB ROM, 128B RAM, 4 I/O ports and other features.

Uploaded by

ms476zeal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views3 pages

MC 1

This document discusses special function registers (SFRs) in 8051 microcontrollers. SFRs are on-chip registers located from 80H to FFH that are used to control I/O ports, timers, interrupts and other microcontroller functions. Common SFRs include ACC, B, PSW, SP, DPTR, TMOD, TCON and SCON. The 8051 is an efficient microcontroller with separate memory, 4KB ROM, 128B RAM, 4 I/O ports and other features.

Uploaded by

ms476zeal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

u1

SFR
upper 128 bytes of the internal data memory

21 : 8 bits
special functions
addressing of registers : instruction
increase functionality of the Microcontroller
provides both byte as well as bit operations
reducing complexity in terms of instructions

sfrs—> on chip registers for special functions of 8051

{ timers, counters , io , serial communication , interrrupt , power saving modes }

sfr : used with their addresses in instructions—> reduce no of opcodes in 8051

addressing : 80H - FFH : supports byte & bit wise operations

—> reduces no of opcodes for total instructions

SETB P0.0

has opcode
has address 80H

to access and control operation of

IO ports

cpu registers

interrupt control

timer/counter

serial port

power control functions

used as control table

accessing & monitoring various operation of microcontroller

u1 1
located bw 80H TO FFH in RAM

list os sfrs:

ACC = Accumulator

B register

PSW- progam status word

SP - stack pointer

DPTR- data pointer

IO ports—> P0,P1,P2,P3

IE—> interrupt enable register

IP—> interrupt priority register

TMOD—> timer mode control

TCON—> timer control

SCON—> serial port control

microcontroller

complete computer system build on one chip

12 MHz clock freq

haward arch: separate memory for program & data

4kb of internal ROM for program storage

128 bytes of RAM for data storage

4 IO Ports —> interfacing of peripherals

16 bit address bus —> used to interface external memory of RAM / ROM

8051 is efficient in embedded system, —> saves cost power & makes circuit compact

Program counter:

16 bit register
holds address of next I in prgram memory of ROM

DPTR

16 bit
holds address of data in memory of RAM

2 Register
DPH → Higher byte

DPL→ Lower byte


used to transfer data from external RAM

Stack Pointer:
8 bit

holds address of top of stack

used for PUSH, POP instructions

PSW: bit addressable register

u1 2
8 bit
Flag register

give status after every Instruction execution in program

u1 3

You might also like