JAL (compiler)
De Wikipedia, la enciclopedia libre
JAL (Just Another Language) es un Lenguaje de programación similar al Lenguaje de programación Pascal y un Compilador que genera código ejecutable para el microcontrolador PIC. Es un lenguaje de formato libre para programar microcontroladores PIC y el compilador corre sobre Linux, Mac OS y MS-Windows. JAL es el único lenguaje avanzado gratuito y tiene una base activa e importante de usuarios. Se configura y extiende por el uso de librerías e inclusive se puede combinar con Assembler.
Tabla de contenidos |
[editar] Historia
Fue originalmente creado por Wouter van Ooijen, pero actualizado como software libre bajo la GNU en el año 2003. En el año 2006, Stef Mientki inició el desarrollo de una nueva version: V2. Kyle York es el programador de esta nueva versión, y un grupo internacional de usuarios (en orden alfabético: Bert van Dam, Sunish Issac, Dave Lagzdin, Javier Martinez, Stef Mientki, Wouter van Ooijen, Michael Reynolds, André Steenveld, Joep Suijs, Vasile Surducan, and Michael Watterson) son responsables de su testeo (beta testing).
[editar] Código de muestra
-- JAL 2.3 include 16f877_bert -- define the variables var byte resist -- define the pins pin_a0_direction = input -- variable resistor pin_d7_direction = input -- switch pin_c2_direction = output -- pwm led -- enable pulse width modulation PWM_init_frequency (true, true) forever loop -- convert analog on a0 to digital resist = ADC_read_low_res(0) -- run measurement through flash memory program_eeprom_write(2000,resist) program_eeprom_read(2000,resist) -- run measurement through data memory data_eeprom_write(10,resist) data_eeprom_read(10,resist) -- if the switch is pressed return random value if pin_d7 == high then resist = random_byte end if -- send resistance to PC serial_sw_write(resist) delay_100ms(1) -- set actual PWM duty cycle PWM_Set_DutyCycle (resist, resist) end loop
[editar] Enlaces
Estos son los enlaces básicos que lo ayudarán a comenzar con JAL. Para un rango seleccionado de microcontroladores PIC hay paquetes de inicio que permiten iniciar y dejar funcionando en minutos. Para otros PICs u otras funcionalidades hay que descargar librerías adicionales.
[editar] Libros
- Alemán: PIC Microcontrollers, 50 projecten voor beginners en experts
- Alemán: Kunstmatige Intelligentie, breng uw microcontroller tot leven
- Inglés: PIC Microcontrollers, 50 projects for beginners and experts
- Turco: JAL ile PIC programlama
- Rumano: Microcontrolere Pentru Toti
[editar] Sitios de usuarios
Visite los siguientes sitios web para tener una idea de las posibilidades de JAL.
Watty http://www.wattystuff.net/tiki/tiki-index.php?page=PIC+Micro
Javi http://personal.telefonica.terra.es/web/japus/
Vasile http://www.geocities.com/vsurducan/electro/PIC/pic.htm
Joep http://home.westbrabant.net/~jsuijs/myrobots/MyRobots.html
Sébastien http://sirbot.org/
Olivier http://oca.memebot.com/picshell/
Wouter http://www.voti.nl/e_index.html
Bert http://members.home.nl/b.vandam/lonely/index.html
Kyle http://www.casadeyork.com/jalv2/
Mike http://mikerey35475.tripod.com/index.html
William http://jalethernet.com/
Steven http://www.semifluid.com/?cat=4
Andre http://www.100acre.org/elec/
Sunish http://sunish.net/home
The Yahoo! Group http://tech.groups.yahoo.com/group/jallist
Plantilla:Navigatie Programmeertalen JAL