Author: jsuijs
Date: Fri Nov 14 22:47:34 2008
New Revision: 546

Modified:
    trunk/unvalidated/sample/by_device/16f877/lcd_format_st7036.jal
    trunk/unvalidated/sample/by_device/16f877/lcd_st7036_and_rtc_ds1302.jal

Log:
fixed jsg errors

Modified: trunk/unvalidated/sample/by_device/16f877/lcd_format_st7036.jal
==============================================================================
--- trunk/unvalidated/sample/by_device/16f877/lcd_format_st7036.jal      
(original)
+++ trunk/unvalidated/sample/by_device/16f877/lcd_format_st7036.jal     Fri Nov 
 
14 22:47:34 2008
@@ -1,5 +1,5 @@
  -- ------------------------------------------------------
--- Title: Test LCD_ST7036 and RTC_DS1302
+-- Title: Test lcd_ST7036 and RTC_DS1302
  --
  -- Author: Richard Zengerink, Copyright (c) 2008..2008, all rights  
reserved.
  --
@@ -10,7 +10,7 @@
  -- This file is part of jallib (http://jallib.googlecode.com)
  -- Released under the BSD license  
(http://www.opensource.org/licenses/bsd-license.php)
  --
--- Description: Testing LCD_ST7036 and RTC_DS1302 libs on a 16f877
+-- Description: Testing lcd_ST7036 and RTC_DS1302 libs on a 16f877
  --
  -- Sources:
  --
@@ -125,36 +125,36 @@


  -------------------------------------------------------------------------
------------------ LCD related parameters and include file ---------------
+----------------- lcd related parameters and include file ---------------
  -------------------------------------------------------------------------
   var bit not_connected



- var volatile bit LCD_data  is pin_a0
- var volatile bit LCD_data_dir  is pin_a0_direction
- var volatile bit LCD_clk  is pin_a1
- var volatile bit LCD_rs is pin_a2   -- data/command select
- var volatile bit LCD_csb  is pin_a3
-
- var volatile bit LCD_enable  is not_connected
- var volatile bit LCD_rw is not_connected
+ var volatile bit lcd_data  is pin_a0
+ var volatile bit lcd_data_dir  is pin_a0_direction
+ var volatile bit lcd_clk  is pin_a1
+ var volatile bit lcd_rs is pin_a2   -- data/command select
+ var volatile bit lcd_csb  is pin_a3
+
+ var volatile bit lcd_enable  is not_connected
+ var volatile bit lcd_rw is not_connected



- var volatile bit LCD_d0 is not_connected
- var volatile bit LCD_d1 is not_connected
- var volatile bit LCD_d2 is not_connected
- var volatile bit LCD_d3 is not_connected
- var volatile bit LCD_d4 is not_connected
- var volatile bit LCD_d5 is not_connected
- var volatile bit LCD_d6 is not_connected
- var volatile bit LCD_d7 is not_connected
-
-
- const LCD_hardware = 1    ;4 is 4 line, 8 = 8 line and 1 = serial
- const LCD_number_of_display_lines      = 2
- const LCD_number_of_display_characters = 16
+ var volatile bit lcd_d0 is not_connected
+ var volatile bit lcd_d1 is not_connected
+ var volatile bit lcd_d2 is not_connected
+ var volatile bit lcd_d3 is not_connected
+ var volatile bit lcd_d4 is not_connected
+ var volatile bit lcd_d5 is not_connected
+ var volatile bit lcd_d6 is not_connected
+ var volatile bit lcd_d7 is not_connected
+
+
+ const lcd_hardware = 1    ;4 is 4 line, 8 = 8 line and 1 = serial
+ const lcd_number_of_display_lines      = 2
+ const lcd_number_of_display_characters = 16


   include lcd_st7036
@@ -210,7 +210,7 @@



-   var byte Data
+   var byte data
     var word wvalue = 0
     var byte value = 0
     var byte value1 = 0
@@ -238,7 +238,7 @@
  forever loop
     lcd_new_line_cursor_position (2, 1)
     for testlength  loop
-       Data = teststring[value]
+       data = teststring[value]
         lcd_write_data (data)
         value = value + 1
     end loop
@@ -299,11 +299,11 @@
        wvalue = 5000

        while wvalue != 0  loop
-            LCD_wvalue_dp_line_pos_left_sign ( wvalue, 2, 2, 7, true,  
false)
+            lcd_wvalue_dp_line_pos_left_sign ( wvalue, 2, 2, 7, true,  
false)
              wvalue = wvalue - 1
              delay_1ms(3)
         end loop
-            LCD_wvalue_dp_line_pos_left_sign ( wvalue, 2, 2, 7, true,  
false)
+            lcd_wvalue_dp_line_pos_left_sign ( wvalue, 2, 2, 7, true,  
false)
        delay_100ms (20)

        lcd_clear()

Modified:  
trunk/unvalidated/sample/by_device/16f877/lcd_st7036_and_rtc_ds1302.jal
==============================================================================
--- trunk/unvalidated/sample/by_device/16f877/lcd_st7036_and_rtc_ds1302.jal     
 
(original)
+++ trunk/unvalidated/sample/by_device/16f877/lcd_st7036_and_rtc_ds1302.jal     
 
Fri Nov 14 22:47:34 2008
@@ -98,10 +98,10 @@

  ;serial_hw_enable()    ; zet hardware voor uart aan

-INTCON_gie = 1               ;general interupt enabled
-INTCON_peie = 1              ;peripheral interupt enabled
-INTCON_t0ie = 0              ;timer 0 interupt disabled
-PIE1_tmr1ie = 0            ;timer 1 interupt disabled
+intcon_gie = 1               ;general interupt enabled
+intcon_peie = 1              ;peripheral interupt enabled
+intcon_t0ie = 0              ;timer 0 interupt disabled
+pie1_tmr1ie = 0            ;timer 1 interupt disabled
  ------------- OPTION register met timer0  -------------------------------
  option_reg = 0b0000_0111
  ;NOT_RBPU at OPTION_REG : 7 = 0   0 = weak pull-up on port B

--~--~---------~--~----~------------~-------~--~----~
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