This page is best viewed with Microsoft Internet Explorer and pint of lager (or two and a packet of crisps...)

  GRATIS JAL Starterpack (versie 1.53)
van Bert van Dam bevat voorgeconfigureerde programma's en bestanden om direct met JAL te kunnen starten.

Heeft u een van mijn JAL boeken gekocht? Gebruik de starterpack om naar de nieuwe JAL versie te upgraden!

De inhoud van het starterpack staat rechts.

JAL starterpack / JAL book upgrade (free download)

* 12F675_bert
* 16F628_bert
* 16F628A_bert
* 16F648A_bert
* 16F876A_bert
* 16F877_bert
* 16F877A_bert
* 16F88_bert
* 18F242_bert
* 18F4455_bert
* 18F4550_bert
* 18F4685_bert

* All supporting libraries, several releases, by several authors
_(Mientki, van Ooijen, Ellis, Oudshoorn, van Dam).
* JALedit
* JAL v2 release 2.4i

Instructions / instructies (pdf)

Additionally available: PicShell, an editor/simulator with advanced debugging functionality. PicShell is pre-configured to work with the starterpack and has simulator examples for the _bert libraries. Highly recommended!

  FREE JAL Starterpack (release 1.53)
by Bert van Dam contains preconfigured ready to run programs and files so you can start with JAL immediately.

Did you purchase one of my JAL books? Use the starterpack to upgrade to the new JAL release!

The content of the starterpack is listed on the right.

JAL is een eenvoudig te leren programmeertaal voor PIC microcontrollers. De taal lijkt een beetje op Pascal, en kan door middel van bibliotheken uitgebreid worden. JAL is volledig gratis en draait op Microsoft Windows.

Dit is een eenvoudig programma om een LED te laten knipperen op een 12f675 microcontroller. De LED is 200 milliseconden aan en 1 seconde uit.

-- JAL 2.3
include 12f675_bert

-- definiëer de aansluitingen
pin_a4_direction = output
-- LED

forever loop

....-- LED aan
....pin_a4 = high

....-- wacht 200 milliseconden
....delay_100ms(2)

....-- LED uit
....pin_a4 = low

....-- wacht 1 seconde
....delay_1s(1)

end loop

Hieronder staat een voorbeeld van een geavanceerd programma voor een 16f877 PIC microcontroller dat pulsbreedte modulatie gebruikt om de snelheid van een motor te regelen, waarden in het geheugen schrijft en ze weer terug leest, een analoog signaal leest, willekeurige getallen genereert en gebruik maakt van seriële communicatie.

-- JAL 2.3
include 16f877_bert

-- definiëer de variabelen
var byte resist

-- definiëer de aansluitingen
pin_a0_direction = input
-- potmeter
pin_d7_direction = input
-- schakelaar
pin_c2_direction = output
-- pwm led

-- zet puls-breedte modulatie aan

PWM_init_frequency (true, true)

forever loop

....-- lees het analoge signaal op pin a0
....resist = ADC_read_low_res(0)

....-- haal de meetwaarde door het flash geheugen
....program_eeprom_write(2000,resist)
....program_eeprom_read(2000,resist)

....-- haal de meetwaarde door het data geheugen
....data_eeprom_write(10,resist)
....data_eeprom_read(10,resist)

....-- geef een willekeurige waarde als de schakelaar ingedrukt wordt
....if pin_d7 == high then
.... ....resist = random_byte
....end if

....-- stuur de meting naar de PC
....serial_sw_write(resist)
....delay_100ms(1)
....
....-- en gebruik hem voor de PWM dutycycle
....PWM_Set_DutyCycle (resist, resist)

end loop

Geïnteresseerd in deze mooie een krachtige taal? Download het gratis starterpakket met JAL, en een serie uitbreidingsbibliotheken. Of koop een van mijn JAL boeken vol leuke projecten en duidelijke uitleg. Bij elk project in het boek staan schema's en foto's van de hardware, en de broncode kan je gratis downloaden.

JAL is an easy to learn programming language for PIC microcontrollers. The language looks a bit like Pascal, and can be extended with the use of libraries. JAL is completely free and runs in Microsoft Windows computers.

This is a simple program to make a LED flash on a small 12f675 PIC microcontroller. The LED is on for 200 milliseconds and off for 1 second.

-- JAL 2.3
include 12f675_bert

-- define the connections
pin_a4_direction = output
-- LED

forever loop

....-- LED on
....pin_a4 = high

....-- wait 200 milliseconds
....delay_100ms(2)

....-- LED off
....pin_a4 = low

....-- wait 1 second
....delay_1s(1)

end loop

The program below is an example of an advanced program for the 16f877 PIC microcontroller that uses pulse width modulation (PWM) to control the speed of a motor, writes values into memory and then reads them back, converts an analog signal to digital, generates random numbers and uses serial communication. Yet the program is short and easy to read.

-- JAL 2.3
include 16f877_bert

-- define the variables
var byte resist

-- define the connections
pin_a0_direction = input
-- variable resistor
pin_d7_direction = input
-- switch
pin_c2_direction = output
-- pwm led

-- switch pulse width modulation on

PWM_init_frequency (true, true)

forever loop

....-- read the analog signal on pin a0
....resist = ADC_read_low_res(0)

....-- pass it through flash memory
....program_eeprom_write(2000,resist)
....program_eeprom_read(2000,resist)

....-- pass it through data memory
....data_eeprom_write(10,resist)
....data_eeprom_read(10,resist)

....-- generate a random value if the switch is pressed
....if pin_d7 == high then
.... ....resist = random_byte
....end if

....-- send the measurement to the PC
....serial_sw_write(resist)
....delay_100ms(1)
....
....-- and use it for the PWM dutycycle
....PWM_Set_DutyCycle (resist, resist)

end loop

Are you interested in this great language? Download the free starterpack which contains JAL and a set of extension libraries. Or purchase on of my JAL books with lots of fun projects and clear explanations. Each project in the book has schematics and pictures of the hardware, and the source can be downloaded for free.

 PIC Microcontrollers 50 projecten voor beginners en experts

 

informatie / information / información

Bert van Dam
  PIC Microcontrollers
50 projecten voor beginners en experts

  PIC Microcontrollers
50 projects for beginners and experts

 

  Microcontroladores PIC
50 Proyectos para Principiantes y Expertos 

  PIC Mikrocontroller
50 Projekte für Anfänger und Fortgeschrittene

   

 Artificial Intelligence 23 projecten om uw microcontroller tot leven te brengen Bert van Dam

 

informatie / information

Bert van Dam
  Kunstmatige intelligentie
breng uw microcontroler tot leven!

  Artificial Intelligence
23 projects to bring your microcontroller to life! 


 
   
   
   

 

click here to see a complete list of all my books

COPYRIGHT: This website and the ideas, software, models, pictures contained herein are Copyright (c) 1995-2009 Bert van Dam (with the exception of the contents of the starterpack). Commercial use by any means, copying, redistribution, modification in any form and in any way, without prior written approval is prohibited. The owner of this website is not responsible for the contents of the links.

COPYRIGHT: Deze website en de ideeën, software, modellen en afbeeldingen erin, zijn copyright (c) 1995 - 2009 Bert van Dam (met als uitzondering de inhoud van de starterpack). Commercieel gebruik in welke vorm dan ook, copiëren, redistributie en veranderingen in enige vorm of op enige wijze, zonder voorafgaande schriftelijke toestemming zijn niet toegestaan. De eigenaar van deze website is niet verantwoordelijk voor de inhoud van de links.