The Philippine Electronics and Technology Forum
February 10, 2012, 04:52:02 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  

Pages: [1]   Go Down
  Print  
Author Topic: password code help new  (Read 1206 times)
cliff88
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline 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. Cheesy 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 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

Code:
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.com

Tel #: (63)(2) 536-3378
Globe +63915-973-7691
Smart +63921-779-0748

Location Map

YM: julie.egizmo  aka Born2BeWired  Grin
cliff88
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline 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 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 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.com

Tel #: (63)(2) 536-3378
Globe +63915-973-7691
Smart +63921-779-0748

Location Map

YM: julie.egizmo  aka Born2BeWired  Grin
cliff88
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Posts: 26


« Reply #5 on: December 27, 2009, 04:34:30 PM »

saan?ito?


http://www.seabreezecomputers.com/encrypter/
http://codepad.org/
Logged
cliff88
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Posts: 26


« Reply #6 on: December 27, 2009, 04:40:59 PM »

thanx po msyado..
Logged
Siramiko
Lead Acid Battery
*******

Pogi/Ganda Points: 35
Offline Offline

Posts: 797

thank you elab


« 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 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 Offline

Posts: 5954


There is no delight in owning anything unshared.


« Reply #9 on: December 27, 2009, 05:30:41 PM »

Grin Grin Grin wag mo akong tawaging master heheh Grin Grin Grin di ako master hehe Grin
Logged

E-Gizmo Mechatronix Central: www.e-gizmo.com

Tel #: (63)(2) 536-3378
Globe +63915-973-7691
Smart +63921-779-0748

Location Map

YM: julie.egizmo  aka Born2BeWired  Grin
cliff88
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline 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 Offline

Gender: Male
Posts: 24



« Reply #11 on: December 31, 2009, 05:21:19 PM »

kuya cliff88, pwede po b makita schem nito?. Huh
Logged

Nobody wants to be alone.

"Christ Above All"
cliff88
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline 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 Offline

Gender: Male
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 Offline

Gender: Male
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 Offline

Gender: Male
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
zer0w1ng
Technical People
Gas Turbine
*****

Pogi/Ganda Points: 295
Offline Offline

Gender: Male
Posts: 2151


Enter any 11-digit prime number to continue...


WWW
« Reply #16 on: January 07, 2010, 06:47:13 PM »

Grin Grin Grin wag mo akong tawaging master heheh Grin Grin Grin di ako master hehe Grin


Mistress pwede. Grin
http://en.wikipedia.org/wiki/Master_(form_of_address)
http://en.wikipedia.org/wiki/Mistress_(form_of_address)

On topic.
Looking at your code, I am wondering why you are testing for 0x0A (value of 9 from decode_key() function).
Does the user need to press 9 before and 9 after entering the password?
Or this is just copy/pasted from a PC program and trapping the ENTER key?

Logged

cliff88
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Posts: 26


« Reply #17 on: January 09, 2010, 08:53:40 PM »

Mistress pwede. Grin
http://en.wikipedia.org/wiki/Master_(form_of_address)
http://en.wikipedia.org/wiki/Mistress_(form_of_address)

On topic.
Looking at your code, I am wondering why you are testing for 0x0A (value of 9 from decode_key() function).
Does the user need to press 9 before and 9 after entering the password?
Or this is just copy/pasted from a PC program and trapping the ENTER key?





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
Pages: [1]   Go Up
  Print  
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
may assembly code(op code) ba kayo ng zilog/pic .
Microcontroller/Microprocessor Unit Projects and Programming
Siramiko 12 1999 Last post February 13, 2008, 11:26:41 AM
by motion55
password program
Computer Programming/Software Engineering
n 18 2996 Last post September 30, 2008, 12:36:13 PM
by Red Sonjah
Admin password sa PC. « 1 2 »
Absolute Beginner Technical Discussion
takot_sa_kuryente 35 4103 Last post July 21, 2008, 06:54:34 AM
by nrdvjr
HEX CODE CONVERSION TO SOURCE CODE « 1 2 »
ECE Students
emely 26 3986 Last post September 15, 2008, 10:01:07 AM
by maldihtah13
forgot your id or password
Computer Programming/Software Engineering
ineedhelp 1 746 Last post March 01, 2009, 10:24:16 PM
by Bleed
password code help
Microcontroller/Microprocessor Unit Projects and Programming
cliff88 12 861 Last post September 26, 2010, 07:48:53 AM
by zinckingeye
password
PC Video and Monitor Repair
guia 6 384 Last post July 24, 2010, 11:31:55 AM
by akhen
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!