PA3040
Advanced Member level 3
- Joined
- Aug 1, 2011
- Messages
- 883
- Helped
- 43
- Reputation
- 88
- Reaction score
- 43
- Trophy points
- 1,308
- Activity points
- 6,936
Dear All
Can I have the simple example in assembly that effect the page memory boundary crossing and how handle the problem
1. one example for effect of 2k boundary crossing effect
2. how about solution above 1
My MCU is PIC16f877a
It would be much appreciated if some one can give a this help for my understanding purpose.
In the above code in red color command line. when it is org 0x99 it is working and when it is 0x100 table reading gets malfunctions
please advice
Thanks in advance
Can I have the simple example in assembly that effect the page memory boundary crossing and how handle the problem
1. one example for effect of 2k boundary crossing effect
2. how about solution above 1
My MCU is PIC16f877a
It would be much appreciated if some one can give a this help for my understanding purpose.
Code:
count equ 0x20
LIST p=16f977a
#include <p16f877a.inc>
org 0x00
Start goto main
main clrf count
loop movf count,w
call table
incf count
goto loop
nop
nop
nop
nop
nop
nop
[COLOR="#FF0000"]org 0x100[/COLOR]
table addwf PCL,F
retlw 0x00
retlw 0x01
retlw 0x02
retlw 0x03
retlw 0x04
retlw 0x05
retlw 0x05
retlw 0x06
end
In the above code in red color command line. when it is org 0x99 it is working and when it is 0x100 table reading gets malfunctions
please advice
Thanks in advance
Last edited: