From £49.95 |
Buy it Now For part numbers ending with suffix: /SSCompatible with PIC® 16C62(AB), 16C63(A), 16C72(A), 16C73(AB), 16C745, 16C773, 16F72, 16F73, 16F76, 16F870, 16F872, 16F873A, 16F876A. |
Thank you very much !!! I can't wait to test it at the weekend !
LE : I use PBP 2.5, so TimerReload CON 61637 = WARNING Line 10: 111001 Numeric overflow, value truncated.
a bit fancier
#CONFIGcfg = _INTRC_OSC_NOCLKOUT
cfg&= _WDT_ON
cfg&= _PWRTE_OFF
cfg&= _MCLRE_ON
cfg&= _BODEN_ON
the chances of AI finding well written pbp code to plagiarize from are slim at best.
afaics AI can only write code if it can plagiarize it from somewhere, the code only works if the stolen code...
It works ! Finally, the first program that shows me the duration. BUT .... the correct identification of the pressed button does not work ! I pressed ONLY button 0 : short or long ...It doesn't...
fratello Today, 10:53No, I did not forget to add a label.
EXIT is a keyword used to break out of the current loop.
AI, simulation, virtualization.... What happened to the good old breadboard?
Do I really need to...
forget Proteus.
Also I think Henrik forgot to add the label Exit: just before the Serout command.
Ioannis
Thanks !
But nothing on serial ...(in Proteus 8)
What happens if more than one button is pressed at the same time?
Anyway, this might serve as starting point. It compiles but it is not tested.
Long_Press CON 5000
Short_Press con 100
cnt...
From £49.95 |
Buy it Now For part numbers ending with suffix: /SSCompatible with PIC® 16C62(AB), 16C63(A), 16C72(A), 16C73(AB), 16C745, 16C773, 16F72, 16F73, 16F76, 16F870, 16F872, 16F873A, 16F876A. |
Re: How to measure how long I pressed a button ?
i know nothing about ancient history
richard Today, 12:19and the number is word sized anyway