pic16F628


Closed Thread
Results 1 to 6 of 6

Thread: pic16F628

  1. #1
    Join Date
    Apr 2009
    Posts
    9

    Default pic16F628

    hi every one
    can any one help me with this... plzzzzzzzz
    i use Pic16F628 for a senior project and i want to know how to write a code for store 2 dimensional array and how to compare two regular array ??
    i use pro picbasic .

    thanks in advance

  2. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Hello Ilham,

    You might have to tell the rest of us a little more about what you are trying to do. As far as multidimensional arrays, I did a search and found this thread:

    http://www.picbasic.co.uk/forum/show...2093#post32093
    http://www.scalerobotics.com

  3. #3
    Join Date
    Apr 2009
    Posts
    9


    Did you find this post helpful? Yes | No

    Default pic16f628

    hello scalerobotics
    I'm a Beginner in this field ,
    we are trying to make an electronic wallet by using this Pic
    and we want to programmed it to be open with a password
    so we want to set the password in array to make a comparison with the enter password by user in order to check if it correct or not
    i hope i make it much clear

  4. #4
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Ok, that makes sense. I think you could do it simply by making two arrays, and comparing their contents. You might want more bytes if you need it more secure. You could do it this way:


    Code:
    passkeyed var byte[6]   'entered (keyed) password
    passcode var byte[6]    'stored pass word
    
    for n = 0 to 5
       if passkeyed[n] != passcode[n] then failure   'if passkeyed[n] does not equal passcode[n]
    next n
    'if passkeyed passes, your program will get here
    
    end
    
    failure:   'failure subroutine here
       'get here only if you failed password entry
    return
    Last edited by ScaleRobotics; - 9th May 2009 at 02:33.
    http://www.scalerobotics.com

  5. #5
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Entry password

    Go to the following thread : http://www.picbasic.co.uk/forum/showthread.php?t=10637

    You will find the code for different examples. In post#9 you will find my working snippet for an entry password.

    Al.
    All progress began with an idea

  6. #6
    Join Date
    Apr 2009
    Posts
    9


    Did you find this post helpful? Yes | No

    Default Pic16F628

    thanxxxxxxx so much

Similar Threads

  1. Watchdog Timers
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th August 2014, 18:03
  2. Help please about pic16f628
    By eee1984 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 22nd January 2008, 13:56
  3. Need help intergating a PIC16F628 with a DS1307
    By PNightmare in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 30th October 2007, 19:45
  4. help pic16f628 and 115200
    By physics2000 in forum Serial
    Replies: 1
    Last Post: - 26th October 2005, 17:06
  5. Serout PIC16F628 to PC R18iXL Board
    By Spindle in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 19th June 2005, 00:29

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts