3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

PICBasic serial interrupts with PIC16F877

PICBasic serial interrupts with PIC16F877
simple example code to use serial interrupts for the PIC16F877.
1) a matlab program sends the PIC numbers
2) the PIC will pause whatever it's doing,
3) get the numbers and display them on LEDs,
4) and then continue on with what it was doing.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Here's the code, enjoy

here\
see the code in the txt file. It is very simple and very well commented and it's a bare minimum of what you need for PIC serial interrupts. The txt file has the matlab and the PICBasic code. Took me a day to figure all this out and boil it down to the essentials (what you'll find in my txt file). The PICBasic code is based off of example code from the internet.
« Previous StepDownload PDFView All StepsNext Step »
4 comments
Mar 10, 2009. 1:55 AMhani_aast says:
I want the complete circuit plz
Dec 13, 2007. 5:16 PMjosheeg says:
I liked useing Great Cow basic a free open source basic for the 16F877A PIC chip it works great in windows and will compile for linux.
Apr 29, 2006. 10:40 PMjellyfish says:
this is a great little example. i can see the potential! are you self taught? i've been working with the PIC under the pressure of having to teach it. i feel i've got a pretty good grip on the basics (no heavy lifting with serial communications) and i feel i've barely scratched the surface. it's nice to look at your code and understand what's going on. so much of the time i find some assembly language wierdness ellusivity.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
81
Followers
40
Author:leevonk
www.leevonk.com