Announcement

Collapse
No announcement yet.

Unknown Delay?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • DavidP
    replied
    Darrel, Thanks, It is all working now. I just received a new VFD sample form Noritake/Itron and wanted to get it to work with LCDOUT statements. It only has a ~write line and a Busy line to monitor for the next character and 8 data lines. Attached is the finished routine for anyone that need it. Enjoy...
    Attached Files

    Leave a comment:


  • Darrel Taylor
    replied
    Dave,

    You can't use PAUSEUS inside the LCD routines.
    PAUSEUS uses PBP's system variables, which corrupts the flow of the LCDOUT commands.
    That's why my original code uses the @ DelayUS xxx macro.

    The macro is part of the VirtualPort.bas file.

    Leave a comment:


  • DavidP
    started a topic Unknown Delay?

    Unknown Delay?

    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,
    Attached Files
    Last edited by DavidP; 01-27-2014, 12:57 PM. Reason: more to add
Working...
X