Introduction to RISC Based Architecture
Subject and UNIT: Microprocessors and Microcontrollers: Unit V: (b) Introduction to RISC Based Architecture
• Steps for Programming PIC18F458 Timer 1. Configure the Timer Control Register. 2. Clear Timer interrupt flag. 3. Load the count in Timer register. 4. Set Timer ON bit to start the Timer operation. 5. Wait for Timer interrupt flag to become 1. Timer interrupt flag bit = 1, indicates the occurrence of the timer overflow.
Introduction to RISC Based Architecture
Subject and UNIT: Microprocessors and Microcontrollers: Unit V: (b) Introduction to RISC Based Architecture
1. Registers used for Timer/Counter Operation 2. Prescaling of PIC18 Timers 3. Timer 0 4. Timer 1 5. Timer 2 6. Timer 3 7. Delay Calculations
Introduction to RISC Based Architecture
Subject and UNIT: Microprocessors and Microcontrollers: Unit V: (b) Introduction to RISC Based Architecture
Review Questions 1. Explain all ports (A-E) of PIC18FXXX. 2. Explain functions of Ports in PIC18FXXX. 3. Explain the alternate functions of Port A in PIC18FXXX. 4. Explain the alternate functions of Port B and Port C in PIC18FXXX. 5. Explain the alternate functions of Port D and Port E in PIC18FXXX. 6. Explain the bit pattern of TRISE register. 7. What is bit addressability? State its advantage. 8. Explain any four bit addressable instructions of PIC18F. 9. Explain input pin Vs. LATx Port of PIC18F.
Introduction to RISC Based Architecture
Subject and UNIT: Microprocessors and Microcontrollers: Unit V: (b) Introduction to RISC Based Architecture
PIC Programming Techniques
Introduction to RISC Based Architecture
Subject and UNIT: Microprocessors and Microcontrollers: Unit V: (b) Introduction to RISC Based Architecture
1. Byte-Oriented File Register Operations 2. Bit-Oriented File Register Operations 3. Control Operations 4. Literal Operations 5. Data Memory/Program-Memory Operations
Introduction to RISC Based Architecture
Subject and UNIT: Microprocessors and Microcontrollers: Unit V: (b) Introduction to RISC Based Architecture
Fig. 18.10.1 shows the general formats that the instruction can have.
Introduction to RISC Based Architecture
Subject and UNIT: Microprocessors and Microcontrollers: Unit V: (b) Introduction to RISC Based Architecture
• The instruction set is highly orthogonal and is grouped into four basic categories: ■ Byte-oriented operations ■ Bit-oriented operations ■ Literal operations ■ Control operations
Introduction to RISC Based Architecture
Subject and UNIT: Microprocessors and Microcontrollers: Unit V: (b) Introduction to RISC Based Architecture
Review Question : 1. Explain the addressing modes supported by PIC18 with the help of suitable examples.
Introduction to RISC Based Architecture
Subject and UNIT: Microprocessors and Microcontrollers: Unit V: (b) Introduction to RISC Based Architecture
Review Questions 1. What is File Register in PIC18? 2. Explain the File Register data memory of PIC18F458. 3. Explain programmable memory organization of PIC18FXXX microcontroller. 4. What is access bank? 5. Explain the direct and indirect addressing methods for accessing data memory. 6. What is BSR? Explain
Subject and UNIT: Microprocessors and Microcontrollers: Unit V: (b) Introduction to RISC Based Architecture
Review Questions 1. What is program counter? 2. Write a note on PIC18 Program Counter. 3. Explain the programmable ROM space in PIC18. 4. Draw and explain programmable memory map of PIC microcontroller 5. Explain programmable memory organization of PIC18FXXX microcontroller
Introduction to RISC Based Architecture
Subject and UNIT: Microprocessors and Microcontrollers: Unit V: (b) Introduction to RISC Based Architecture
Review Questions 1. Write a note on PIC18 registers. 2. What is the function of WREG register in PIC microcontroller? 3. Explain the status register of PIC18. 4. What are SFRS ?
Subject and UNIT: Microprocessors and Microcontrollers: Unit V: (b) Introduction to RISC Based Architecture
Review Questions 1. Give the classification of PIC18F458 pins. 2. Give the alternate functions provided by Port A and Port E pins. 3. Give the alternate functions provided by Port B pins. 4. Give the alternate functions provided by Port C pins. 5. Give the alternate functions provided by Port D pins.