1Wire serial EEPROM, DS28EC20 and similar, any experience?


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Feb 2013
    Posts
    1,158


    Did you find this post helpful? Yes | No

    Default Re: 1Wire serial EEPROM, DS28EC20 and similar, any experience?

    I'm getting 16F887 for about 30 cents Ones you mentioned cost 10-20 times more

    For the I2C/SPI EEPROM I already had separate topics open with code posted, but nothing happened

    And 1 wire has it's own advantages - it needs 1 wire to work My current project uses TQFP-44 PIC16F887
    and there is LCD screen, DS3231, TM1639, keypad, USB PD trigger and whole bunch of various hardware
    attached to it, so in search for available pins, I have to do tricky things, like using piezo buzzer for alarm, and combining
    that pin with LCD enable pin

    Similarily, I have no issues with OTP ROM - all it has to do is contain static text strings and font data - no need to update
    it ever

    Oh by the way, I've implemented famous Casio VL-1 "Da da da" beeper rhythm playback with PBP, after I polish the code, will post it for public

  2. #2
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: 1Wire serial EEPROM, DS28EC20 and similar, any experience?

    Similarily, I have no issues with OTP ROM - all it has to do is contain static text strings and font data - no need to update
    it ever
    If you create Constant (CON) strings, you can store them categorically within a CALL/GOSUB routine. Using a Line variable (Line VAR BYTE) just set that to the text line needed.
    Code:
    Line VAR BYTE
    Language VAR BYTE
    String VAR BYTE[16] 'String buffer to hold ASCII text
    
    Main:
    Line = 1 'Welcome
    IF Language = 1 THEN 'English
     GOSUB Get_English
    ELSEIF Language = 2 THEN 'Spanish
     GOSUB Get_Spanish
    ELSEIF Language = 3 THEN 'German
     GOSUB Get_German
    ENDIF
    
    Get_English:
     SELECT CASE Line
      CASE = 1 : String = "Welcome"
      CASE = 2 : String = "Select Language"
      CASE = 3 : String = ...etc
     END SELECT
    RETURN
    
    Get_Spanish:
     SELECT CASE Line
      CASE = 1 : String = "Bienvenidos"
      CASE = 2 : String = "sel idioma"
      CASE = 3 : String = ...etc
     END SELECT
    RETURN
    
    Get_German:
     SELECT CASE Line
      CASE = 1 : String = "Willkommen"
      CASE = 2 : String = "Sprache auswählen"
      CASE = 3 : String = ...etc
    This should give you the idea.

Similar Threads

  1. Serial EEPROM
    By William in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 10th July 2009, 19:09
  2. something similar to DEC command
    By mischl in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 22nd May 2009, 00:24
  3. Problems with CRC8 Calc in 1Wire
    By JohnB in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 16th March 2007, 23:01
  4. what's similar to the 16f84a?
    By kenpo in forum General
    Replies: 11
    Last Post: - 18th February 2005, 19:26
  5. enumerate 1wire bus
    By justDIY in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 30th June 2004, 20:19

Members who have read this thread : 1

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