Question

In: Electrical Engineering

The following problems are related to PIC18F46K22 data memory: (a) What is the data memory space...

The following problems are related to PIC18F46K22 data memory:

(a) What is the data memory space and actual implemented size?

(b) What does direct addressing mean?

(c) What does indirect addressing mean?

(d) What is the Access Bank used for?

(e) What is the address range for Bank 6?

(f) What is the purpose of the registers FSR0, FSR1, FSR2 for?

Solutions

Expert Solution

Answer:- a) PIC18 devices have 4096 bytes of data memory. The memory space is divided into 16 banks that contains 256 bytes each.

Answer:- b) The direct addressing specifies either all or part of the source and/or destination address of the instruction in the opcode itself. The address value is used directly with the instruction. Ex-
MOVWF 0x70; here 0x70 is the address of the destination.
Answer:- c) Indirect addressing has the address of the source or destination in a register. In PIC18, File Selection Registers (FSRs) and Indirect File Operands (INDFs) are used as pointers to the locations which are to be read or written.

Answer:- d) The access bank is used by PIC18 instructions that include the Access RAM bit (the ‘a’ parameter in
the instruction).
If ‘a’ is equal to ‘1’, then the instruction
uses the BSR and the 8-bit address included in the
opcode for the data memory address.
If ‘a’ is ‘0’, the instruction is forced to use the access
bank address map.

Answer:- e) The address range of bank 6 is from 0x600 to 0x6FF.

Answer:- f) FSR0, FSR1 and FSR2 each represent a pair of 8-bit register. It can have a 12-bit data memory address. These are used as pointers to data memory locations.


Related Solutions

How are the column space and the row space of a matrix A related to the...
How are the column space and the row space of a matrix A related to the column space and row space of its reduced row echelon form? How does this prove the column rank of A equals the row rank?
What is the Multifactor productivity for the Blue Space Inc. if they have the following data?...
What is the Multifactor productivity for the Blue Space Inc. if they have the following data? Units produced: 25,000 Standard price: $30/unit Labor input: 500 hours Cost of labor: $25/hour Cost of materials: $10,000 Cost of overhead: 2x labor cost
What are related rates? How related rate is useful in solving physical problems?
What are related rates? How related rate is useful in solving physical problems?
Youtube as a space for ethical concern: What are the problems and how do you propose...
Youtube as a space for ethical concern: What are the problems and how do you propose we address them?
1. The following data shows memory scores collected from adults of different ages. Age (X) Memory...
1. The following data shows memory scores collected from adults of different ages. Age (X) Memory Score (Y) 25 10 32           10 39 9 48 9 56 7 Use the data to find the regression equation for predicting memory scores from age Group of answer choices a. Ŷ = 4.33X + 0.11 b. Ŷ = -0.11X + 4.33 c. Ŷ = -0.11X + 13.26 d. Ŷ = -0.09X + 5.4 e. Ŷ = -0.09X + 12.6 1a Use the regression...
What are the problems of analyzing non-stationary data?
What are the problems of analyzing non-stationary data?  
In a system employing a paging scheme for memory management; wasted space is due to: External...
In a system employing a paging scheme for memory management; wasted space is due to: External fragmentation Internal fragmentation Pages and frames of different specified sizes None of these are reasons for wasted space in a paging scheme The page table for each process maintains: The frame location for each page of the process The page location for each frame of the process The physical memory location of the process None of these are what the page table maintains The...
What is memory unit and what are the basic units of memory measurements
What is memory unit and what are the basic units of memory measurements
Answer the following questions in relation to data sheet for memory 2114 (a classic model that...
Answer the following questions in relation to data sheet for memory 2114 (a classic model that has been in the market for many years): a)How long is the word? b) What is the size of the memory? c) How many locations can be accessed? d) How many address lines does this memory have? e) How many lines of data are considered in this memory? f) What signals are considered control lines and what function do they have?
What are some of the ethical problems related to the FIFA corruption case in 2015? There's...
What are some of the ethical problems related to the FIFA corruption case in 2015? There's no right or wrong answer, but just make sure to explain briefly in the examples.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT