Digital touch Screen Combination lock


Results 1 to 40 of 42

Threaded View

  1. #9
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Digital touch Screen Combination lock

    Quote Originally Posted by richard View Post
    lesson 3 {i will leave off the config section its unchanged}

    try this with latc initiaised with 1 2 or 3 and pins c0 and c1 grounded
    the leds always reflect the initial state of latc , and in no way reflect the logical state of portc pins why?

    Code:
        ANSELC = 0
        ANSELA = 0
        DEFINE OSC 64 
        OSCCON = $70
        OSCTUNE.6 = 1
        TRISA = %11111100 
        
    led1 var lata.0
    led2 var lata.1
    
    
    loopy:
    latc=0   ;init latc try 1 2 3
    led2 = latc.1
    led1 = latc.0
    
    
    pause 3000
     
    goto loopy
    ps don't make grounded pin outputs
    ok i got this....as i did the changing of the numbers from 0 to 3. It was obvious that those numbers represents binary numbers of the portc and corresponds to LED1 and LED2(assigned via software)

    I did add one more latc.2 to ground and placed one more LED to porta.2 (changed the trisa as well), then went up to 7th number and realised the change in binary on the porta.

    I would love if you could explain to me were this could be useful in real life. I know time is limitted but some time i would love to read your explanation.

    Many thanks.
    Last edited by astanapane; - 17th August 2020 at 19:42.

Similar Threads

  1. 4 Wire resistive touch screen, Need help
    By Megahertz in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 16th February 2012, 17:28
  2. combination lock
    By korayfethi in forum Schematics
    Replies: 13
    Last Post: - 23rd May 2007, 20:02
  3. Round Dial, Electronic Combination Lock
    By Pic_User in forum Off Topic
    Replies: 5
    Last Post: - 6th July 2006, 13:34
  4. touch screen
    By micro in forum General
    Replies: 1
    Last Post: - 13th January 2006, 03:39
  5. Touch Screen Wish List!!!
    By Amity in forum PBP Wish List
    Replies: 2
    Last Post: - 15th September 2005, 14:40

Members who have read this thread : 2

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