Revision: 1703
Author: jsuijs
Date: Thu Feb 25 05:33:03 2010
Log: all samples (that I missed) updated.
http://code.google.com/p/jallib/source/detail?r=1703
Modified:
/trunk/sample/16f648a_pwm_led.jal
/trunk/sample/16f648a_startersguide_lcd.jal
/trunk/sample/16f723_pwm_led.jal
/trunk/sample/16f877_startersguide_lcd.jal
/trunk/sample/16f877a_startersguide_lcd.jal
/trunk/sample/16f88_startersguide_lcd.jal
/trunk/sample/18f14k50_pwm_led.jal
/trunk/sample/18f2450_pwm_led.jal
/trunk/sample/18f2450_startersguide_lcd.jal
/trunk/sample/18f4550_pwm_led.jal
/trunk/sample/18f4550_startersguide_lcd.jal
=======================================
--- /trunk/sample/16f648a_pwm_led.jal Sun Aug 16 16:42:16 2009
+++ /trunk/sample/16f648a_pwm_led.jal Thu Feb 25 05:33:03 2010
@@ -1,6 +1,6 @@
-- Title: Test program for 1 PWM channel, using a LED
--- Author: Sebastien Lelong, Copyright (c) 2008-2009, all rights reserved.
--- Adapted-by:
+-- Author: Sebastien Lelong, Copyright (c) 2008-2010, all rights reserved.
+-- Adapted-by: Joep Suijs
-- Compiler: >=2.4i
--
-- This file is part of jallib (http://jallib.googlecode.com)
@@ -9,14 +9,13 @@
-- Description: this sample show how to use PWM in low resolution mode.
-- It progressively light up and down a LED. Sweet...
--
---
---
--
-- This file has been generated from:
-- * board: board_16f648a_js.jal
-- * test : test_pwm_led.jal
--
+
;@jallib section chipdef
-- chip setup
include 16f648a
@@ -29,10 +28,7 @@
pragma target WDT disabled
pragma target LVP disabled
-;@jallib section ccp
--- backlight control (can be variable and digital on this pin)
-alias lcd_bl is pin_b3
-alias lcd_bl_direction is pin_b3_direction
+
enable_digital_io()
-- Configure PWM
=======================================
--- /trunk/sample/16f648a_startersguide_lcd.jal Wed Feb 24 14:28:54 2010
+++ /trunk/sample/16f648a_startersguide_lcd.jal Thu Feb 25 05:33:03 2010
@@ -98,7 +98,8 @@
if counter == 255 then -- counter wrap
lcd_cursor_position(1,1) -- 2nd line, 2nd char
lcd = " " -- clear 2nd char
- lcd_write_char(" ") -- 3rd char, equivalent to the
previous line
+ lcd_write_char(" ") -- 3rd char, equivalent to
+ -- the previous line
end if
end loop
=======================================
--- /trunk/sample/16f723_pwm_led.jal Mon Nov 9 16:32:06 2009
+++ /trunk/sample/16f723_pwm_led.jal Thu Feb 25 05:33:03 2010
@@ -1,6 +1,6 @@
-- Title: Test program for 1 PWM channel, using a LED
--- Author: Sebastien Lelong, Copyright (c) 2008-2009, all rights reserved.
--- Adapted-by:
+-- Author: Sebastien Lelong, Copyright (c) 2008-2010, all rights reserved.
+-- Adapted-by: Joep Suijs
-- Compiler: >=2.4i
--
-- This file is part of jallib (http://jallib.googlecode.com)
@@ -9,14 +9,13 @@
-- Description: this sample show how to use PWM in low resolution mode.
-- It progressively light up and down a LED. Sweet...
--
---
---
--
-- This file has been generated from:
-- * board: board_16f723_af.jal
-- * test : test_pwm_led.jal
--
+
;@jallib section chipdef
-- device include
@@ -38,8 +37,7 @@
pragma target PLLEN F16MHZ
pragma target DEBUG DISABLED
pragma target VCAPEN pin_A0
-;@jallib section ccp
--- no specific settins yet, section required though to generate samples
+
enable_digital_io()
-- Configure PWM
=======================================
--- /trunk/sample/16f877_startersguide_lcd.jal Wed Feb 24 14:28:54 2010
+++ /trunk/sample/16f877_startersguide_lcd.jal Thu Feb 25 05:33:03 2010
@@ -107,7 +107,8 @@
if counter == 255 then -- counter wrap
lcd_cursor_position(1,1) -- 2nd line, 2nd char
lcd = " " -- clear 2nd char
- lcd_write_char(" ") -- 3rd char, equivalent to the
previous line
+ lcd_write_char(" ") -- 3rd char, equivalent to
+ -- the previous line
end if
end loop
=======================================
--- /trunk/sample/16f877a_startersguide_lcd.jal Wed Feb 24 14:28:54 2010
+++ /trunk/sample/16f877a_startersguide_lcd.jal Thu Feb 25 05:33:03 2010
@@ -94,7 +94,8 @@
if counter == 255 then -- counter wrap
lcd_cursor_position(1,1) -- 2nd line, 2nd char
lcd = " " -- clear 2nd char
- lcd_write_char(" ") -- 3rd char, equivalent to the
previous line
+ lcd_write_char(" ") -- 3rd char, equivalent to
+ -- the previous line
end if
end loop
=======================================
--- /trunk/sample/16f88_startersguide_lcd.jal Wed Feb 24 14:28:54 2010
+++ /trunk/sample/16f88_startersguide_lcd.jal Thu Feb 25 05:33:03 2010
@@ -108,7 +108,8 @@
if counter == 255 then -- counter wrap
lcd_cursor_position(1,1) -- 2nd line, 2nd char
lcd = " " -- clear 2nd char
- lcd_write_char(" ") -- 3rd char, equivalent to the
previous line
+ lcd_write_char(" ") -- 3rd char, equivalent to
+ -- the previous line
end if
end loop
=======================================
--- /trunk/sample/18f14k50_pwm_led.jal Fri Jan 29 14:24:50 2010
+++ /trunk/sample/18f14k50_pwm_led.jal Thu Feb 25 05:33:03 2010
@@ -1,6 +1,6 @@
-- Title: Test program for 1 PWM channel, using a LED
--- Author: Sebastien Lelong, Copyright (c) 2008-2009, all rights reserved.
--- Adapted-by:
+-- Author: Sebastien Lelong, Copyright (c) 2008-2010, all rights reserved.
+-- Adapted-by: Joep Suijs
-- Compiler: >=2.4i
--
-- This file is part of jallib (http://jallib.googlecode.com)
@@ -9,14 +9,13 @@
-- Description: this sample show how to use PWM in low resolution mode.
-- It progressively light up and down a LED. Sweet...
--
---
---
--
-- This file has been generated from:
-- * board: board_18f14k50_af.jal
-- * test : test_pwm_led.jal
--
+
;@jallib section chipdef
-- chip setup
include 18f14k50
@@ -63,8 +62,6 @@
pragma target EBTRB DISABLED -- boot block not protected
pragma target HFOFST ENABLED --
THE_SYSTEM_CLOCK_IS_HELD_OFF_UNTIL_THE_HFINTOSC_IS_STABLE
-;@jallib section ccp
--- no specific settins yet, section required though to generate samples
enable_digital_io()
=======================================
--- /trunk/sample/18f2450_pwm_led.jal Fri Jan 29 14:24:50 2010
+++ /trunk/sample/18f2450_pwm_led.jal Thu Feb 25 05:33:03 2010
@@ -1,6 +1,6 @@
-- Title: Test program for 1 PWM channel, using a LED
--- Author: Sebastien Lelong, Copyright (c) 2008-2009, all rights reserved.
--- Adapted-by:
+-- Author: Sebastien Lelong, Copyright (c) 2008-2010, all rights reserved.
+-- Adapted-by: Joep Suijs
-- Compiler: >=2.4i
--
-- This file is part of jallib (http://jallib.googlecode.com)
@@ -9,14 +9,13 @@
-- Description: this sample show how to use PWM in low resolution mode.
-- It progressively light up and down a LED. Sweet...
--
---
---
--
-- This file has been generated from:
-- * board: board_18f2450_af.jal
-- * test : test_pwm_led.jal
--
+
;@jallib section chipdef
-- chip setup
include 18f2450
@@ -58,8 +57,6 @@
pragma target EBTR1 DISABLED -- table read block 1 not protected
pragma target EBTRB DISABLED -- boot block not protected
-;@jallib section ccp
--- no specific settins yet, section required though to generate samples
enable_digital_io()
=======================================
--- /trunk/sample/18f2450_startersguide_lcd.jal Wed Feb 24 14:28:54 2010
+++ /trunk/sample/18f2450_startersguide_lcd.jal Thu Feb 25 05:33:03 2010
@@ -127,7 +127,8 @@
if counter == 255 then -- counter wrap
lcd_cursor_position(1,1) -- 2nd line, 2nd char
lcd = " " -- clear 2nd char
- lcd_write_char(" ") -- 3rd char, equivalent to the
previous line
+ lcd_write_char(" ") -- 3rd char, equivalent to
+ -- the previous line
end if
end loop
=======================================
--- /trunk/sample/18f4550_pwm_led.jal Fri Jan 29 14:24:50 2010
+++ /trunk/sample/18f4550_pwm_led.jal Thu Feb 25 05:33:03 2010
@@ -1,6 +1,6 @@
-- Title: Test program for 1 PWM channel, using a LED
--- Author: Sebastien Lelong, Copyright (c) 2008-2009, all rights reserved.
--- Adapted-by:
+-- Author: Sebastien Lelong, Copyright (c) 2008-2010, all rights reserved.
+-- Adapted-by: Joep Suijs
-- Compiler: >=2.4i
--
-- This file is part of jallib (http://jallib.googlecode.com)
@@ -9,14 +9,13 @@
-- Description: this sample show how to use PWM in low resolution mode.
-- It progressively light up and down a LED. Sweet...
--
---
---
--
-- This file has been generated from:
-- * board: board_18f4550_af.jal
-- * test : test_pwm_led.jal
--
+
;@jallib section chipdef
-- chip setup
include 18f4550
@@ -67,8 +66,6 @@
pragma target EBTR3 DISABLED -- table read block 3 not protected
pragma target EBTRB DISABLED -- boot block not protected
-;@jallib section ccp
--- no specific settins yet, section required though to generate samples
enable_digital_io()
=======================================
--- /trunk/sample/18f4550_startersguide_lcd.jal Wed Feb 24 14:28:54 2010
+++ /trunk/sample/18f4550_startersguide_lcd.jal Thu Feb 25 05:33:03 2010
@@ -182,7 +182,8 @@
if counter == 255 then -- counter wrap
lcd_cursor_position(1,1) -- 2nd line, 2nd char
lcd = " " -- clear 2nd char
- lcd_write_char(" ") -- 3rd char, equivalent to the
previous line
+ lcd_write_char(" ") -- 3rd char, equivalent to
+ -- the previous line
end if
end loop
--
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.