16F877A HSERIN problem


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Try changing
    Code:
    DEFINE HSER_CLOERR 1 ' automatic clear overrun error
    to
    Code:
    DEFINE HSER_CLROERR 1 ' automatic clear overrun error
    the timeout may screw or not the whole thing, try to remove it first. Once you get it working, you may decide to use interrupt instead.

    If it was for me, i would probably use a single WAIT and parse the whole string at the end to validate the result.
    Last edited by mister_e; - 25th October 2006 at 15:55.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Hi Mister_E

    Unfortunatly no solution

    So i'm wondering if someone has a working code to receive multiple items
    in a row via Serin including the full configuration for the 16F877A

    I also changed the multiple Wait's by a single Wait statement and
    some Skip 1 's

    I also changed the baudrate to 2400bd as i was using a 4mhz clock

    than I even changed the crystal to 20 mhz and set the define osc 20

    I still measure the same pulses on the RX UART portc.7

    So i think something might be wrong with the configuration

    So No result i'm a bit lost now !!!

    I hope the serial specialists can help me

    Walter

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Who/what send the data to your PIC?

    What about if you skip the MAX232 and use SERIN/SERIN2/DEBUGIN instead?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Hi

    I use codestudio and it has a build in terminal program

    Still dont see where those pulses on the RX port com from

    Even if I disconnect the MAX232 there are some pulses

    I really think there is a config problem, I also asked the question to Mel
    from Melabs

    Any hints Welcome

    I even checked versions of PBP to be sure there are no updates
    i'm using 1.43

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

    Default

    How fast is the string repeated?

    After the labels TAR, ANT, AUX, EXT the values are ASCII or BINARY coming?

    Ioannis

  6. #6
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    I think everyone is looking past an important hint here. Those pulses on the uarts RX pin. Those pulses could be read as data accidentally and cause a problem. I've been there before.

    If you disable the UART, do the pulses disappear? What types of signals are near by (pin wise)? The goal is to find out what if anything connected to the pic or in the code would be causing the pulses you speak of. There is a chance this is just general noise if that is the case it needs to be suppressed.

  7. #7


    Did you find this post helpful? Yes | No

    Default

    Hi Dymoben and other

    No other signals nearby, it is generated by the PIC itself, clean negative going
    pulses aproximatly 25 uSecondes long or 40khz

    Walter

Similar Threads

  1. 16F877 HSERIN problem with 3th party software
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 11th March 2009, 18:11
  2. HSERIN problem
    By eggman in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 6th October 2007, 22:31
  3. Replies: 3
    Last Post: - 12th February 2007, 19:32
  4. 16F877a Interupt driven Hserin
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd November 2006, 01:38
  5. HSERIN problem
    By s_syafiq81 in forum Serial
    Replies: 2
    Last Post: - 1st January 2006, 12:05

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