Serin


Closed Thread
Results 1 to 5 of 5

Thread: Serin

  1. #1
    Join Date
    Feb 2006
    Location
    france
    Posts
    47

    Default Serin

    Hello
    I want that the program has patience 20 seconds, if no data received, then it will write the data,

    Star: HIGH PORTB.7
    HIGH PORTA.3 'activation
    SERIN PORTA.2, T9600,20000, safe1, [“SYN”], code [0]
    GOTO safe

    safe1: code [0] = 12
    code [1] = 12

    safe: LOW PORTA.3
    FOR I = 0 TO 1
    LOOKUP2 codes [I], [48,49,50,51,52,53,54,55,56,57,42,35,45], datatx
    code [I] = datatx
    next I
    Thank you

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,859


    Did you find this post helpful? Yes | No

    Default

    I think you should set/reset somewhere the code [0] and code [1] to other value, say 0. After a failure on Serin they will always hold 12.

    Ioannis

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


    Did you find this post helpful? Yes | No

    Default

    Steve

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

  4. #4
    Join Date
    Feb 2006
    Location
    france
    Posts
    47


    Did you find this post helpful? Yes | No

    Default timeour

    Hello

    I modified this manner, and times it jump and of the times not
    Timeout con 20000

    star: serin PORTA.2, T9600, timeout, save1, [“SYN”], code [0], code [1]
    TOGGLE 7
    GOTO save
    Thank you

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


    Did you find this post helpful? Yes | No

    Default

    PIC# ?
    Schematic ?
    Steve

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

Similar Threads

  1. Serin EEPROM Programmer
    By dirtbiker5627 in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 24th February 2010, 23:48
  2. PIC16f877 code crosses boundary @800h
    By inventosrl in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th April 2009, 22:03
  3. Problem with PBP interrupt and Serin, please help
    By rgregor in forum mel PIC BASIC
    Replies: 0
    Last Post: - 22nd August 2006, 19:02
  4. Serin with low voltage
    By f_lez in forum General
    Replies: 3
    Last Post: - 21st August 2006, 11:52
  5. SerIn and SerOut
    By Dwayne in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 21st July 2004, 15:54

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