you have set timer1 to overflow every 16.38 mS , you never count the overflows
also adding 65535 to a word var seems very odd do you actually intend to subtract 1
Thanks for reply !
T1CON = %00000110 ; this command does not start timer1?
Or do I have to use the command: T1CON.0 = 1 'start Timer1 ?
How to see if button is released ? IF DataW.... it's...
in order to measure a buttons hold time you need to either note time button was pressed then the time button was released
the duration is release time - when pressed time, or when button is...
Howdy ! I'm back on the forum after some absence (I had some personal problems).
I am trying to develop a project. I use a PIC12F675 with which I read the value of a group of 6 resistors, of...
Published on - 13th May 2011 22:45
Number of Views: 6332
The attach zip contains a number of projects, the clock application is called "Clock_8_BIT_par_TFT.pbp" This project has a external RTC that can be set via USB with VB6.
There are a few other projects to drive this display including a SPI interface.
Disclaimer; I am not a programmer so my code may not be the most efficient.
Re: How to measure how long I pressed a button ?
forget Proteus.
Ioannis Yesterday, 20:01Also I think Henrik forgot to add the label Exit: just before the Serout command.
Ioannis