SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

/*
Low-cost Open-source Simple System for home Automation (LOSSA) Copyright (C) 2004 David Rao <louigi600@yahoo.it>

LOSSA is a home automation system that aims at: Distributed network of devices with simple interconnect system, pc intercomunication, low cost and simple installation.

This file is part of LOSSA.

LOSSA is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

LOSSA is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with LOSSA; if not, write to the Free Software: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
Here are some increasing difficulty pic application I made to help people get started with pic programming.
We'll start off with a very simple application to add a little difficulty each time.

First one (int) has a blinking led and a second led changes state at each interrupt generated by rising edge on button, the delay function is parametric accepting a parameter trough W register

Second one (eeprom) Display content of an EEPROM location on a til311 and increment the content of the EEPROM location at button presses.

What you will need:
A pic 16F84 with some other resistors, capacitors and leds .... A pic assembler (like gputils)
A pic programming software (like prog84) A pic programmer (see schematics in prog84)

The schematics of the application is in the test.asm source and are thw same for bothe examples.

Now you need to asemble the source:

# gpasm int.asm

This should produce a test.hex (intel hex 8 binary format), just incase you fail to do this I fave included what I assembled (see helpme.hex).

Now you need to program your pic with the newly created binary file:

# prog84 -x int.hex -a

Now put your pic in your testing circuit and have fun.


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.