Yes, I remember this starterguide. It is nice work that you have been doing. I have not heard about it lately, so I assumed you have stopped.
It's just that we now have a starterguide and also a tutorial book. Do we need two books? Is there anyway we can put them both together? I am sure we can make a great book if we all put our heads together. Can you post a more recent version please? Matt. On Feb 24, 11:45 am, Joep Suijs <[email protected]> wrote: > Startersguide is a guide for starters ;) > > It's full name is Jallib starters guide (An introduction to JAL V2 & > Jallib). I posted a preliminary version a few months ago and I am > still working on it - extending it, make it better and consistent. > > But now you mention this: we're not native English speakers and would > like to take this opportunity to ask if somebody wants to work with us > to improve the linguistic aspect? > > Joep > > 2010/2/24 mattschinkel <[email protected]>: > > > > > What is this "starterguide"? > > > I also see filenames like "16f877_startersguide_serial.jal", this > > suggests to me that it is a starter serial sample. > > > Matt. > > > On Feb 24, 8:10 am, [email protected] wrote: > >> Revision: 1700 > >> Author: jsuijs > >> Date: Wed Feb 24 08:07:00 2010 > >> Log: new samples for the > >> startersguide.http://code.google.com/p/jallib/source/detail?r=1700 > > >> Added: > >> /trunk/sample/16f648a_startersguide_lcd.jal > >> /trunk/sample/16f648a_startersguide_serial.jal > >> /trunk/sample/16f723_startersguide_serial.jal > >> /trunk/sample/16f73_startersguide_serial.jal > >> /trunk/sample/16f877_startersguide_lcd.jal > >> /trunk/sample/16f877_startersguide_serial.jal > >> /trunk/sample/16f877a_startersguide_lcd.jal > >> /trunk/sample/16f877a_startersguide_serial.jal > >> /trunk/sample/16f88_startersguide_lcd.jal > >> /trunk/sample/16f88_startersguide_serial.jal > >> /trunk/sample/18f14k50_startersguide_serial.jal > >> /trunk/sample/18f2450_startersguide_lcd.jal > >> /trunk/sample/18f2450_startersguide_serial.jal > >> /trunk/sample/18f4550_startersguide_lcd.jal > >> /trunk/sample/18f4550_startersguide_serial.jal > >> /trunk/test/external/lcd/test_startersguide_lcd.jal > >> /trunk/test/jal/test_startersguide_serial.jal > >> Deleted: > >> /trunk/test/jal/test_startersguide_1_serial.jal > > >> ======================================= > >> --- /dev/null > >> +++ /trunk/sample/16f648a_startersguide_lcd.jal Wed Feb 24 08:07:00 2010 > >> @@ -0,0 +1,104 @@ > >> +-- > >> -------------------------------------------------------------------------- > >> +-- Title: Test program for lcd_hd44780_4.jal (basic / interface test) > >> +-- Author: Eur Van Andel, Copyright (c) 2008-2010, all rights reserved. > >> +-- Adapted-by: Rob Hamerling, Joep Suijs > >> +-- Compiler: >=2.4g > >> +-- > >> +-- This file is part of jallib (http://jallib.googlecode.com) > >> +-- Released under the BSD license > >> (http://www.opensource.org/licenses/bsd-license.php) > >> +-- > >> +-- Description: > >> +-- This sample shows how to setup an LCD and writes > >> +-- "Hello World" to the first line, using a string and the print library. > >> +-- A counter is printed to show the running forever loop. > >> +-- -- > >> +-- This file defines a test for JALLIB testing, using a test-board > >> +-- defined by a BOARD file . > >> +-- > >> +-- Sources: > >> +-- > >> +-- Notes: > >> +-- This testfile is based on the program for lcd_hd44780_4.jal > >> +-- The main difference is that it is adapted for a 2x16 display. > >> +-- setup: an hd44780 compatible display, used in 4-bit mode. > >> +-- > >> +-- > >> -------------------------------------------------------------------------- > >> +-- > >> +-- This file has been generated from: > >> +-- * board: board_16f648a_js.jal > >> +-- * test : test_startersguide_lcd.jal > >> +-- > >> + > >> +;@jallib section chipdef > >> +-- chip setup > >> +include 16f648a > >> + > >> +-- > >> +-- This program assumes a 20 MHz resonator or crystal > >> +-- is connected to pins OSC1 and OSC2. > >> +pragma target OSC HS -- HS crystal or resonator > >> +pragma target clock 20_000_000 -- oscillator frequency > >> +pragma target WDT disabled > >> +pragma target LVP disabled > >> + > >> +;@jallib section lcd_hd44780_4 > >> +-- LCD IO definition > >> +alias lcd_rs is pin_b4 -- LCD command/data select. > >> +alias lcd_rs_direction is pin_b4_direction > >> +alias lcd_en is pin_b0 -- LCD data trigger > >> +alias lcd_en_direction is pin_b0_direction > >> + > >> +alias lcd_dataport is porta_low -- LCD data port > >> +alias lcd_dataport_direction is porta_low_direction > >> +const byte LCD_ROWS = 2 -- 2 lines > >> +const byte LCD_CHARS = 16 -- 16 chars per line > >> +;@jallib section led > >> +-- LED IO definition > >> +alias led is pin_b3 > >> +alias led_direction is pin_b3_direction > >> +alias led2 is pin_b1 > >> +alias led2_direction is pin_b1_direction > >> + > >> +enable_digital_io() > >> + > >> +led_direction = output > >> + > >> + > >> +lcd_rs_direction = output > >> +lcd_en_direction = output > >> +lcd_dataport_direction = output > >> + > >> +include lcd_hd44780_4 -- LCD library with 4 data lines > >> +include print -- formatted output library > >> + > >> +for 4 loop -- blink LED 4 times to indicate > >> startup > >> + LED = on > >> + delay_100ms(2) > >> + LED = off > >> + delay_100ms(2) > >> +end loop > >> + > >> +const byte str1[] = "Hello world!" -- define strings > >> + > >> +lcd_init() -- initialize LCD > >> + > >> +lcd_cursor_position(0,0) -- to 1st line, 1st char > >> +print_string(lcd, str1) -- show hello world! > >> + > >> +var byte counter = 0 > >> + > >> +forever loop -- loop forever > >> + > >> + counter = counter + 1 -- update counter > >> + lcd_cursor_position(1,0) -- second line > >> + print_byte_hex(lcd, counter) -- output in hex format > >> + delay_100ms(3) -- wait a little > >> + > >> + if counter == 255 then -- counter wrap > >> + lcd_cursor_position(1,1) -- 2nd line, 2nd char > >> + lcd = " " -- clear 2nd char > >> + lcd = " " -- clear 3rd char > >> + end if > >> + > >> +end loop > >> + > >> ======================================= > >> --- /dev/null > >> +++ /trunk/sample/16f648a_startersguide_serial.jal Wed Feb 24 > >> 08:07:00 2010 > >> @@ -0,0 +1,185 @@ > >> +-- ------------------------------------------------------ > >> +-- Title: Test program 1 for startersguide (serial interface) > >> +-- > >> +-- Author: Joep Suijs, Copyright (c) 2008..2010, all rights reserved. > >> +-- > >> +-- Adapted-by: > >> +-- > >> +-- Compiler: >=2.4g > >> +-- > >> +-- This file is part of jallib (http://jallib.googlecode.com) > >> +-- Released under the BSD license > >> (http://www.opensource.org/licenses/bsd-license.php) > >> +-- > >> +-- Description: Test program > >> +-- > >> +-- Sources: > >> +-- > >> +-- Notes: as output, this sample produces characters on a serial link. > >> +-- > >> +-- ------------------------------------------------------ > >> +-- > >> +-- This file has been generated from: > >> +-- * board: board_16f648a_js.jal > >> +-- * test : test_startersguide_serial.jal > >> +-- > >> + > >> +;@jallib section chipdef > >> +-- chip setup > >> +include 16f648a > >> + > >> +-- > >> +-- This program assumes a 20 MHz resonator or crystal > >> +-- is connected to pins OSC1 and OSC2. > >> +pragma target OSC HS -- HS crystal or resonator > >> +pragma target clock 20_000_000 -- oscillator frequency > >> +pragma target WDT disabled > >> +pragma target LVP disabled > >> + > >> +;@jallib section led > >> +-- LED IO definition > >> +alias led is pin_b3 > >> +alias led_direction is pin_b3_direction > >> +alias led2 is pin_b1 > >> +alias led2_direction is pin_b1_direction > >> + > >> +include delay > >> + > >> +-- set all IO as digital > >> +enable_digital_io() > >> + > >> + > >> +-- setup serial (see echo.jal for more details);@jallib section serial > >> +const serial_hw_baudrate = 115_200 > >> +include serial_hardware > >> +serial_hw_init() > >> + > >> +alias sg_output is serial_hw_data > >> + > >> +include print > >> + > >> +led_direction = output > >> + > >> +forever loop > >> + delay_100ms( 5 ) > >> + LED = high > >> + delay_100ms( 5 ) > >> + LED = low > >> + > >> + -- serial_hw_data is a pseudo-var of the desired output-device. > >> + serial_hw_data = "A" -- output an A to the serial port. > >> + > >> + -- > >> + -- The print_* and format_* routines assing the output chars to this > >> pseudo-var. > >> + -- > >> + > >> + -- output the string, the pseudo var is the first param. > >> + const byte str1[] = " - Test print.jal- bytes\r\n" -- define a string > >> + print_string(serial_hw_data, str1) -- output string > >> +-- print_string(serial_hw_data, " - Test print.jal- bytes\r\n") -- > >> output string (not yet supported by JAL) > >> + > >> + -- ----------- > >> + -- byte stuff > >> + -- ----------- > >> + var byte a = 210 > >> + var sbyte b = -109 > >> + > >> + print_byte_dec(serial_hw_data, a) -- output in (unsigned) decimal > >> format > >> + print_crlf(serial_hw_data) -- output Carriage Return and > >> Linefeed (0x0D 0x0A), new line > >> + print_byte_hex(serial_hw_data, a) -- output in hex format > >> + print_crlf(serial_hw_data) > >> + print_byte_binary(serial_hw_data, a) -- output in binary format > >> + print_crlf(serial_hw_data) > >> + > >> + print_sbyte_dec(serial_hw_data, b) -- output in signed decimal format > >> + print_crlf(serial_hw_data) > >> + > >> + > >> + -- ----------- > >> + -- word stuff > >> + -- ----------- > >> + const byte str2[] = "Test print.jal - words\r\n" -- define a string > >> + print_string(serial_hw_data, str2) > >> + > >> + var word c = 45678 > >> + var sword d = -32109 > >> + > >> + print_word_dec(serial_hw_data, c) -- output in (unsigned) decimal > >> format > >> + print_crlf(serial_hw_data) -- output Carriage Return and > >> Linefeed (0x0D 0x0A), new line > >> + print_word_hex(serial_hw_data, c) -- output in hex format > > ... > > read more »- Hide quoted text - > > - Show quoted text - -- 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.
