I want to shift one column data to another column from column 71 to column 72
When I press switch 1, I display only one column of data
When I press switch 2, it should shift the data to the next column
Please have a look at the two simple subroutines below
B1, B2, B3, B4 are the four pages I use to get 32 bit vertical data column
Ignore the SND_CMD and SND_DTA subroutines as they are just the LCD command and data subroutines for the location on display
I am displaying the data in column 71 correctly
I am not getting the shifted data in column 72 correctly
When I press switch 1, I display only one column of data
When I press switch 2, it should shift the data to the next column
Please have a look at the two simple subroutines below
B1, B2, B3, B4 are the four pages I use to get 32 bit vertical data column
Ignore the SND_CMD and SND_DTA subroutines as they are just the LCD command and data subroutines for the location on display
I am displaying the data in column 71 correctly
I am not getting the shifted data in column 72 correctly
Rich (BB code):
//////column 71 is used here
//////SND_CMD is the command subroutine
//////SND_DTA is the data subroutine
label_diplay_column_data:
LFSR 1,h'100'
movlw 0xFF
movwf INDF1
movf POSTINC1,0
movlw 0xFF
movwf INDF1
movf POSTINC1,0
movlw 0xFF
movwf INDF1
movf POSTINC1,0
movlw 0xFF
movwf INDF1
movlw 0xB1
movwf PORTD
call SND_CMD
movlw 0x17
movwf PORTD
call SND_CMD
movlw 0x01
movwf PORTD
call SND_CMD
movf POSTDEC1,0
movf INDF1,0
movwf PORTD
call SND_DTA
movlw 0xB2
movwf PORTD
call SND_CMD
movlw 0x17
movwf PORTD
call SND_CMD
movlw 0x01
movwf PORTD
call SND_CMD
movf POSTDEC1,0
movf INDF1,0
movwf PORTD
call SND_DTA
movlw 0xB3
movwf PORTD
call SND_CMD
movlw 0x17
movwf PORTD
call SND_CMD
movlw 0x01
movwf PORTD
call SND_CMD
movf POSTDEC1,0
movf INDF1,0
movwf PORTD
call SND_DTA
movlw 0xB4
movwf PORTD
call SND_CMD
movlw 0x17
movwf PORTD
call SND_CMD
movlw 0x01
movwf PORTD
call SND_CMD
movf INDF1,0
movwf PORTD
call SND_DTA
return
Last edited: