Author: robhamerling
Date: Sun Nov 9 12:45:46 2008
New Revision: 531
Added:
trunk/unvalidated/sample/by_device/16f648a/data_eeprom_16f648a.jal
trunk/unvalidated/sample/by_device/16f88/data_eeprom_16f88.jal
trunk/unvalidated/sample/by_device/18f242/data_eeprom_18f242.jal
trunk/unvalidated/sample/by_device/18f2620/data_eeprom_18f2620.jal
Modified:
trunk/unvalidated/sample/by_device/16f648a/blink_16f648a.jal
Log:
Several samples for pic_data_eeprom library
Modified: trunk/unvalidated/sample/by_device/16f648a/blink_16f648a.jal
==============================================================================
--- trunk/unvalidated/sample/by_device/16f648a/blink_16f648a.jal
(original)
+++ trunk/unvalidated/sample/by_device/16f648a/blink_16f648a.jal Sun Nov
9
12:45:46 2008
@@ -10,7 +10,8 @@
-- This file is part of jallib (http://jallib.googlecode.com)
-- Released under the BSD license
(http://www.opensource.org/licenses/bsd-license.php)
--
--- Description: Sample blink-an-LED program for Microchip PIC16f648a
+-- Description:
+-- Sample blink-an-LED program for Microchip PIC16f648a
--
-- Sources:
--
Added: trunk/unvalidated/sample/by_device/16f648a/data_eeprom_16f648a.jal
==============================================================================
--- (empty file)
+++ trunk/unvalidated/sample/by_device/16f648a/data_eeprom_16f648a.jal Sun
Nov 9 12:45:46 2008
@@ -0,0 +1,51 @@
+-- ------------------------------------------------------
+-- Title: Sample data EEPROM write and read for the Microchip PIC16F648a
+--
+-- Author: Rob Hamerling, Copyright (c) 2008..2008, all rights reserved.
+--
+-- Adapted-by:
+--
+-- Compiler: =2.4
+--
+-- This file is part of jallib (http://jallib.googlecode.com)
+-- Released under the BSD license
(http://www.opensource.org/licenses/bsd-license.php)
+--
+-- Description:
+-- Sample data EEPROM write and read for the Microchip PIC16F648a
+--
+-- Sources:
+--
+-- Notes: Includes blink-an-LED
+--
+-- ------------------------------------------------------
+
+include 16f648a
+
+pragma target OSC hs
+pragma target clock 20_000_000
+pragma target WDT disabled
+pragma target MCLR external
+
+enable_digital_io() -- disable analog modules
+
+include pic_data_eeprom
+
+var bit led is pin_A0
+pin_A0_direction = output
+
+var byte i = 0 -- counter
+
+forever loop
+
+ led = on
+ _usec_delay(250000) -- wait a little
+ led = off
+ _usec_delay(250000)
+
+ data_eeprom_write(i,i) -- write counter
+ i = data_eeprom(i) -- read back
+ i = i + 1
+
+end loop
+
+
Added: trunk/unvalidated/sample/by_device/16f88/data_eeprom_16f88.jal
==============================================================================
--- (empty file)
+++ trunk/unvalidated/sample/by_device/16f88/data_eeprom_16f88.jal Sun Nov
9 12:45:46 2008
@@ -0,0 +1,51 @@
+-- ------------------------------------------------------
+-- Title: Sample data EEPROM write and read for the Microchip PIC16F88
+--
+-- Author: Rob Hamerling, Copyright (c) 2008..2008, all rights reserved.
+--
+-- Adapted-by:
+--
+-- Compiler: =2.4
+--
+-- This file is part of jallib (http://jallib.googlecode.com)
+-- Released under the BSD license
(http://www.opensource.org/licenses/bsd-license.php)
+--
+-- Description:
+-- Sample data EEPROM write and read for the Microchip PIC16F88
+--
+-- Sources:
+--
+-- Notes: Includes blink-an-LED
+--
+-- ------------------------------------------------------
+
+include 16f88
+
+pragma target OSC hs
+pragma target clock 20_000_000
+pragma target WDT disabled
+pragma target MCLR external
+
+enable_digital_io() -- disable analog modules
+
+include pic_data_eeprom
+
+var bit led is pin_A0
+pin_A0_direction = output
+
+var byte i = 0 -- counter
+
+forever loop
+
+ led = on
+ _usec_delay(250000) -- wait a little
+ led = off
+ _usec_delay(250000)
+
+ data_eeprom_write(i,i) -- write counter
+ i = data_eeprom(i) -- read back
+ i = i + 1
+
+end loop
+
+
Added: trunk/unvalidated/sample/by_device/18f242/data_eeprom_18f242.jal
==============================================================================
--- (empty file)
+++ trunk/unvalidated/sample/by_device/18f242/data_eeprom_18f242.jal Sun
Nov 9 12:45:46 2008
@@ -0,0 +1,51 @@
+-- ------------------------------------------------------
+-- Title: Sample data EEPROM write and read for the Microchip PIC18f242
+--
+-- Author: Rob Hamerling, Copyright (c) 2008..2008, all rights reserved.
+--
+-- Adapted-by:
+--
+-- Compiler: =2.4
+--
+-- This file is part of jallib (http://jallib.googlecode.com)
+-- Released under the BSD license
(http://www.opensource.org/licenses/bsd-license.php)
+--
+-- Description:
+-- Sample data EEPROM write and read for the Microchip PIC18f242
+--
+-- Sources:
+--
+-- Notes: Includes blink-an-LED
+--
+-- ------------------------------------------------------
+
+include 18f242
+
+pragma target OSC HS -- HS crystal or resonator
+pragma target clock 20_000_000 -- oscillator frequency
+pragma target WDT disabled
+pragma target LVP disabled
+
+enable_digital_io() -- disable analog modules
+
+include pic_data_eeprom
+
+var bit led is pin_A0
+pin_A0_direction = output
+
+var byte i = 0 -- counter
+
+forever loop
+
+ led = on
+ _usec_delay(250000) -- wait a little
+ led = off
+ _usec_delay(250000)
+
+ data_eeprom_write(i,i) -- write counter
+ i = data_eeprom(i) -- read back
+ i = i + 1
+
+end loop
+
+
Added: trunk/unvalidated/sample/by_device/18f2620/data_eeprom_18f2620.jal
==============================================================================
--- (empty file)
+++ trunk/unvalidated/sample/by_device/18f2620/data_eeprom_18f2620.jal Sun
Nov 9 12:45:46 2008
@@ -0,0 +1,51 @@
+-- ------------------------------------------------------
+-- Title: Sample data EEPROM write and read for the Microchip PIC18f2620
+--
+-- Author: Rob Hamerling, Copyright (c) 2008..2008, all rights reserved.
+--
+-- Adapted-by:
+--
+-- Compiler: =2.4
+--
+-- This file is part of jallib (http://jallib.googlecode.com)
+-- Released under the BSD license
(http://www.opensource.org/licenses/bsd-license.php)
+--
+-- Description:
+-- Sample data EEPROM write and read for the Microchip PIC18f2620
+--
+-- Sources:
+--
+-- Notes: Includes blink-an-LED
+--
+-- ------------------------------------------------------
+
+include 18f2620
+
+pragma target OSC HS -- HS crystal or resonator
+pragma target clock 20_000_000 -- oscillator frequency
+pragma target WDT disabled
+pragma target LVP disabled
+
+enable_digital_io() -- disable analog modules
+
+include pic_data_eeprom
+
+var bit led is pin_A0
+pin_A0_direction = output
+
+var byte i = 0 -- counter
+
+forever loop
+
+ led = on
+ _usec_delay(250000) -- wait a little
+ led = off
+ _usec_delay(250000)
+
+ data_eeprom_write(i,i) -- write counter
+ i = data_eeprom(i) -- read back
+ i = i + 1
+
+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
-~----------~----~----~----~------~----~------~--~---