Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Free microcontroller Tutorial Book

Status
Not open for further replies.

mattschinkel

New Member
Hello, We at Jallib Group have released a FREE PIC Tutorial Book. The current version is 0.3

Our tutorial book covers basic to advanced features of PIC microcontrollers, using jalv2 and jallib.

Jalv2 is an open source programming language for PIC microcontrollers. Jallib is a group whom creates device libraries for PIC microcontrollers & external devices.

This book is available as a PDF file, you can download it from jallib
project page: https://www.electro-tech-online.com/custompdfs/2010/03/Tutorial_Book_03.pdf

You can also browse it online, via our website Just Another JAL Website | Just Another Language for your pic microcontroller.

New in this version:

ADC Tutorial
23k256 SRAM Tutorial
SPI Tutorial
RS232 Tutorial

Here's the full content for this version:

* Back to basics...
o Installation
o Getting Started
o Blink A Led (Your First Project)
o Serial Port and RS-232 for communication
* PIC internals
o Pulse Width Modulation (PWM)
+ Dimming a LED with PWM
+ Producing sounds with PWM and a piezo buzzer
o Analog-to-Digital Conversion (ADC)
o I²C
+ Building an I²C slave, some theory (part 1)
+ Setting up and checking an I²C bus (part 2)
+ Implementing an I²C slave with jallib (part 3)
o SPI Introduction
* Experimenting external parts
o SD Memory Cards
o Hard Disks - IDE/PATA
o Interfacing a Sharp GP2D02 IR ranger
o Interfacing a HD44780-compatible LCD display
o Memory with 23k256 sram
* License
* Appendix
o Materials, tools and other additional how-tos
+ Building a serial port borad with the max232 device
+ In Circuit Programming
o Changelog

This book is still alpha, a lot of work still needs to get done. Tutorials are always getting added. Please give us your feedback, or request a tutorial on a specific subject.

Cheers,
The Jallib Team


Jallib project: jallib - Project Hosting on Google Code
Jallib Group: jallib | Google Groups
Jalv2 website: Just Another JAL Website | Just Another Language for your pic microcontroller
 
Jalv2 is cool I like it. I was coding in about 10 minutes and that was with a 18f1220 I wrote a little program to test a PIR sensor aliasing port pins is a little funny but it make sense
Code:
 pin_A0
but it I was use to
Code:
 PORTA.0
I is a good option for beginners and pros a like I hope the Jal and JAlib team keep up the good work
Here the little program I wrote after playing with it just 10 minutes
Code:
---- this is JaLv2 --PIR sensor--tester
include 18f1220                    -- target PICmicro
-- This setup uses the internal oscillator
pragma target OSC       INTOSC_NOCLKOUT   -- INTOSC use inturn OSC
pragma target clock     8_000_000         -- oscillator frequency
pragma target WDT       disabled          -- no watchdog
pragma target LVP       disabled          -- no low-voltage programming

OSCCON_IRCF = 7                           -- set prescaler to 1 (8 MHz)
 include delay

enable_digital_io()
var bit led      is pin_A0         -- alias porta.0
var bit IRd      is pin_A1        -- alias porta.1
pin_A0_direction = output
pin_A1_direction = input
forever loop              -- start of loop

  If !IRd then            --test PIR
     delay_1ms(10)        --small 10 ms delay
      led = 1             -- if true led on
         else             -- led is on for 250 ms if true
     delay_1ms(250)
     led = 0               --else its off
  end if
end loop                   -- the end of loop
 
Status
Not open for further replies.

Latest threads

Back
Top