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
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?  
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...
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...
There are 3 forms of Program Memory Addressing Modes: Direct, Relative, and Indirect. Explain/Illustrate what happens...
There are 3 forms of Program Memory Addressing Modes: Direct, Relative, and Indirect. Explain/Illustrate what happens to CS and IP registers if the JMP THERE instruction is stored at memory address 10000H (CS=1000H, IP=0000H) and the address of THERE is: (A) 10020H (B) 30000H
a) What data structure is used by the machine code program placed in the instruction memory...
a) What data structure is used by the machine code program placed in the instruction memory of a fixed-length instruction representation processor? b) An ISA may be implemented by many different processor circuits. Why is this of value in the marketplace?
There is no agreement internationally on how to address the issue of auditor liability. Required: Describe...
There is no agreement internationally on how to address the issue of auditor liability. Required: Describe the approach taken in your own country (US) in addressing the issue of auditor liability and explain the rationale behind that approach.
1. The memory units that follow are specified by the number of words times the number...
1. The memory units that follow are specified by the number of words times the number of bits per word. How many address lines and input/output data lines are needed in each case? (a) 8K X 16 (b) 2G X 8 (c) 16M X 32 (d) 256K X 64 2. Give the number of bytes stored in each memory unit in question 1. 3. Word number 563 decimal in the memory shown in Fig. 7.3 (see Mano-Ch7.pdf) contains the binary...
How many parts assembly instructions has? What is the difference between signed and unsigned number? What...
How many parts assembly instructions has? What is the difference between signed and unsigned number? What is the memory size of HCS12. Explain your answer using address bus and data bus? How many CPU registers are there for HCS12 and what is the size of each register. How many flags are there in HCS12 and explain with example all the flags of HCS12.
Using the following information (Machine’s IP=33.32.31.30, Machine’s Netmask=/29, Parent’s Netmask=255.255.240.0 ), determine a. how many bits...
Using the following information (Machine’s IP=33.32.31.30, Machine’s Netmask=/29, Parent’s Netmask=255.255.240.0 ), determine a. how many bits are used for host number on the child network (subnet) b. how many usable addresses can exist on this child network (subnet) c. what the first usable address is on this child network (subnet) d. what the last usable address is on this child network (subnet) e. what the child network’s (subnet's) broadcast address is f. what the child network's (subnet's) network number is...