Best Microcontroller Projects


XML RSS
What is this?
Add to My Yahoo!
Add to My MSN
Add to Google

Home
LCD-KEYS OnePort
PIC Introduction
PIC Programming
Programmer Types
PIC Programmer
Schematic Tool
Tips & Techniques
PIC Tutorials
C Course
Digital Downloads
Store
My SECRET
Oscilloscopes
Contact Me
About Me
Terms of Use
Search This Site
Freebies
Articles
Problem?-Solution
MicroBlog
Books
Resource Links
Site Map
Your Projects
Video du Jour
Rant/Rave
Privacy Policy

I use and
recommend Firefox
for the best internet
browsing experience. Click below for your
free copy today:

CLICK THE IMAGE:


Note: I find it faster
and easier to use and
it has great plugins.  

It even imports all your current
browser settings!

There's no risk as your existing browser is not affected in any way - you can just choose which one to use.



Sign up for MicroZine:
''The'' Microcontroller Newsletter


:
:
Don't worry -- your e-mail address is totally secure. I promise to use it only to send you MicroZine
Enter your first Name and primary email address in the form above:

And receive absolutely FREE a full project for:


"Measuring Analogue Voltages
Without An ADC"

(Using only one pin).

Instant Download:
You Can
Get It Right Now

Warning: This project could be Removed
at any time.  

It will NOT be
available indefinitely SO

To avoid
disappointment get it:

Now



Remember this is a project with full description and fully debugged C Source code - and it's not available from the main website.

You can only get it through this newsletter.


To get exclusive access Enter your first name Name and primary email address Now in the form above.:

But wait !

There's more...

You'll receive more
free and exclusive reports as well as site information and site product updates.

Scroll up to the form above and sign up NOW.  Don't forget it's FREE and if you don't like it you can unsubscribe at any time.

Click Here to use the form Now.

Social Bookmarking
Click & Add:
add to BlinkBlink
add to Del.icio.usDel.icio.us
add to DiggDigg
add to FurlFurl
add to GoogleGoogle
add to SimpySimpy
add to SpurlSpurl
Bookmark at TechnoratiTechnorati
add to YahooY! MyWeb
Find out Why social bookmarking is
Useful For You.

Readers comments

"I wanted to thank
you so so so much
for all the information
you have provided in
your site it's

SUPERB and FANTASTIC."


- Ranish Pottath


"This site really is
the best and my favorite.
I find here many useful
projects and tips."

- Milan

bursach<at>gmail.com

Learn PIC C Now
Wondering how to program your next project using C and need a great start?


"Awesome site,
very, very easy and nice
to navigate!"


- Matt
matt_tr<at>
wolf359.cjb.net


"I am a newbie to PIC
and I wanted to say
 how great your
site has been for me."


- Dave

de_scott<at>bellsouth.net

Learn Microcontrollers
"Interested in
Microcontrollers?"


Sign up for The
Free 7 day guide:

FREE GUIDE : CLICK HERE

"Your site is a great
and perfect work.
congratulations."


- Suresh

integratredinfosys<at>
yahoo.com

"I couldn't find the correct
words to define
yourweb site.

Very useful, uncovered,
honest and clear.

Thanks so much for
your time and works.
Regards."


- Anon





16F84a Counting RA4 Input : output to single LEDs

PIC 16F84A Assembler solution...

FREE Tools and Resources.
For Earning Online...
CLICK HERE NOW

More Resources...




For the moment there are some problems in displaying comment text directly so I have re-created Colins entry here:

PIC Assembler solution:

                         ;Project: Count Inputs on RA4
List P = 16F84
#include <p16F84.inc>
__CONFIG 1Bh             ;_CP_OFF & _PWRTE_ON & _WDT_OFF & _RC_OSC


fileA   equ             20h
fileB   equ             21h
swflag  equ             25h


                ORG     0               ;Load the code at address 000
SetUp   BSF     03,5                    ;Select Bank1
                MOVLW   10h             ;Put 0001 0000 into W
                MOVWF   05              ;Load TrisA. Make RA4 input. Others output
                BCF     03,5            ;Select Programming area -  Bank0
                GOTO    Main

                                        ;1mS delay

_1mS    decfsz  fileA,1
                goto    _1mS
                retlw   00

                                        ;100mS delay

_100mS  movlw   60h
                movwf   fileB
AA              call    _1mS
                decfsz  fileB,1
                goto    AA
                retlw   00

Main    CLRF    swflag
                CLRF    05              ;Clear Port A
Main1   CALL    _1mS
                BTFSS   05,4            ;Test the input line
                GOTO    Main2
                btfsc   swflag,0        ;first time?
                GOTO    Main1
                bsf     swflag,0
                bcf     05,2            ;turn off the third line
                bsf     05,0            ;turn on the first line
                goto    Main1
Main2   btfss   05,0                    ;Is first line ON and no input signal?
                GOTO    Main1

                CLRF    swflag
Main3   CALL    _1mS
                BTFSS   05,4            ;Test the input line
                GOTO    Main4
                btfsc   swflag,0        ;first time?
                GOTO    Main3
                bsf     swflag,0
                bcf     05,0            ;turn off the first line
                bsf     05,1            ;turn on the second line
                goto    Main3
Main4   btfss   05,1                    ;Is second line ON and no input signal?
                GOTO    Main3

                CLRF    swflag
Main5   CALL    _1mS
                BTFSS   05,4            ;Test the input line
                GOTO    Main6
                btfsc   swflag,0        ;first time?
                GOTO    Main5
                bsf     swflag,0
                bcf     05,1            ;turn off the second line
                bsf     05,2            ;turn on the third line
                goto    Main5
Main6   btfss   05,2                    ;Is third line ON and no input signal?
                GOTO    Main5
                GOTO    Main1


                END


For more details:
Colin Mitchell
talking :at: tpg.com.au

 End of page: 16F84A RA4 Assembler solution

FREE Tools and Resources.
For Earning Online...
CLICK HERE NOW

More Resources...



Jump from 16F84A RA4 counting assembler solution to
Best-Microcontroller-Projects Home Page





Don't forget to Sign Up for your

Microcontroller Newsletter

With "Essential tips and techniques",

..."New Site Info" and more...

Including a free project :

How to drive an LCD and 12key keypad using "Only One 8 Bit Port" with no interface logic!...

(Works for any microcontroller)

This costs you : Nothing...
Just fill out the form below and you'll get full C source code and project schematic and description.



Email

Name

Then

Don't worry -- your e-mail address is totally secure.
I promise to use it only to send you MicroZine.
Google
 
  Best Microcontroller projects.