Searching \ for 'Best way to sense a pushbutton press' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=best+way+sense+pushbutton
Search entire site for: 'Best way to sense a pushbutton press'.

Truncated match.
PICList Thread
'Best way to sense a pushbutton press'
1997\10\24@162912 by ndie Ohtsji [4555]

flavicon
face
Hi Paul,

>  Does this all make sense?  Or did you know it already?  I should be
> interested to know.

I understand most of what you are saying.  No, I think this is a very
good method.  I am in the midst of trying to gather up information
to pick the best structure for this particular project.  So far my
options seem to be:
       a) Pick another PIC - one with more I/O pins
       b) Mux the I/O pins
       c) Use I2C
       d) Serial transfer using shift registers (quasi I2C?)

Still undecided.  I really like the I2C method but the only thing
holding me back is that none of my devices have the I2C feature
(including the micro......I want to use the PIC16F84 because of
re-programmability).  I like it because future addons don't require
a complete re-think of the structure, but they can be plugged in
as a daughter board or external upgrade module (same thing really,
just different marketing terms)


>>                         2) The timer for PIC to PIC serial
>>                            communication
>
>  Not so easy.  You will see many threads recommending you stick to
> a "state machine" using the main program loop as the timing element!

Can you elaborate on the "state machine" ??????  I want to communicate
PIC to PIC via a serial two wire scheme (data & ground).  The
communication link may change to RF data modules in the future.


>>                         3) The timer for frequency measurement (20KHz
>>                            to 80KHz)
>
>  Not so easy at the same time as 2) above.  Depends on whether you want
> to measure frequency as such (count clicks over a second = easy) or
> period and do a division (both tedious!).

I want count the number clicks for a set time period.

Regards,

-Randie

/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/
*/ Randie Ohtsji                                                     /*
/* Glenayre R&D, Vancouver, BC  CANADA   Phone: (604) 293-1611 x4555 */
*/ Email: spam_OUTrohtsjiTakeThisOuTspamglenayre.com           Fax:   (604) 293-4317       /*
*/                ________                                           /*
/*               / ____/ /__  ____  ____ ___  _________              */
*/              / /___/ / _ \/ __ \/ __ `/ / / / __/ _ \             /*
/*             / /_\ / /  __/ / / / /_/ / /_/ / / /  __/             */
*/             \____/_/\___/_/ /_/\__,_/\__  /_/  \___/              /*
/*                ________________________/ /                        */
*/               /_________________________/                         /*
/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/

1997\10\26@084734 by paulb

flavicon
face
Randie Ohtsji [4555] wrote to PICLIST:

> Hi Paul,
>
>>  Does this all make sense?  Or did you know it already?  I should be
>> interested to know.

 .. in reply to a message I sent him expounding the use of shift
registers to implement expansion to PIC input and output.  I sent this
directly rather than to the PICLIST as I felt it would be too trivial
for many.

 If however the transaction sounds interesting, I can of course post
copies of my first or subsequent replies to Randie, to whoever requests.

Cheers,
       Paul B.


'Best way to sense a pushbutton press'
1997\11\05@104258 by Marc Heuler
flavicon
face
Hi Randie (Randie Ohtsji [4555]), in
<.....199710242027.NAA15965KILLspamspam@spam@glenvan.glenayre.com> on Oct 24 you wrote:

> Still undecided.  I really like the I2C method but the only thing
> holding me back is that none of my devices have the I2C feature
> (including the micro......I want to use the PIC16F84 because of
> re-programmability).  I like it because future addons don't require
> a complete re-think of the structure, but they can be plugged in
> as a daughter board or external upgrade module (same thing really,
> just different marketing terms)

You can use an AT89C52.  It has 32 IO pins and 8K of internal FLASH program
memory.  It's 2x the price of an F84, though.

More... (looser matching)
- Last day of these posts
- In 1997 , 1998 only
- Today
- New search...