Question

In: Electrical Engineering

How many bits are required to address the program memory of PIC16F887? What is PCLATH? For...

How many bits are required to address the program memory of PIC16F887? What is PCLATH? For PC absolute addressing, describe how to write assembly program to jump to code located in a different program memory page.

Solutions

Expert Solution

8000bits(8Kb) are required to address the program memory of PIC16F887. The fig below represents program mapping of PIC16F887.

PCLATH Registers: The size of the program memory of the PIC16F887 is 8K. Therefore, it has 8192 locations for program storing. For this reason the program counter must be 13-bits wide (2^13 = 8192). In order that the contents of some location may be changed in software during operation, its address must be accessible through some SFR. Since all SFRs are 8-bits wide, this register is “artificially” created by dividing its 13 bits into two independent registers: PCLATH and PCL.

13 Register File Structure in PIC 16F887

  • Eight lower bits (the low byte) come from the PCL register which is readable and writable, whereas five upper bits coming from the PCLATH register are writable only.
  • The PCLATH register is cleared on any reset.

write assembly program to jump to code located in a different program memory page:


Related Solutions

Problem 1. How many bits are required to address a 4M × 16 main memory under...
Problem 1. How many bits are required to address a 4M × 16 main memory under the following conditions. (“4M x 16” means there are 4x220 16-bit words.) a) The main memory is byte-addressable? b) The main memory is word-addressable? (For part b, assume a 16-bit word.)
Clark 202 Part 1: Approximately how many bits are required to address a 4M x 16...
Clark 202 Part 1: Approximately how many bits are required to address a 4M x 16 main memory if: a. Main memory is byte addressable? b. or Main memory is word addressable? Part 2: Consider 256 x 8 RAM chips for the following: a. About how many are needed to provide a memory capacity of 4096 bytes? b. How many lines must go to each and every chip? Part 3: Digital computers have a memory unit with 24 bits per...
Given a memory address of 34Ah (10 bits) with 4 memory banks. Determine the memory bank...
Given a memory address of 34Ah (10 bits) with 4 memory banks. Determine the memory bank address and the address of the word in the bank using Low Order Interleaving (LOI).
Draw a small diagram of a MAC address. Note the OUI. Note how many bits in...
Draw a small diagram of a MAC address. Note the OUI. Note how many bits in each section.
Suppose a block cipher uses m-to-m bits S-boxes. How many bits are required to store the...
Suppose a block cipher uses m-to-m bits S-boxes. How many bits are required to store the look-up table of k different such m-to-m bits S-boxes? Give a formula in terms of k and m. Hint: A look-up table for one DES S-box requires 256 bits of storage.
How many bits are required to represent all the elements currently in the Periodic Table?
How many bits are required to represent all the elements currently in the Periodic Table?
1. Many operating systems now operate on 64 bits of memory. What is the highest base...
1. Many operating systems now operate on 64 bits of memory. What is the highest base 10 number it could store? 2. How many bits would you need to store the number 8,000,000? 3. How many bits is 5 Gigabytes? 4. In order to get back the original signal without distortion I must sample at _____________ the highest frequency in the signal. a. at least 2 times b. exactly c. exactly 2 times d. at least half
[7] How many MB of video memory is required to display an image with a resolution...
[7] How many MB of video memory is required to display an image with a resolution of 1,920 x 1,080 pixels and 65,536 colors (2^16colors)? However, 1 [MB] = 1,000 [kB] and 1 [kB] = 1,000 (B). [8] What is the amount of video memory required to display an image with a resolution of 1,600 x 1,200 pixels and 65,536 colors (2^16 colors)? However, 1 [MB]= 1,000 [kB], 1 (kB] = 1,000 (B). [9] Minimum required for video distribution at...
How many total bits are required for a 1-way set associative cache with 16 KB of...
How many total bits are required for a 1-way set associative cache with 16 KB of data and 8-word blocks, assuming a 32-bit address?
Assume a 64Kx8 Memory is designed using 16Kx1 RAM chips. How many address lines must be...
Assume a 64Kx8 Memory is designed using 16Kx1 RAM chips. How many address lines must be decoded externally to each 16K RAM chip?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT