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

(a) Consider the following MIPS memory with data shown in hex, which are located in memory...
(a) Consider the following MIPS memory with data shown in hex, which are located in memory from address 0 through 15. Show the result of the MIPS instruction “lw $s0, 4($a0)” for machines in little-endian byte orders, where $a0 = 4.   Address Contents 0 8a 1 9b 2 a3 3 b4 4 c5 5 6d 6 7e 7 8f Address Contents 8 0a 9 1b 10 2c 11 3d 12 4e 13 5f 14 66 15 70 (b) )Assume we...
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?
The following code segment is stored in memory starting at memory location 0x00445670. What are the...
The following code segment is stored in memory starting at memory location 0x00445670. What are the two possible values for the contents of the PC after the branch instruction has executed?       bgez $a0, skip                      # mem location: 0x00445670 subu $s2, $s1, $t0 # branch NOT taken (false) ori    $v0, $t1, 0x0003 #       skip: addi $t0, $t1, 2 # branch taken (true) if taken: if not taken: Hint: Remember how many bytes each instructions takes.
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
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT