18f4550 portc.4 and portc.5 problem


Closed Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    May 2005
    Location
    Cesena - Italy
    Posts
    13

    Default 18f4550 portc.4 and portc.5 problem

    I must use the ports 18f4550's C.4 and C.5 only for input TTL. (And not as USB D + D-)
    Reading the datasheet you can use these ports in input TTL disabling the USB via the register UCON.3. I put into the program this command but the ports C.4 and C.5 not read the data input.
    I tried to read again the datasheet and look for information on the Internet .... but I have not found anything.
    Is there anyone who can help me?
    Sorry for my english!
    Thank you
    Paolo

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    And did you also disabled the onchip transceiver? UCFG<3>=1?

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    The 4550 powers up with the USB module turned OFF.
    And unless you have included USB statements in your program, it'll stay that way.

    Whenever the module is OFF, the pins are in data INPUT mode. They cannot be set to output, because there are no corresponding TRIS bits.

    If you can't read those pins, you've probably got something external going on.
    DT

  4. #4
    Join Date
    May 2005
    Location
    Cesena - Italy
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    .....and now all work perfectly!

    The problem is the trasceiver is on......UCFG.3 = 1 solve all the problems!

    I read the datasheet many time...but the solution is always..IN THE NEXT PAGE!

    I take this opportunity to ingratiate your good work. I don't write to much on this forum, but I read carefully because I always (or almost) find the solution to my problems!
    Darrel thanks for your excellent routines and your presence in this forum, skymask thanks for the excellent advice from this forum.

    Paolo

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Talking

    Darrel thanks for your excellent routines and your presence in this forum
    You see that everyday...

    skymask thanks for the excellent advice from this forum
    Ya don't see THAT everyday!

    Glad I could help in my own 'special' way...

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Hmmm, perhaps I need to spend some more time in the USB section.

    I thought setting UCFG.3 to "External transceiver" would wipe out ...

    RB2 - RB2/AN8/INT2/VMO
    RB3 - RB3/AN9/CCP2(1)/VPO
    RC1 - RC1/T1OSI/CCP2(1)/UOE
    DT

  7. #7
    Join Date
    May 2005
    Location
    Cesena - Italy
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    In my project all the pins VMO / VPO / UOE are used as digital outputs.
    I test them...and with UTRDIS = 1 (UCFG.3 = 1) I can use in TTL input RC4 and RC5 and in the same time I can use RB2 RB3 and RC1 as output...(RC1 transmit serial data at 38400Bps, RB2 AND RB3 send command to activate/deactivate rele').
    If you think may be interesting to test other possibilities...tell me something about. I will do it!

    Paolo

  8. #8
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by pcaccia View Post
    In my project all the pins VMO / VPO / UOE are used as digital outputs.
    I test them...and with UTRDIS = 1 (UCFG.3 = 1) I can use in TTL input RC4 and RC5 and in the same time I can use RB2 RB3 and RC1 as output...(RC1 transmit serial data at 38400Bps, RB2 AND RB3 send command to activate/deactivate rele').
    If you think may be interesting to test other possibilities...tell me something about. I will do it!

    Paolo
    Nope, that's Great information!

    I'll see if I can find a few extra brain cells to store it in.

    I'll put a mark on the chalkboard for skimask too.
    <br>
    DT

Similar Threads

  1. Sony LanC Program
    By l_gaminde in forum mel PIC BASIC Pro
    Replies: 24
    Last Post: - 3rd October 2009, 20:43
  2. confused problem with interrupt in a working program
    By illuminator4 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 14th November 2008, 18:01
  3. Problem with RX from Nokia 6210 ?
    By iugmoh in forum GSM
    Replies: 6
    Last Post: - 21st May 2008, 00:48
  4. 16F676 Please explain this problem...
    By Jayhovah in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 9th May 2008, 22:30
  5. shifting problem
    By helmut in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 31st August 2007, 07:11

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