Revision: 1392
Author: bvwelch
Date: Thu Oct 15 17:24:54 2009
Log: blink 16f819 LED using internal oscillator

http://code.google.com/p/jallib/source/detail?r=1392

Added:
  /trunk/sample/16f819_blink_int_osc.jal

=======================================
--- /dev/null
+++ /trunk/sample/16f819_blink_int_osc.jal      Thu Oct 15 17:24:54 2009
@@ -0,0 +1,31 @@
+-- Title: Blink 18F819 LED using internal oscillator
+-- Author: William Welch Copyright (c) 2009, all rights reserved.
+-- Sponsored by: Fiwihex www.fiwihex.com
+-- Compiler: 2.4
+--
+-- This file is part of jallib (http://jallib.googlecode.com)
+-- Released under the ZLIB license  
(http://www.opensource.org/licenses/zlib-license.html)
+--
+-- Description: blinks LED with one-half second delay
+--
+
+include 16f819
+pragma target fuses 0x3F30
+pragma target clock 8_000_000
+
+OSCCON = 0x70
+asm nop
+asm nop
+
+include delay
+
+enable_digital_io()
+
+alias led is pin_A0
+pin_A0_direction = output
+
+forever loop
+   led = led ^ 1
+   delay_100ms(5)
+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
-~----------~----~----~----~------~----~------~--~---

Reply via email to