Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
As per the picture, the program counter support 13 bit. But Instruction register support 14bit. Let me know the reason. What is the bit escape by program counter
View attachment 60024
movpf RCREG,SerInData
or
btfss PIR,0
or
movlw 0x90
Program counter holds the program memmory address (where is your code is stored), but it is content is 14 bits wide (it can be any other number depending on your CPU design). Keep in mind that; instructions are 14 bits wide, but data path is still 8 bits in these mcu's.The PIC16F87X devices have a 13-bit program counter capable of addressing an 8K x 14 program memory space. The PIC16F877/876 devices have 8K x 14 words of FLASH program memory
As per the picture, the program counter support 13 bit. But Instruction register support 14bit. Let me know the reason. What is the bit escape by program counter
Please advic
Dear/PA3040
What do you think about this reply?
Your MCU is 16F877a, which is 8k Program memory. That means 8192Bytes
As well as 8192 address locations in program memory. The program Counter should be capable to access this all
address locations from 00 to end. Therefore 13bit wide is need to access 8192 address locations
PC Program memory Location
0000000000000 00h 0
0000000000001 01h 2
0000000000010 02h 3
0000000000011 03h 4
0000000000100 04h 5
0000000000101 05h 6
| |
| |
| |
0111111111111
1111111111111 0FFFh 8192
As per the picture, the program counter support 13 bit. But Instruction register support 14bit. Let me know the reason. What is the bit escape by program counter
Please advic
View attachment 60024
I think not need 13bit for scan all 8k addresses because PCL is 8bit that means 256 locations. From next page PCL start from zero.Brother fisrt please understand wht program counter is.
program counter will not hold any data but address. In PIC16 mid range Max Flash memory is 8k x 14 words which means 8k locations are there and all that are 14bit wide.
to address this 8k space we need 13 address lines. ok. Thats why size of PC is 13bit.
Hope this helps
I think not need 13bit for scan all 8k addresses because PCL is 8bit that means 256 locations. From next page PCL start from zero.