Internal mclr would be better with int osc.

Sunish

On Sat, Nov 7, 2009 at 7:41 PM, <[email protected]> wrote:

>
> Revision: 1466
> Author: robhamerling
> Date: Sat Nov  7 06:10:51 2009
> Log: sample of blink a led with a 12f629 with internal oscillator
>
>
> http://code.google.com/p/jallib/source/detail?r=1466
>
> Added:
>  /trunk/sample/12f629_blink_intosc.jal
>
> =======================================
> --- /dev/null
> +++ /trunk/sample/12f629_blink_intosc.jal       Sat Nov  7 06:10:51 2009
> @@ -0,0 +1,44 @@
> +-- ------------------------------------------------------
> +-- Title: Blink-an-LED of the Microchip pic12f629
> +--
> +-- Author: Rob Hamerling, Copyright (c) 2008..2009, all rights reserved.
> +--
> +-- Adapted-by:
> +--
> +-- Compiler: 2.4l
> +--
> +-- 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 PIC12f629.
> +--
> +-- Sources:
> +--
> +-- Notes:
> +--  - File creation date/time: 6 Nov 2009 20:37:43.
> +--
> +-- ------------------------------------------------------
> +--
> +include 12f629                    -- target PICmicro
> +--
> +-- This program assumes a  4 MHz resonator or crystal
> +pragma target clock  4_000_000     -- oscillator frequency
> +-- configuration memory settings (fuses)
> +pragma target OSC  INTOSC_NOCLKOUT -- Intternal oscillator
> +pragma target WDT  disabled        -- no watchdog
> +pragma target MCLR external        -- reset externally
> +--
> +enable_digital_io()                -- disable analog I/O (if any)
> +--
> +-- You may want to change the selected pin:
> +alias   led      is pin_A0
> +pin_A0_direction =  output
> +--
> +forever loop
> +   led = on
> +   _usec_delay(250000)
> +   led = off
> +   _usec_delay(250000)
> +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