I have been using LCD_Anypin routine and would like to get it down to a few less lines. Attached is a stripped down version used for a VFD with only a ~write line and a Busy line. I can not figure out why there is such a large delay between the time I set the ~write line low and the time it takes to leave the routine. Please advise... The time I am talking about is in the area of 60 or so milliseconds. My defines are as follows:
DEFINE LCD_DREG PORTD 'LCD DATA BUS ON PORT D
DEFINE LCD_DBIT 0 'LCD DATA BUS ON PORTD.0:8
DEFINE LCD_EREG PORTE 'USED FOR BUSY OUTPUT FROM VFD DISPLAY
DEFINE LCD_EBIT 2 'USED FOR BUSY OUTPUT FROM VFD DISPLAY
DEFINE LCD_RWREG PORTE 'USED FOR ~WRITE TO VFD DISPLAY
DEFINE LCD_RWBIT 3 'USED FOR ~WRITE TO VFD DISPLAY
DEFINE LCD_DATAUS 20
DEFINE LCD_BITS 8 'DATA BUS 8 BITS
'
INCLUDE "C:\PBP\INCLUDES\VFD_Display.pbp"
Thanks in advance.
Dave Purola,
DEFINE LCD_DREG PORTD 'LCD DATA BUS ON PORT D
DEFINE LCD_DBIT 0 'LCD DATA BUS ON PORTD.0:8
DEFINE LCD_EREG PORTE 'USED FOR BUSY OUTPUT FROM VFD DISPLAY
DEFINE LCD_EBIT 2 'USED FOR BUSY OUTPUT FROM VFD DISPLAY
DEFINE LCD_RWREG PORTE 'USED FOR ~WRITE TO VFD DISPLAY
DEFINE LCD_RWBIT 3 'USED FOR ~WRITE TO VFD DISPLAY
DEFINE LCD_DATAUS 20
DEFINE LCD_BITS 8 'DATA BUS 8 BITS
'
INCLUDE "C:\PBP\INCLUDES\VFD_Display.pbp"
Thanks in advance.
Dave Purola,
Comment