Hi,

Try jallib_full_win_setup-1.1.0.exe from 
http://www.justanotherlanguage.org/downloads

You could also check out the tutorials at that site.

Matt.

On Sunday, August 30, 2015 at 7:57:16 AM UTC-4, Peter Straathof wrote:
>
> Hi everyone, I'm new top JAL and JALLIB and I'm running into a few 
> problems that I hope someone can explain to me.
>
> First of all, I'm trying to do the blink a led on my 16F627 (I know, an 
> oldie but good enough for my next project)
> I downloaded the .hex file from Wouter (voti.nl), programmed it using 
> WinWisp and indeed the led on port A0 blinks every second. (using a Wisp 
> 648 programmer) Thil leads me to believe the hardware side is working.
>
> Next I installed the latest stable Jalpack with editor, libraries and 
> compiler and tried to compile the 16F627 blink a led example. I did indeed 
> got a .hex file but different from the one from Wouter. I figured the new 
> compiler must have some more features that explained these differences. 
> However, when I program the newly generated .hex file I get no blinking led.
>
> Here's the program:
>
> -- ------------------------------------------------------
> -- Title: Blink-a-led of the Microchip pic16f627
> --
> -- Author: Rob Hamerling, Copyright (c) 2008..2011, all rights reserved.
> --
> -- Adapted-by:
> --
> -- Revision: $Revision: 2902 $
> --
> -- Compiler: 2.4o
> --
> -- 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-a-led program for Microchip PIC16f627.
> --
> -- Sources:
> --
> -- Notes:
> --  - File creation date/time: 7 Dec 2011 14:12:20.
> --
> -- ------------------------------------------------------
> --
> include 16f627                    -- target PICmicro
> --
> -- This program assumes that a 20 MHz resonator or crystal
> -- is connected to pins OSC1 and OSC2.
> -- (unspecified configuration bits may cause a different frequency!)
> pragma target clock 20_000_000     -- oscillator frequency
> -- configuration memory settings (fuses)
> pragma target OSC      HS               -- HS crystal or resonator
> pragma target WDT      disabled     -- no watchdog
> pragma target LVP      disabled     -- no Low Voltage Programming
> pragma target MCLR     external     -- reset externally
> -- These configuration bit settings are only a selection, sufficient for
> -- this program, but other programs may need more or different settings.
> --
> enable_digital_io()                -- make all pins digital I/O
> --
> -- Specify the pin to which the LED is connected.
> -- A low current (2 mA) led with 2.2K series resistor is recommended
> -- since not all pins may be able to drive an ordinary 20mA led.
> alias   led      is pin_A0
> pin_A0_direction =  output
> --
> forever loop
>    led = on
>    _usec_delay(250_000)
>    led = off
>    _usec_delay(250_000)
> end loop
> --
>
>
> Which compiles to this .hex:
> :020000040000FA
> :1000000007309F00831605108312231423088500F0
> :1000100083120313A730A0000930A100A530A2006D
> :100020000A128A11A20B10280A128A11A10B0E289B
> :100030000A128A11A00B0C280000000023102308CC
> :10004000850083120313A730A0000930A100A5305A
> :10005000A2000A128A11A20B29280A128A11A10BE6
> :1000600027280A128A11A00B252800000000042866
> :02400E006A3F07
> :00000001FF
>
>
> The working .hex from Wouter (source in JAL and not JALV2)is:
> :020000040000FA
> :020000000428D2
> :08000800FF30A100FF30A2004F
> :1000100007309F00211033200530162023142F2095
> :100020000530162023102F200C281528A4002408A2
> :10003000A5006430A6000A301D28A700FF30A800E4
> :100040002608AA002508A9007730280703182528C4
> :10005000A90B2428AA0B2228A70B20280800302847
> :0E0060002308850008003428210865000800E8
> :02400E00623F0F
> :00000001FF
>
>
> I am using a 20Mhz Xtal. Tried both internal and external MCLR but this 
> didn't solved the problem.
> Unless the 16F627 library is not correct I'm sure I'm doing something 
> stupid and would appreciate it if someone can point me in the right 
> direction.
>
> Thanks in advance!
>

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/jallib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to