Simple But Nothing


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Sep 2003
    Location
    Vermont
    Posts
    373


    Did you find this post helpful? Yes | No

    Default

    I still don't understand. The way you have it written, SWITCH is a variable you are getting from your SERIN routine?? So, I will assume that you are setting a bit on the transmit side on say...portb. Then you are reading portb, and sending it as a variable. On the receive side just make PORTB = SWITCH.

    Now open the PBP manual and look up SERIN. There should be an example of a wait statement. If not, use SERIN2. Copy it verbatim and do not substitute "[" for "(" or vice versa. If you don't, don't be at a loss why it does not work. These things are fussy about syntax.

    Ron

  2. #2


    Did you find this post helpful? Yes | No

    Default

    yes switch is a variable (switch contacts on xmtr)

    like I say, the software as I have shown....

    SHOULD WORK

    why it doesn't has me perplexed.

    switch or switch.0 same thing....may be redundant but that's not what I need to know.

  3. #3
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi Michael,

    I thought I had an idea but I didn't read enough of the datasheet.

    BobK
    Last edited by BobK; - 22nd February 2006 at 03:34.

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Well, as it turns out, the code on this post was fine and it works with no problem. I don't want to seem like a bozo so I had to post the facts. As it turns out, it was the problems I was having with my new EPIC programmer and trying to install meprog.

    I discussed it with Jeff at Melabs and he confirmed there has been "some" compatibility problems.

    I spent 2 days trying to get meprog to work right and it's what I was using when I tried to program the code in this post.

    EPICwin on the other hand is flawless and I can look forward to learning from all of you and enjoying these 16F628 chips that were recommended.

    Sure beats the OTP parts.

    FYI.

Similar Threads

  1. Simple RF remote control code
    By Bruce in forum Code Examples
    Replies: 13
    Last Post: - 22nd January 2014, 10:45
  2. Simple Blinking LED - WTF!!
    By johnnylynx in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 1st February 2010, 06:19
  3. Simple LCD code not working!...WHY?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th November 2009, 19:48
  4. Replies: 0
    Last Post: - 2nd February 2009, 23:23
  5. Replies: 4
    Last Post: - 7th September 2005, 14:11

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