Question

In: Electrical Engineering

In the PIC18F452 Programming Model, list 2 registers that are used to access the Program Memory....

In the PIC18F452 Programming Model, list 2 registers that are used to access the Program Memory. Indicate their sizes.

Solutions

Expert Solution

PIC18 has 18 to 100 pins and up to 128kb of flash memory.

The representation of the internal architecture of a processor, necessary to write assembly language programs.

  • Programming model

Two groups of registers in PIC16 8bit programming model

  • ALU Arithmetic Logic Unit (ALU)
  • Special Function Registers (SFR's) from data memory.

ALU

WREG

Status

Instruction decoder

Registers

Bank Select Registers

File select registers

Program counter

Control Unit

Data memory up to 4k bytes divided into 256 byte Banks.

Access bank 256 bytes

Access RAM 00h to 7Fh

Access SFR 80h to FFh

Register File concept: All of data memory is part of the register file, so any location in data memory may be operated directly.

All peripherals are mapped into data memory as a series of registers.

All instructions can operate on any data memory location.

Special Function registers F80h to FFFh

Input output Ports

Interrupts

EE PROM

Serial I/O ports
Timer
CCP(having multiple memory)
A/D converter
Synchronous Serial I/O
Miscellaneous
Functions

WREG

  • 8- bit Working Register i.e. equivalent to an accumulator
  • Used for arithmetic and logic operations

BSR: Bank Select Registers 0 to F

  • 4 bit register.
  • Only low ordee four bits are used to provide MSB four bits of a 12 bit address of data memory.

Thank you.


Related Solutions

Question 3. Describe memory types used in the MIPS assembly. Explain registers used in the MIPS...
Question 3. Describe memory types used in the MIPS assembly. Explain registers used in the MIPS assembly. Differentiate between assembly source code and machine code. Write a note on MIPS instruction formats.
Assume that the state of the 8086 registers and memory just prior to the execution of...
Assume that the state of the 8086 registers and memory just prior to the execution of each instruction is given as below: (AX) = 0000 H (BX) = 0010 H (CX) = 0105 H (DX) = 1111 H (SI) = 0100 H (DI) = 0200 H (CF)= 0 (DS:100H) = 0F H (DS:200H) = 22 H (DS:220H) = AA H (DS:221H) = 55 H (DS:400H) = AA H (DS:401H) = 55 H Examine the following instructions independently and calculate the...
In a memory system, when the access time of the cache is 10ns and the access...
In a memory system, when the access time of the cache is 10ns and the access time of the main memory is 50ns, what is the hit ratio of the cache if the effective access time is 10% larger than the access time of the cache? (Up to 4 digits below the decimal point) please detail explanation
1- Assume that the state of the 8086 registers and memory just prior to the execution...
1- Assume that the state of the 8086 registers and memory just prior to the execution of each instruction is given as below: (AX) = 0010 H (BX) = 0020 H (CX) = 0030 H (DX) = 0040 H (SI) = 0100 H (DI) = 0200 H (CF) = 1 (DS:100H) = 10 H (DS:101H) = 00 H (DS:120H) = FF H (DS:121H) = FF H (DS:130H) = 08 H (DS:131H) = 00 H (DS:150H) = 02 H (DS:151H) =...
1. What Are The Various Registers In 8085? 2. What Are The Various Flags Used In...
1. What Are The Various Registers In 8085? 2. What Are The Various Flags Used In 8085? 3. What Is Stack Pointer? 4. What Is Program Counter? 5. Which Stack Is Used In 8085?
1. What Are The Various Registers In 8085? 2. What Are The Various Flags Used In...
1. What Are The Various Registers In 8085? 2. What Are The Various Flags Used In 8085? 3. What Is Stack Pointer? 4. What Is Program Counter? 5. Which Stack Is Used In 8085? 6. What Happens When Hlt Instruction Is Executed In Processor? 7. What Is Meant By A Bus? 8. What Is Tri-state Logic? 9. Give An Example Of One Address Microprocessor? 10. In What Way Interrupts Are Classified In 8085? 11. What Are Hardware Interrupts? 12. What...
Why are 31 registers considered a bad compromise instead of the 32 registers used by MIPS?
Why are 31 registers considered a bad compromise instead of the 32 registers used by MIPS?
Direct memory access is used for high-speed I/O devices in order to avoid increasing the CPU's...
Direct memory access is used for high-speed I/O devices in order to avoid increasing the CPU's execution load. (a) What does the CPU do to interface with the device to coordinate the transfer? (b) How does the CPU know when the memory operations are complete? (c) The CPU is allowed to execute other programs while the DMA controller is transferring data. Does DMA interfere with the execution of the other programs? If so, describe what form of interference are caused.
Explain the bounds registers approach for partitioned memory management and also give the major disadvantage of...
Explain the bounds registers approach for partitioned memory management and also give the major disadvantage of the bounds registers approach
programming in python Design a program that initializes a list of 5 items to zero (use...
programming in python Design a program that initializes a list of 5 items to zero (use repetition operator). It then updates that list with a series of 5 random numbers. The program should find and display the following data: -The lowest number in the list - Average of the numbers stored in the list
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT