Dúvida com mensagem do MPLAB

Software e Hardware para uC PIC

Moderadores: andre_luis, 51, guest2003, Renie

Dúvida com mensagem do MPLAB

Mensagempor Francys Reymer » 20 Set 2010 23:19

pessoal to mexendo com o poc16f877a com o mplab e em assembly puro, e quando depuro da esta mensagem:
Message[306] C:\PIC16F877A\HANDSCOPE_PIC16F877A.ASM 2464 : Crossing page boundary -- ensure page bits are set.

alguem sabe dizer o q é?
Avatar do usuário
Francys Reymer
Byte
 
Mensagens: 102
Registrado em: 10 Dez 2009 15:21

Mensagempor Francys Reymer » 21 Set 2010 00:11

to desconfiado que é aquele esquema de paginação do pic, prq quando estou no passo-a-passo e chego na linha 2464 como está descrito na mensagem ele salta para o início do programa. Alguém pode me dar um exemplo de como faz, se é q estou certo.
Avatar do usuário
Francys Reymer
Byte
 
Mensagens: 102
Registrado em: 10 Dez 2009 15:21

Mensagempor Djalma Toledo Rodrigues » 21 Set 2010 10:57

2.3 PCL and PCLATH
The program counter (PC) is 13-bits wide. The low byte
comes from the PCL register, which is a readable and
writable register. The upper bits (PC<12:8>) are not
readable, but are indirectly writable through the
PCLATH register.
On any RESET, the upper bits of the
PC will be cleared. Figure 2-5 shows the two situations
for the loading of the PC. The upper example in the figure
shows how the PC is loaded on a write to PCL
(PCLATH<4:0> → PCH). The lower example in the figure
shows how the PC is loaded during a CALL or GOTO
instruction (PCLATH<4:3> → PCH)..


Ver fig. 2-5

http://ww1.microchip.com/downloads/en/d ... 30292c.pdf

DJ
Avatar do usuário
Djalma Toledo Rodrigues
Dword
 
Mensagens: 2334
Registrado em: 03 Ago 2008 13:22

Mensagempor Francys Reymer » 21 Set 2010 20:03

vlw era isso mesmo kra =D
Avatar do usuário
Francys Reymer
Byte
 
Mensagens: 102
Registrado em: 10 Dez 2009 15:21


Voltar para PIC

Quem está online

Usuários navegando neste fórum: Google [Bot] e 1 visitante

x