16f877 portc.6 & portc.7


Closed Thread
Results 1 to 22 of 22

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Location
    Pennsylvania
    Posts
    113


    Did you find this post helpful? Yes | No

    Default Still nothing

    mackrackit thanks for the assistance

    I tried the HIGH PORTC.6 and LOW PORTC.6 loop and still nothing the led's remain off. I don't need to have an pull up or pull down resisitors on those pins do I?

    Thanks
    David

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by DavyJones View Post
    need to have an pull up or pull down resisitors on those pins do I?
    No, the LED with its resistor takes care of that.
    Now I have to ask the ...
    Are you sure you are using the correct pins?
    Have you checked the LEDs?
    and so on...

    With TRISC set for out or in, these to pins act as far as I know like any other, The TX/RX has to be defined.

    Can you post you layout(schematic or picture)?
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Jan 2008
    Location
    Pennsylvania
    Posts
    113


    Did you find this post helpful? Yes | No

    Default More information...

    mackrackit, For my testing purposes trying to figure this out I am using:
    a controller I purchased from http://www.futurlec.com/PIC16F877_Controller.shtml
    and led array is http://www.futurlec.com/TrainingBoardAccessories.shtml

    You know I feel so stupid not looking more closely at this board. I don't have the schematic and I just assumed that pins 25 and 26 were ported to the header for portc.

    I just looked up the boards schematics
    http://www.es.co.th/Schemetic/PDF/ET-BASE-PIC40.PDF
    and it appears that quite clearly that 25 and 26 have been routed to an rs232 header on the board and the portc header has NC marked clearly on c.6 and c.7 and I'm going to assume that NC is "no connect", well I shouldn't do that should I? hehe if you look at the document you'll see what I mean.

    I do appreciate your help answering my questions and getting me thinking more clearly. I'm at the office right now I'm going to check this out as soon as I get home. I should be able to do a quick test by placing a couple led's on that rs232 header on the main controller. Then it should be simple enough for me to route the 2 pins to the portc header were I actually need them.

    I'll let you know how it turns out.

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quick look at that datasheet tells me that all you'd have to do is run a jumper across pins 8-9 and 7-10 on the MAX232...if what you're really looking for is to run the RS232 header directly from the PIC at TTL levels instead of RS232 levels.

  5. #5
    Join Date
    Jan 2008
    Location
    Pennsylvania
    Posts
    113


    Did you find this post helpful? Yes | No

    Default got it....thanks skimask

    yep thats exaclty what I want to do. Shame on me for not looking at the datasheet first and assuming that the header for portc was connected. What I am going to do is modify that and run jumpers so I can actually use the portc header pins for 6 and 7. I've already have my board etched. I think it should be easy enough.

    Thanks
    David

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by DavyJones View Post
    I've already have my board etched. I think it should be easy enough.
    Thanks
    David
    For the last few years or so, when I get PCBs done up for me by an outside company, I am ALWAYS putting in loads of extra thru-vias, at the PICs pins, at the components, on long runs, etc.etc. (except on things like crystal traces and anything really sensitive to spikes)
    If I find a mistake, all I gotta do is cut a trace, and install jumpers across whatever via's fix the problems.
    Sometimes I've got what looks like thousands of via's, but it works.

  7. #7
    Join Date
    Jan 2008
    Location
    Pennsylvania
    Posts
    113


    Did you find this post helpful? Yes | No

    Smile So it's just not me then?

    Quote Originally Posted by skimask View Post
    If I find a mistake, all I gotta do is cut a trace, and install jumpers across whatever via's fix the problems.
    Sometimes I've got what looks like thousands of via's, but it works.
    I'm glad it's not just me. I don't have allot of experience and I probably don't work on allot of projects but the ones I do no matter how careful I am I end up overlooking something. For this project I completely overlooked the fact the the ttl logic was not going to be enough to drive my 9v siren. Jeeze I know I'm no electrical engineer but what was I thinking!

    Thanks again
    David

Similar Threads

  1. 16f877 and ps/2 keyboard error???
    By boraciner in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th July 2009, 08:14
  2. Help SERIN2/SEROUT2
    By mike20200 in forum mel PIC BASIC
    Replies: 3
    Last Post: - 5th September 2007, 06:19
  3. serial communication between CMUcam and PIC 16F877
    By gengkeys in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th March 2007, 06:43
  4. 4 Quadrant dc drive with 16F877
    By mns45 in forum mel PIC BASIC
    Replies: 2
    Last Post: - 23rd February 2006, 13:05
  5. problem using 16f877
    By yrch in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 20th February 2006, 18:58

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