cliff88
CR2032 Battery

Pogi/Ganda Points: 0
Offline
Posts: 26
|
 |
« on: December 26, 2009, 10:38:06 AM » |
|
ito n po ung link.same output prn tlga nkukuha ko. ndidisplay lng ang key input s portB pro hndi prn ngzezro ang RA0. anyway, sorry s previus post.  thanks master 7.. http://codepad.org/NcevdsCi
|
|
|
|
|
Logged
|
|
|
|
|
The Philippine Electronics and Technology Forum
|
 |
« on: December 26, 2009, 10:38:06 AM » |
|
|
|
|
|
|
Logged
|
|
|
|
7_SeVeN_7
Technical People
Solar Power Satellite
   
Pogi/Ganda Points: 380
Offline
Posts: 5954
There is no delight in owning anything unshared.
|
 |
« Reply #1 on: December 26, 2009, 10:53:36 AM » |
|
much better. madaling masilip yung code.. btw, mukhang logic lang talaga ang kelangan mo... look at this one void code_enter(void) { while(1) { scanned_key = scan_keypad(); decoded_key = decode_key(scanned_key); code1[i] = decoded_key;
display_key(decoded_key);
i++; } } you are using while(1), it will cause an infinite loop inside that function and walang control statement to break out of while(1)...
|
|
|
|
|
Logged
|
E-Gizmo Mechatronix Central: www.e-gizmo.comTel #: (63)(2) 536-3378 Globe +63915-973-7691 Smart +63921-779-0748 Location MapYM: julie.egizmo aka Born2BeWired 
|
|
|
cliff88
CR2032 Battery

Pogi/Ganda Points: 0
Offline
Posts: 26
|
 |
« Reply #2 on: December 26, 2009, 11:16:16 AM » |
|
mrami n po ako tnry jan. lyk while(!PORTB),while(!decoded_key),while(decoded_key!=0x0a),while(0x0c). pro di k prn mkuha ang output. nng ngforce dn ako ng value for code1(0to5)--*1234*--, nkuha ko ung desired output w/c is RA0=0. tingin ko e ang prblem ng code ko e hndi nasasave ung value s code1. ano n po ggwin ko? sorry po.halos 1wik plng kc ako s high tech c.hehe thanks po s pgrply..
|
|
|
|
|
Logged
|
|
|
|
cliff88
CR2032 Battery

Pogi/Ganda Points: 0
Offline
Posts: 26
|
 |
