This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LCD 20x4 ( 4 bits ) lib

hello everyone I am trying to use a LCD 20x4 ( 4 bits ) with a lm3s328 , but have not found a proper lib , can someone give me a hand .
Thank you .

Parents
  • I believe that this is the problem. On and off the pins have learned and fix what was wrong . But I have questions about this delay . If I leave without "return" it is locked as in an infinite loop and does not pursue the code. I also noticed that the variable msticks does not increase . How come?

    ///LCD.c
    void lcd_delay(int msec) {
            volatile uint32_t done = msTicks + msec;
            while (msTicks != done)
                    ;
    }
    
    ///VTABLE.c
    void SysTick_Handler(void) {
            msTicks++;
    }
    
    

Reply
  • I believe that this is the problem. On and off the pins have learned and fix what was wrong . But I have questions about this delay . If I leave without "return" it is locked as in an infinite loop and does not pursue the code. I also noticed that the variable msticks does not increase . How come?

    ///LCD.c
    void lcd_delay(int msec) {
            volatile uint32_t done = msTicks + msec;
            while (msTicks != done)
                    ;
    }
    
    ///VTABLE.c
    void SysTick_Handler(void) {
            msTicks++;
    }
    
    

Children