Strange problem with Serin/Serout on 16F628


Closed Thread
Results 1 to 24 of 24

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Location
    Florida, USA
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    Bruce - When it gets the valid command to play the sound clip, it plays. There is a status LED on the player that flashes when it gets the comand. It does not do that. I can take this player off the 877 board and can put it on the 628 board running the same code and it works fine. The only difference is that I am using A.3 and A.4 on the 877 for communication and B.6 and B.7 on the 628 board. Everything else is the same. That is what is so frustrating - it's like rotating your tires and now your car won't start. Rotate them back and everything works fine! Makes no sense!

    Thanks again for all your help!

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


    Did you find this post helpful? Yes | No

    Default

    Interesting problem. You seem to have everything configured OK for A/D & comparators off
    with ADCON1 = 7 & CMCON = 7. Have you verified the PIC is even running by blinking an LED?

    Edit: hold the phone. Your code indicates you're using A2 for TX and A3 for RX.

    The only difference is that I am using A.3 and A.4 on the 877
    If you're using A4 for TX, this pin is an open drain output. I.E. it can't go high!
    Last edited by Bruce; - 21st August 2008 at 23:31.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

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


    Did you find this post helpful? Yes | No

    Default

    Maybe, just maybe.
    http://www.picbasic.co.uk/forum/showthread.php?t=562

    I might be wrong But I do not think A.4 will work for tx.


    edit
    Better late than never, did not see the above post
    Last edited by mackrackit; - 21st August 2008 at 23:43.
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    A4 can be used for an output, but it only goes high if you use an enternal pull-up resistor.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  5. #5
    Join Date
    Sep 2006
    Location
    Florida, USA
    Posts
    94


    Did you find this post helpful? Yes | No

    Default Problem Solved!

    Ya know - I really cringe when I have to finally break down and have to ask for help from you guys on the forum because when you figure out what my problem is, it is usually me doing something stupid (again). And this is the case once again. Bruce hit it on the head. I left out the "Define OSC 20" statement. I put this in and it now talks to the player just fine. I am using pins A.2 and A.3 (not A.4 - sorry about the typo). I even reverted back to using E.1 and E.2 and it still works just fine. It was that statement all along! Nothing to do with ST's (although I did learn something).

    Thanks so much for your help! No telling how long it would have taken me to find that since I was not looking in the right place. Always helps to have a fresh pair(s) of eyes to look at stuff! Hopefully, someone will learn from this as well.

    Thanks again!!!

  6. #6
    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 Atom058 View Post
    Ya know - I really cringe when I have to finally break down and have to ask for help from you guys on the forum because when you figure out what my problem is, it is usually me doing something stupid (again).
    We have all been there, and I bet I will be there again in an hour or two.
    This is what the forum is for.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. strange serout2 problem
    By KaanInal in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 7th January 2010, 10:33
  2. PIC stop responding - Strange Problem!
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 31st August 2009, 15:06
  3. strange problem 12f675
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 5th July 2007, 14:47
  4. Another Serin/Serout Problem!
    By jmbanales21485 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 7th June 2007, 17:26
  5. 16F628 on-chip eeprom problem
    By atomski in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 4th March 2004, 08:43

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