Addressing Modes-Embedded System Control-Lecture Slides, Slides of Embedded Control Systems

This lecture was delivered by Mr. Rohit Kohli at National Institute of Industrial Engineering for Embedded System Control course. It includes: Mitochondrial, Introns, Sarcolemma, Photoreceptors, Respiration, Mitochondrial, Mitochondrial, Oxidative, Heterogeneity, Organs

Typology: Slides

2011/2012

Uploaded on 07/26/2012

unknown user
unknown user 🇮🇳

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
2
Addressing Modes
zRegister Direct
zmovff reg1, reg2
zImmediate Mode
zmovlw 0x15
zInherent Mode
zmovlw 0x20
zBit-Direct Addressing Mode
zBCF PORTB,3,A
zIndirect Mode
docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Addressing Modes-Embedded System Control-Lecture Slides and more Slides Embedded Control Systems in PDF only on Docsity!

Addressing Modes z

Register Direct z

movff reg1, reg

z

Immediate Mode z

movlw 0x

z

Inherent Mode z

movlw 0x

z

Bit-Direct Addressing Mode z

BCF PORTB,3,A

z

Indirect Mode

docsity.com

Indirect Addressing z

Three Indirect Registers FSRO, FSR1, andFSR2.

z

After placing the address of the data in one ofthe FSR registers, one needs to read from orwrite into one of the three registers that arenot physically implemented in order toactivate indirect addressing. These threeregisters are INDFO, INDF1, and INDF2.

docsity.com

Indirect Addressing (Cont) z

Each FSR register has an INDF register associated with it plus fouradditional register addresses 1. Do nothing to FSRn after an indirect access. This access is specified by using

the register INDFn (n = 0... 2).

  1. Auto-decrement FSRn after an indirect access (postdecrement). This access is specified by using the register POSTDECn (n = 0.. .2). 3. Auto-increment FSRn after an indirect access (postincrement). This access is specified by using the register POSTINCn (n = 0.. .2). 4. Auto-increment FSRn before an indirect access (preincrement). This access specified by using the register PREINCn (n = 0.. .2). 5. Use the value in the WREG register as an offset to FSRn. The signed value in WREG is added to the value in FSR to form an address before performingan indirect access. Neither the WREG nor the FSRn is modified after theaccess. This access is specified by using the register PLUSWn z movwf INDFO z movwf POSTDECO z movwf PREINCO z clrf PLUSWO docsity.com

Special Function Registers

docsity.com