Yet another SERIN2 problem - Conversion from Basic Stamp


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Oct 2012
    Posts
    15


    Did you find this post helpful? Yes | No

    Default Re: Yet another SERIN2 problem - Conversion from Basic Stamp

    I'm trying all morning and still no good results.

    I tried your configs Robert and they do the same things as mine, at least I could't see any change.

    I had only to remove ANSELD = 0 because nothing worked with that.

    My serial lcd is connected to portd.1 and the serial TX - RX to portsD.2-3 and with ANSELD = 0 they don't work.

    My code gives only zeros to the variables and I can't understand why !!
    The code is very simple and straightforward and should work.

    I also changed the PIC (just in case...) and I also replaced 18F46K22 with 18F4520 and the same.

    LCD works OK, I can TX any byte I want and it's accepted by the receiver, but still I cannot read anything from the receiver.
    I'm putting a 10 years old BS2sx with the sample code and everything works fine.

    Anyone else knows what do I have to do to receive a hex string like this : ????

    $FE,$FE,$E0,$80,$03,$FR(1),$FR(2),$FR(3),$FR(4),$F R(5),$FD

    and i only need to read FR(1) to FR(5) ??

    Any help would be very much appreciated

    Fanis

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: Yet another SERIN2 problem - Conversion from Basic Stamp

    Just for hoots try setting up your serial Rx on a different port, say PortC, Port D has MSSP module & I THINK is also part of portE so there a bunch of tricky registers to set to make it plain old digital add to this D3 is AN23 sothere are analog issues too.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. PicBasic Pro to Basic Stamp conversion?
    By Kirk Fraser in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th March 2011, 07:49
  2. Basic Stamp BS2 replacement?
    By tenaja in forum Schematics
    Replies: 5
    Last Post: - 17th November 2009, 18:27
  3. SerIn2 ASCII Conversion
    By rwskinner in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 4th March 2008, 22:41
  4. Conversion Problem
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 18th March 2007, 13:09
  5. Conversion problem
    By NavMicroSystems in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 3rd March 2004, 19: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