TLL Logic? reading 3.3v on a pin?


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2006
    Location
    Murrieta, CA
    Posts
    62

    Default TLL Logic? reading 3.3v on a pin?

    Ok here is the setup

    Pic basic pro
    PIC16F877A via ICSP

    I have a 5vdc board but i have an RF section which requires 3.3v this RF section has an output logic of 3.3v connected to ports A0 - A4 ... the problem i am having is ports A0 - A3 which are TTL. Porta.4 which is an Schmitt trigger input reads the low voltage just fine its the other ports that i get no response with..

    do i have to do a special config for these 4 ports?

    Setting the TRISA register has no effect.

    is there another register i am missing?

    Thanks
    There are 10 kinds of people. Those that know binary and those that do not.

  2. #2
    Join Date
    Feb 2010
    Location
    USA, New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default

    Add the lines:

    Code:
    ADCON1=7
    CMCON=7
    Near the top of your program. This should set your analog ports as digital. Then the TRIS register will have an effect.

    Best Regards,
    Paul

  3. #3
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by RFEFX View Post
    Porta.4 which is an Schmitt trigger input reads the low voltage just fine...
    I would expect more trouble with the Schmitt trigger which requires 0.8*Vdd or 4V for logic high.

    Anyway, I usually use the circuits shown in FIG 13 or FIG 14 in this App Note http://www.zbasic.net/appNotes/AN213.pdf

  4. #4
    Join Date
    Nov 2006
    Location
    Murrieta, CA
    Posts
    62


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dhouston View Post
    I would expect more trouble with the Schmitt trigger which requires 0.8*Vdd or 4V for logic high.
    i agree but found that the following works well with it.

    IF porta.4 != 0 then <label>

    Thnx for your help guys
    There are 10 kinds of people. Those that know binary and those that do not.

  5. #5
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Cool

    Forget all this TTL-things !
    You are in the CMOS-decade !!!!

    No one is using TTL-Logic !!!!

    Just look in the datasheet and look at the functions of each post-pin !! there is a lot of surprise !!!
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

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