ok I've been stuck for 2 days, tried everything I could find on the net and read the “Implementing a Table Read" (AN556) Application note about 25 times and I just can't figure it out!
I'm reading tables that contain text menus that will be displayed on a LCD screen. Everything was going great and all until I started to add interrupt code just before the tables and everything shifted in memory to go over the 0x100 border, now everything before the border works great with my display code but nothing after it works.
Here is a snipet of my original code...
Nigel should recognise this code (BTW thanks for the great tutorials!)
Then after my problems started to appear, I tried to implement the code in the application note from Microchip but nothing good has worked and I'm pretty much stumped right now. So I'm hoping someone else might have stumbled on this problem and could give me a push in the right direction. I'm pretty much confused about the HIGH and LOW directives or whatever they call them as seen in the application note.
BTW I'm using a PIC16F873 MCU
Thanks!
I'm reading tables that contain text menus that will be displayed on a LCD screen. Everything was going great and all until I started to add interrupt code just before the tables and everything shifted in memory to go over the 0x100 border, now everything before the border works great with my display code but nothing after it works.
Here is a snipet of my original code...
Code:
DisplayBatID call LCD_Clr
clrf count ;set counter register to zero
DisplayBatID_1 movf count, w ;put counter value in W
call BatIDL1 ;get a character from the text table
xorlw 0x00 ;is it a zero?
btfsc STATUS, Z
goto DisplayBatID_2
call LCD_Char
incf count, f
goto DisplayBatID_1
DisplayBatID_2 call LCD_Line2
clrf count ;set counter register to zero
DisplayBatID_3 movf count, w ;put counter value in W
call BatIDL2 ;get a character from the text table
xorlw 0x00 ;is it a zero?
btfsc STATUS, Z
goto DisplayBatID_4
call LCD_Char
incf count, f
goto DisplayBatID_3
DisplayBatID_4 bcf flags, change
retlw 0x00
Then after my problems started to appear, I tried to implement the code in the application note from Microchip but nothing good has worked and I'm pretty much stumped right now. So I'm hoping someone else might have stumbled on this problem and could give me a push in the right direction. I'm pretty much confused about the HIGH and LOW directives or whatever they call them as seen in the application note.
BTW I'm using a PIC16F873 MCU
Thanks!