PIC hangs after interrupt when FT232RL is connected


+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,973

    Question PIC hangs after interrupt when FT232RL is connected

    I bought one of these boards on amazon to help with debugging:

    Name:  FT232RL.png
Views: 332
Size:  221.0 KB

    https://www.amazon.ca/gp/product/B075N82CDL/


    The PIC hangs after the first timer interrupt is triggered. The FT232 is connected to VSS and TX/RX which is wired to and RX/TX on a 2nd PIC (4K7 pull-ups).

    If I unplug the USB cable and reset the circuit, the PIC starts up and loops as expected.

    Is there something we should be aware of when using these?
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,514


    Did you find this post helpful? Yes | No

    Default Re: PIC hangs after interrupt when FT232RL is connected

    What steps did you take to make the output of the adapter open collector so that it won't clash with the pics outputs on your bus.?
    Are you sure it's correctly connected, arduino things are often labelled to show the arduino pin they connect to, making rx the output tx the input
    Warning I'm not a teacher

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,973


    Did you find this post helpful? Yes | No

    Default Re: PIC hangs after interrupt when FT232RL is connected

    Quote Originally Posted by richard View Post
    What steps did you take to make the output of the adapter open collector so that it won't clash with the pics outputs on your bus.? ...
    None that I know of. I'm using the Serial Communicator from MCSP+ 5.0.0.5. on the PC side.


    Quote Originally Posted by richard View Post
    ... Are you sure it's correctly connected, arduino things are often labelled to show the arduino pin they connect to, making rx the output tx the input
    The adapter has RX/TX labels. I connected them in relation to the PC - not the PIC.


    I reconnected the whole circuit now, and it works...? I don't know why, I didn't change anything except recompiled with the HSEROUTs enabled again.

    1. The only difference is that I rebooted the PC today. The only thing I can imagine is that the adapter was somehow disturbing the PIC USART even if it was only sending, there is no HSERIN code.

    2. I have noticed recently that I have to shut MCSP+ down because it no longer sees INCLUDES and stuff like that (I can't remember what exactly). I would just restart MCSP= and the compile would work without errors.


    I hate intermittent problems...
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  4. #4
    Join Date
    Sep 2009
    Posts
    750


    Did you find this post helpful? Yes | No

    Default Re: PIC hangs after interrupt when FT232RL is connected

    There is probablu RX interupt when connected, and it is not handled correctly for what ever reason.

Similar Threads

  1. Replies: 5
    Last Post: - 28th January 2011, 14:21
  2. Replies: 0
    Last Post: - 1st September 2008, 08:03
  3. PIC HANGS with SERIN and Timeout?
    By koossa in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 18th January 2008, 18:33
  4. Any sample FTDI FT232RL or FT232BM code?
    By TonyA in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 23rd April 2007, 19:04
  5. PIC Hangs when using Serin TimeOut
    By Squibcakes in forum Serial
    Replies: 2
    Last Post: - 20th July 2006, 02:59

Members who have read this thread : 9

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