• AVR Freaks

Hot!PIC18F4550, PortC RC4&RC5 TTL inputs?

Author
electrogera
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2003/11/07 12:45:05
  • Status: offline
2008/02/23 08:33:19 (permalink)
0

PIC18F4550, PortC RC4&RC5 TTL inputs?

PIC18F4550, RC4 and RC5 can be used like digital TTL inputs?
I'm trying to use RC4 and RC5 like digital TTL inputs. According with the  specification for PIC18F4550 page 118 (120 pdf) the portC pins RC4 and RC5 can be configured like TTL inputs, but the TRIS register are not implemented for these two pins. On page 117 (119 pdf) where the blue note is, said "To use pins RC4 and RC5 as digital inputs, the USB module must be disable (UCON<3> = 0) and the on-chip USB transceiver must be disabled (UCFG<3> = 1)", I did that, but when I read PORC for RC4 and RC5 read trash, some times high values, some time low values.

What else should a take care to configure rigth these pins?
#1

3 Replies Related Threads

    leon_heller
    Super Member
    • Total Posts : 6411
    • Reward points : 0
    • Joined: 2004/08/17 13:19:45
    • Location: St. Leonards-on-Sea, E. Sussex, UK.
    • Status: offline
    RE: PIC18F4550, PortC RC4&RC5 TTL inputs? 2008/02/23 09:45:55 (permalink)
    0
    You shouldn't need to do anything else. Post your initialisation code.

    Leon


    Leon Heller
    G1HSM

    #2
    Gorro
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2019/03/07 04:12:52
    • Location: 0
    • Status: offline
    Re: RE: PIC18F4550, PortC RC4&RC5 TTL inputs? 2020/03/31 05:05:35 (permalink)
    -1 (1)
    Hi please how did you disable UCON and UCFG, what do I write? 
    #3
    pcbbc
    Super Member
    • Total Posts : 1687
    • Reward points : 0
    • Joined: 2014/03/27 07:04:41
    • Location: 0
    • Status: online
    Re: RE: PIC18F4550, PortC RC4&RC5 TTL inputs? 2020/03/31 05:46:22 (permalink)
    0
    OP decided to start their own thread here.
    #4
    Jump to:
    © 2020 APG vNext Commercial Version 4.5