Question

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.

Homework Answers

Answer #1

1. Program memory of PIC16F887 is of size 8192 words / 32768 bytes. Hence to address 32 KB of memory , 13 bit address lines will be required as word alignment causes lsb two bits always 0.

2. Program counter is 13 bit wide. Lower 8 bits of PC comes from PCL register which is readable/writable where as higher 5 bits of PC comes from PCLATH which can't be directly read or written.

3.

MOVLW 0x10 ; intialize pointer

MOVWF FSR ; to RAM, FSR = File Select Register

NEXT: CLRF INDF

INCF FSR

BTFSS FSR ,2

GOTO NEXT

; INDF is not a physical register. Any instruction using INDF register actually accesses data pointed to by the File Select Register , FSR.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
SRAM with 4k words of 32 bits each. How many address bits are needed to address...
SRAM with 4k words of 32 bits each. How many address bits are needed to address these words? 1. Assuming that the central memory array has the same number of rows as it has columns, how many rows are there? 2.How many of address bits are used by the row decoder 3.How many words are stored in each row 4. How many are used by column decoder
A digital computer has a memory unit with 32 bits per word. The instruction set consists...
A digital computer has a memory unit with 32 bits per word. The instruction set consists of 147 different operations. All instructions have an operation code part (opcode) and two address fields: one for a memory address and one for a register address. This particular system includes eight general-purpose, user-addressable registers. Registers may be loaded directly from memory, and memory may be updated directly from the registers. Direct memory-to-memory data movement operations are not supported. Each instruction stored in one...
please give full explanation. Suppose the program counter (PC) is set to 0x1000FFFF. Is it possible...
please give full explanation. Suppose the program counter (PC) is set to 0x1000FFFF. Is it possible to use the jump ( j ) MIPS assembly instruction to jump directly to the instruction at 0x10003000? If yes, write the corresponding assembly instruction(s). If not, explain why and give other MIPS instruction(s) that can jump to this target address. (For this problem, assume that the instruction memory starts from 0x00000000 and goes to 0xFFFFFFFF.)
How many memory operations are required to perform an add operation on a 3-address architecture if...
How many memory operations are required to perform an add operation on a 3-address architecture if each operand specifies an indirect memory reference?  
How many address lines (bits in the address) and I/O lines (bits in the actual data)...
How many address lines (bits in the address) and I/O lines (bits in the actual data) are needed for 2K X 16 word-addressable memories? Could you show the steps on how to solve this? thank you!
1a) A memory unit has 28-bit address lines and 64-bit input/output data lines. How many bytes...
1a) A memory unit has 28-bit address lines and 64-bit input/output data lines. How many bytes of data can this memory hold? How many words does it contain, and how large is each word? b) A memory unit consists of 32M words of 16-bit each. How many bits wide address lines and input-output data lines are needed to access this memory? c) A memory unit consists of 512K bytes of data. How many bits wide address lines are needed to...
How many memory locations can be addressed using 32 bits? Write your answer in hexadecimal.
How many memory locations can be addressed using 32 bits? Write your answer in hexadecimal.
Consider a virtual memory system that can address a total of 232 bytes. You have unlimited...
Consider a virtual memory system that can address a total of 232 bytes. You have unlimited hard drive space, but are limited to only 8 MB of physical memory. Assume that virtual and physical pages are each 4 KB in size. a. How many bits is the physical address? What is the maximum number of virtual pages in the system? How many physical pages are in the system? How many bits are the virtual and physical page numbers? Suppose that...
PLEASE with detailed explanation For a 1024 (1K) x 8 RAM memory - How many address...
PLEASE with detailed explanation For a 1024 (1K) x 8 RAM memory - How many address lines are required to access all 1K locations?               - List the hexadecimal address range for the whole memory               - List the size of each word stored in this memory For a 256K x 32 ROM memory - How many address lines are required to access all 256K locations?               - List the hexadecimal address range for the whole memory               - List...
Consider a process with a logical address space of 4 pages of 1024 bytes per page,...
Consider a process with a logical address space of 4 pages of 1024 bytes per page, mapped onto a physical memory of 64 frames. A. How many bits are there in the logical address? B. How many bits are there in the physical address? C. Given the following page table map: page 0 is mapped to frame 3, page 1 is mapped to frame 14, page 2 to frame 6, and page 3 to frame 33, what is the physical...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT