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...
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
6- Write a C++ program that determines the amount of memory used by char, short int,...
6- Write a C++ program that determines the amount of memory used by char, short int, unsigned short int, float, and double types and display the information on the screen. You program should also display the typical range for each data type.
Python Programming Revise the ChatBot program below. There needs to be one list and one dictionary...
Python Programming Revise the ChatBot program below. There needs to be one list and one dictionary for the ChatBot to use. Include a read/write function to the program so that the program can learn at least one thing and store the information in a text document. ChatBot program for revising: # Meet the chatbot Eve print('Hi there! Welcome to the ChatBot station. I am going to ask you a series of questions and all you have to do is answer!')...
Memory refers to the physical devices used to store programs or data. Main memory is used...
Memory refers to the physical devices used to store programs or data. Main memory is used for the information in physical systems which function at high speed (i.e. RAM), as compared to secondary memory, which are physical devices for program and data storage which are slow to access but offer higher memory capacity. The cache memory is an intermediate level between the main memory and the processor. The goal is to store the most frequently and most recently accessed data...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT