I read the definition in the manual, I meant of a small example program .BAS
I will give me a more hands on view thanks
I read the definition in the manual, I meant of a small example program .BAS
I will give me a more hands on view thanks
Here are some snippets from a 16F873A project.
It triggers on PORTB.0 using ON INTERRUPT.
Code:ON INTERRUPT GOTO MYINT INTCON = %10010000 MAIN: 'DO STUFF GOTO MAIN DISABLE MYINT: IF PORTB.0 = 1 THEN PC = PC + 1 WRITE 3,PC.BYTE0 WRITE 4,PC.BYTE1 READ 3,PCNT.BYTE0 READ 4,PCNT.BYTE1 pause 100 ELSE PC = PC ENDIF INTCON.1 = 0 RESUME ENABLE
Dave
Always wear safety glasses while programming.
Hi Ken,
Spend an hour or more in ME Labs website, there are a Gaggle of sample programs and user submitted programs there. It is a very good resource, I promise. It may / not have the example you seek, it IS worth the time.
http://melabs.com/resources/samples-pbp-general.htm
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks