Serin EEPROM Programmer


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    SERIN doesn't need square bracket. Within bracket you will place the qualifier, not the variable.

    Code:
     
    serin GPIO.1, 6, [val]
    
     serin GPIO.1, 6, val
    Al.
    Last edited by aratti; - 24th February 2010 at 22:01.
    All progress began with an idea

  2. #2
    Join Date
    Feb 2010
    Location
    Albuquerque
    Posts
    19


    Did you find this post helpful? Yes | No

    Default Reply

    I took the Brackets off the SERIN command and it still does not work.

  3. #3
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    The USB2SER is not able to program BASIC Stamp® microcontroller modules. BASIC Stamp modules
    require an inverted signal. If you need to program a BASIC Stamp use the FTDI USB to Serial Adapter
    The above is from USB2SER data sheet, and it seems you should use TRUE STATE. Tray to change to:

    serin GPIO.1, 2, val

    and

    serout GPIO.2, 2, [val]


    (see PBP manual pag 130)

    Al.
    Last edited by aratti; - 24th February 2010 at 23:27.
    All progress began with an idea

  4. #4
    Join Date
    Feb 2010
    Location
    Albuquerque
    Posts
    19


    Did you find this post helpful? Yes | No

    Default Figured it out

    I hooked up the serial input from my pc and tested it on my oscilloscope. What I got was not a serial data string but something similar to a triangular waveform. I looked up the datasheet for the ftdi chip. I fixed it by adding a pulldown resistor to the output of the ftdi chip. Thanks for everybodys help.

    Code:
    val var byte
    
    TRISIO = %00000010
    CMCON0 = 7
    ANSEL  = %00000000
    main:
        serin GPIO.1, 6, val
        if (val = "a") then ser
    goto main
    
    ser:
    Serout GPIO.2, 6, ["Got a"]
    pause 10
    goto main

Similar Threads

  1. Can't read sequential addresses in external EEPROM
    By tjkelly in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th February 2010, 15:46
  2. Problem with I2C EEPROM addressing
    By Atom058 in forum General
    Replies: 14
    Last Post: - 3rd November 2009, 04:17
  3. Data EEPROM gets clobbered during programming
    By BrianT in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th July 2008, 03:46
  4. How to write/read strings EEPROM/LCD
    By g-hoot in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 11th February 2007, 07:26
  5. word variable to 25lc640
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th July 2004, 20:59

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