Serin Not Recognizing Qualifier From Another PIC


Closed Thread
Results 1 to 24 of 24

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    Did you find this post helpful? Yes | No

    Default Re: Serin Not Recognizing Qualifier From Another PIC

    you misunderstand how the qualifier works

    this can not work as you set the qualifier to 0x0d as per my example , ProgIDRx will always be 0x0d
    untill you change it , serin will never change it

    if ProgIDRx = $A then ' Match Programmer ID ;;// will always fail

    this time out loop is pointless in this example as serin with [a qualifier ] will always block until the input qualifier is received
    Serin PrgIn,1,5000,MainLoop,[ProgIDRx],IDByteRx ' Check for new I.D.


    this will do the same thing
    MainLoop:
    Serin PrgIn,1,[ProgIDRx],IDByteRx ' Check for new I.D.
    IDByte = IDByteRx
    Write 1, IDByte
    Z1Alarm = 1 : Z2Alarm = 1 ' Confirm programing Subroutine
    pause 500
    Z1Alarm = 0 : Z2Alarm = 0
    pause 1000
    Z1Alarm = 1 : Z2Alarm = 1 'Confirm in programing mode
    pause 1000
    Z1Alarm = 0 : Z2Alarm = 0
    endif
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; START ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    goto MainLoop


    I added your modifications and still couldn't get it to work.
    note i used 0x0d AS a qualifier as its easer to use than 0x0a in proteus simulator
    u need to either change it back to 0x0a or alter the tx code to match








    BTW, why the GPIO=0? Does that clear all GPIO ports, I presume

    yes because at power up the alarm leds could be in any random state if you don't



    Last edited by richard; - 19th April 2024 at 06:12.
    Warning I'm not a teacher

Similar Threads

  1. RF Module Qualifier, CRC?
    By tazntex in forum Serial
    Replies: 14
    Last Post: - 22nd March 2010, 17:15
  2. HSERIN qualifier
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 14th December 2009, 12:53
  3. ICSP not recognizing..
    By sirvo in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 11th June 2008, 21:31
  4. recognizing a serin2 string
    By ehertz in forum Serial
    Replies: 2
    Last Post: - 9th September 2006, 04:24
  5. Herin Qualifier
    By MORAND in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 5th May 2004, 17:56

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