Port pin problems


Closed Thread
Results 1 to 3 of 3
  1. #1
    sgreelish's Avatar
    sgreelish Guest

    Default Port pin problems

    Using a 17C756 with select case statements to set pins on a give port. Each time the routine executes with in the case structure ( if then else also) to set (1 or HIGH) all pins on the port are reset (0 or LOW). If a pin is set one one port say PORTD it does not effect other pin of ports PORTF, PORTE and so on. I have tried simple implied Let command s( Var = 1) and the HIGH Var form. Neither works.

    The pin names are defined variables which are then used in the body of the code.

    Anybody know whats going on.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    If you post your actual code and definitions, then folk might have a chance identifying what your problem is, or trying to replicate it, otherwise it's kinda stabbing in the dark.

  3. #3
    sgreelish's Avatar
    sgreelish Guest


    Did you find this post helpful? Yes | No

    Default

    I turns out that the 17C756 defauts to A/D analog inputs on the two ports I was working with. Melabs set me straight.

    Everything now works fine.

Similar Threads

  1. Is this a K Type sensor?
    By jessey in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 21st November 2009, 14:55
  2. DS1820 with 16f688
    By jessey in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 23rd May 2009, 06:07
  3. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 18:27
  4. Another RTC, DS1287
    By DavidK in forum Code Examples
    Replies: 0
    Last Post: - 12th December 2006, 18:07
  5. port/ pin explanation 16F877
    By emmett brown in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th August 2006, 02:07

Members who have read this thread : 1

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