From £79.95 |
Buy it Now For part numbers ending with suffix: /PT Compatible with the following microcontrollers: PIC18C601, 18C658, 18F6310, 18F6390, 18F6410, 18F6490, 18F6520, 18F6525, 18F6585, 18F6620, 18F6621, 18F6627, 18F6680, 18F6720, 18F6722 |
i possibly could be enough but you never reevaluate it until the whole timing mess has long completed
richard Today, 10:49you 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
i can't see how any of this...
No it just sets it to use external clock
9651
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...
What I read from that thread is that you do not have to worry about stealing your idea from pcb perspective.
And I never cared about that. Maybe because I use most of the cases, MCU on board and...
Yup. I googled "jlcpcb steals design" to see if there's a history of incidents, and fell on this thread right away:
...
From £79.95 |
Buy it Now For part numbers ending with suffix: /PT Compatible with the following microcontrollers: PIC18C601, 18C658, 18F6310, 18F6390, 18F6410, 18F6490, 18F6520, 18F6525, 18F6585, 18F6620, 18F6621, 18F6627, 18F6680, 18F6720, 18F6722 |
Re: How to measure how long I pressed a button ?
What happens if more than one button is pressed at the same time?
HenrikOlsson Today, 17:16Anyway, this might serve as starting point. It compiles but it is not tested.
Long_Press CON 5000
Short_Press con 100
cnt...