Start by editting your post, add CODE tags (click on GO ADVANCED), and then split your lines.
That will make it easier for people to help.
you can toggle on/off like this
IF KP = 0 THEN '1/0 BUTTON PRESSED
;use p_level to see what state machine is in 0=off ,non zero = on
if p_level then
Yes, sorry, I guess single-shot wouldn't be a good description. I do mean a toggle , but without any auto-repeat function, as my earlier version had been.
I meant finite STATE machine. ...
change t2con=7 to t2con=5
I cannot interpret that request at all
do you mean
a single shot , turns it off and it stays off until reset [the real meaning of a single shot]
hi i need help, my program runs and stops at a certain line, at PORTA = 0, i.e after TRISC = %00000000 ( checked with the ICD compile). i use pic16f886. what could be the prolem? compiles...
Well after changing some pause timing and sharing it before and after the indicator LED routine, It seems to be working pretty good now. However, I still need to be able to use the 1/0...
since i put the data_length -1 in the "flash command " are so that value set in the data_length is the true byte value that will be returned - eg if data_lenght = 10 then 10 bytes are returned
These past few months have kept me occupied with other things, so much so that I have been neglecting my hobbies. So, in the gaps in-between when I can sneak some time to indulge in them,...
in this example I use indirect addressing to retrieve the data ,but due to the 12f1822 architecture only the low 8 bits are retrievable .wastes a bit of space but its heaps quicker
Any line beginning with @ is a statement for the assembler to process [just a shorthand way of ASM--DO STUFF ---ENDASM]
the assembler is usually case sensitive CARE NEEDS TO TAKEN