View previous topic :: View next topic |
Author |
Message |
jhun24
Joined: 07 Nov 2009 Posts: 2 Location: philippines
|
keypad scanning in 1 sec.. how??? -help pls- |
Posted: Mon Jan 25, 2010 9:17 am |
|
|
how can i implement this?? how do i scan a keypad in just 1 minute.. pls some one help me to implement this on code.. thx |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1933 Location: Norman, OK
|
|
Posted: Mon Jan 25, 2010 9:22 am |
|
|
You can actually scan a keypad HUNDREDS OF TIMES PER SECOND depending on the hardware.
You need to be more specific about what kind of keypad, what PIC you are
using, the version of the CCS compiler you have and what you are trying to
do. _________________ Google and Forum Search are some of your best tools!!!! |
|
|
jhun24
Joined: 07 Nov 2009 Posts: 2 Location: philippines
|
|
Posted: Mon Jan 25, 2010 9:38 am |
|
|
dyeatman wrote: | You can actually scan a keypad HUNDREDS OF TIMES PER SECOND depending on the hardware.
You need to be more specific about what kind of keypad, what PIC you are
using, the version of the CCS compiler you have and what you are trying to
do. |
ok... I just need to know how to implement scanning a keypad or may be a specific port in 1 minute. Lets say scankey() is the method/function of scanning. Instead of using delay_ms(1000) that makes the pic idle for a minute, I just want it to be scanning. You get what I mean?? Btw thx for the reply.
I use 4.084 v |
|
|
icesynth
Joined: 03 Sep 2007 Posts: 32 Location: Edmonton, Alberta
|
|
Posted: Mon Jan 25, 2010 11:09 am |
|
|
Think I know what you mean... You can use the Timer to generate an interrupt every second and then call your scanning routine from the interrupt.
See the CCS example files for the timer code examples. _________________ Programming for the the real world.
--Chris Burchett
Sylver Technologies Inc. |
|
|
|