« Reply #3 on: December 27, 2009, 03:19:18 PM » |
|
hndi ko prn mkuha ung desired output. phelp nmn po san ang mali dito.
void code_enter(void) {
while(PORTB!=12) (terminate when # is pressed. password*1234#) { scanned_key = scan_keypad(); decoded_key = decode_key(scanned_key); display_key(decoded_key);
if(PORTB!=0) (save the key pressed at code1(i) ) { code1(i) = decoded_key; i++; // __delay_ms(150); // PORTB=0; return; } // code1[0] = 0x0a; // code1[1] = 0x01; // code1[2] = 0x02; // code1[3] = 0x03; // code1[4] = 0x04; // code1[5] = 0x0c; // PORTB=code1[5]; // return; } } pg my forced value,nkukuha ko ang output. san po b mali ko.=(
|
|
|
|
|
Logged
|
|
|
|
7_SeVeN_7
Technical People
Solar Power Satellite
   
Pogi/Ganda Points: 380
Offline
Posts: 5954
There is no delight in owning anything unshared.
|
 |
« Reply #4 on: December 27, 2009, 04:17:13 PM » |
|
try this one
|
|
|
|
|
Logged
|
E-Gizmo Mechatronix Central: www.e-gizmo.comTel #: (63)(2) 536-3378 Globe +63915-973-7691 Smart +63921-779-0748 Location MapYM: julie.egizmo aka Born2BeWired 
|
|
|
cliff88
CR2032 Battery

Pogi/Ganda Points: 0
Offline
Posts: 26
|
 |
« Reply #5 on: December 27, 2009, 04:34:30 PM » |
|
|
|
|
|
|
Logged
|
|
|
|
cliff88
CR2032 Battery

Pogi/Ganda Points: 0
Offline
Posts: 26
|
 |
« Reply #6 on: December 27, 2009, 04:40:59 PM » |
|
thanx po msyado..
|
|
|
|
|
Logged
|
|
|
|
|
Siramiko
|
 |
« Reply #7 on: December 27, 2009, 04:53:30 PM » |
|
mrami n po ako tnry jan. lyk while(!PORTB),while(!decoded_key),while(decoded_key!=0x0a),while(0x0c). pro di k prn mkuha ang output. nng ngforce dn ako ng value for code1(0to5)--*1234*--, nkuha ko ung desired output w/c is RA0=0. tingin ko e ang prblem ng code ko e hndi nasasave ung value s code1. ano n po ggwin ko? sorry po.halos 1wik plng kc ako s high tech c.hehe thanks po s pgrply..
hirap naman nitong basahin
|
|
|
|
|
Logged
|
I shall return
|
|
|
cliff88
CR2032 Battery

Pogi/Ganda Points: 0
Offline
Posts: 26
|
 |
« Reply #8 on: December 27, 2009, 05:27:41 PM » |
|
master techno sorry po kng nalito kau..this topic is closed. natulungan n po ako ni master 7.anyway, thanks n rn s pgbasa=)
|
|
|
|
|
Logged
|
|
|
|
7_SeVeN_7
Technical People
Solar Power Satellite
   
Pogi/Ganda Points: 380
Offline
Posts: 5954
There is no delight in owning anything unshared.
|
 |
« Reply #9 on: December 27, 2009, 05:30:41 PM » |
|
|
|
|
|
|
Logged
|
E-Gizmo Mechatronix Central: www.e-gizmo.comTel #: (63)(2) 536-3378 Globe +63915-973-7691 Smart +63921-779-0748 Location MapYM: julie.egizmo aka Born2BeWired 
|
|
|
cliff88
CR2032 Battery

Pogi/Ganda Points: 0
Offline
Posts: 26
|
 |
« Reply #10 on: December 28, 2009, 03:38:51 PM » |
|
ito n ung final code ng password using 4x3 keypad. salamat s tulong ni master 7 =) http://codepad.org/1kDcxmVi
|
|
|
|
|
Logged
|
|
|
|
ion2557
CR2032 Battery

Pogi/Ganda Points: 0
Offline
Gender: 
Posts: 24
|
 |
« Reply #11 on: December 31, 2009, 05:21:19 PM » |
|
kuya cliff88, pwede po b makita schem nito?. 
|
|
|
|
|
Logged
|
Nobody wants to be alone.
"Christ Above All"
|
|
|
cliff88
CR2032 Battery

Pogi/Ganda Points: 0
Offline
Posts: 26
|
 |
« Reply #12 on: January 01, 2010, 05:26:39 PM » |
|
di ako marunong magpost ng image.hehe pero nakaindicate naman don ung mga connections e. indicator lng ung RA so kahit wag mo na lagyan ng LED kng s proteus m lng simulate. tapos lagyan m ng pull-up resistors ung mga columns.
|
|
|
|
|
Logged
|
|
|
|
ion2557
CR2032 Battery

Pogi/Ganda Points: 0
Offline
Gender: 
Posts: 24
|
 |
« Reply #13 on: January 06, 2010, 01:56:31 PM » |
|
anong compiler po ginamit nyo dito?
|
|
|
|
|
Logged
|
Nobody wants to be alone.
"Christ Above All"
|
|
|
reaver26
Size AAA Battery
 
Pogi/Ganda Points: 0
Offline
Gender: 
Posts: 99
|
 |
« Reply #14 on: January 06, 2010, 02:47:26 PM » |
|
standalone setup po ito kuya? kasi naka indicate default pasword. hope makakuha ako ng IDEA dito para sa thesis namin...
|
|
|
|
|
Logged
|
|
|
|
paranz
Technical People
Nuclear Reactor
   
Pogi/Ganda Points: 167
Offline
Gender: 
Posts: 4511
1/4W resistor specialist
|
 |
« Reply #15 on: January 07, 2010, 04:41:28 PM » |
|
anong compiler po ginamit nyo dito?
hitech c ang compiler... If you download the latest MPLAB, merong included na hitech c student version..
|
|
|
|
|
Logged
|
|
|
|
|
|
cliff88
CR2032 Battery

Pogi/Ganda Points: 0
Offline
Posts: 26
|
 |
« Reply #17 on: January 09, 2010, 08:53:40 PM » |
|
hindi po un 9. 0x0A is 10 or (asterisk--*) sa keypad. mali ung nalagay ko don s switch(val).hehe if your pasword is 1352, then you must enter *1352# para matrigger ung relay. # is always used as 'enter' key. don din s program, ung line 218 & 219 wala dapat yan.ierase nyo yn. ewan bt nlagay ko yan jan.sa bago kong program wala na kasi yon.hehe
|
|
|
|
|
Logged
|
|
|
|
|
The Philippine Electronics and Technology Forum
|
|
|
|
|
|
Logged
|
|
|
|
|