Hello everybody,

Today I tried this sample: 16f876a_sht.jal.
At the beginning I only saw the first and the third line of  my the
20x4 lcd.

In order to solve this problem, I had to modify, lcd_hd44780_4.jal,
with the  two lines below:

 __lcd_write( 0b_0010_1000 )                     -- two lines, 5x7
 delay_10us(4)                                         -- > 37 us

respectfully,

Enzo SERAFINI




--
----------------------------------------------------------------------------
-- Initialize LCD controller to 4-bit mode
--
----------------------------------------------------------------------------
procedure lcd_init() is

   -- first, init the interface
   lcd_rs = LOW                                 -- set to control char
mode
   delay_1ms(25)                                -- power-up delay (>
15 ms)
   __lcd_write_nibble(0b0000_0011)      -- function set
   delay_1ms(5)                                  -- > 4.1 milliseconds
   __lcd_write_nibble(0b0000_0011)      -- function set
   delay_10us(10)                                -- > 100 us
   __lcd_write_nibble(0b0000_0011)      -- function set
   delay_10us(4)                                  -- > 37 us
   __lcd_write_nibble(0b0000_0010)       -- to 4-bit mode
   delay_10us(4)                                   -- > 37 us

   __lcd_write( 0b_0010_1000 )              -- two lines, 5x7    (line
added by seen)
   delay_10us(4)                                   -- > 37 us

    -- init the API
    _hd44780_init()

end procedure

--

You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.


Reply via email to