Shop OBEX P1 Docs P2 Docs Learn Events
Quick question — Parallax Forums

Quick question

ArchiverArchiver Posts: 46,084
edited 2001-02-05 17:49 in General Discussion
When storing a 16bit word to the internal EEPROM of the stamp I use
the line

cont data word EEaddr

this stores the two bytes into two EEPROM addresses. My question is
that when I use the READ command do I need to cycle through the two
EEPROM addresses or will it read both bytes using this line

READ cont,EEaddr

Andy

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-11-13 23:13
    You need to cycle through the two addresses for example:
    READ location,note.highbyte 'read high byte and put in note word
    READ location+1,note.lowbyte 'read low byte and put in note word


    >From: "Andy Schwarz" <phyaks@p...>
    >Reply-To: basicstamps@egroups.com
    >To: basicstamps@egroups.com
    >Subject: [noparse][[/noparse]basicstamps] Quick question
    >Date: Mon, 13 Nov 2000 10:22:07 -0000
    >
    >When storing a 16bit word to the internal EEPROM of the stamp I use
    >the line
    >
    >cont data word EEaddr
    >
    >this stores the two bytes into two EEPROM addresses. My question is
    >that when I use the READ command do I need to cycle through the two
    >EEPROM addresses or will it read both bytes using this line
    >
    >READ cont,EEaddr
    >
    >Andy
    >
    >
    >
    >

    _________________________________________________________________________
    Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

    Share information about yourself, create your own public profile at
    http://profiles.msn.com.
  • ArchiverArchiver Posts: 46,084
    edited 2001-02-05 10:04
    Another quickie for you guys.
    Ive noticed in my reading that most electronics parts have a number code
    associated with them that everyone else knows but me. Such as "use a small
    signal diode here, a 1N914 should do fine".
    Where do I get such a list of what numbers correspond to what parts? I got
    a grab bag from jamco and I need to find out what half of this junk is. I
    highly recommend these grab bags by the way. Dirt cheap compared to buying
    your parts one by one with the only drawback of being in my situation and
    not knowing what some of these parts are!!

    Thanks again guys

    Cy Brown
  • ArchiverArchiver Posts: 46,084
    edited 2001-02-05 15:44
    This is largely experience-based.

    Here are a few common ones most people eventually learn (everyone will have
    their favorites):

    1N914 or 1N4148 - small signal Si diodes
    1N400X - power diode where X is amperage (1N4001 is 1A, etc.)
    2N2222, 2N2222A, etc. - General purpose NPN transistor; good for a switch
    2N3904 - General purpose NPN transistor; similar to 2N2222
    2N3906 - Same as 2N3904 but PNP
    78XX - Voltage regulator (7805 is 5V); good to about 1A
    78LXX - Same as 78XX but small case 100mA
    79XX - Like 78XX but negative (7905 is -5V)
    741 - General purpose op amp (not a very good one either)
    555 - Timer building block -- make oscillators, one shots, anything with a
    pulse
    MAX232 - Maxim IC to convert RS232 to/from TTL with a 5V supply
    MAX232A - Same as MAX232 but uses smaller caps
    MAX233 - Same as MAX232 but uses no caps

    For unknown parts try www.icmaster.com for the pinouts. Or try
    http://www.xs4all.nl/~ganswijk/chipdir/. A fee based service is at Another
    good site: http://www.chipdocs.com/. Some times you can cross to NTE,
    although sometimes the NTE part is overrated compared to your part (in other
    words, a transistor with Ic=500mA could sub for one with a 400mA rating --
    maybe your part has 400mA). Look at http://www.nteinc.com/cgi-bin/nte

    Hope that helps.

    Al Williams
    AWC
    * Floating point math for the Stamp, PIC, SX, or any microcontroller at
    http://www.al-williams.com/awce/pak1.htm

    >
    Original Message
    > From: Cy Brown [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=tuvRWDKcDdWqT6QOlpOlKVy2JHrNjqMZgXfLVaWorbx2Rvay4LPnZZvk2q23tBvPAxysUL2qHa4UAU1J]bushman@t...[/url
    > Sent: Monday, February 05, 2001 4:05 AM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Quick Question
    >
    >
    > Another quickie for you guys.
    > Ive noticed in my reading that most electronics parts have a number code
    > associated with them that everyone else knows but me. Such as
    > "use a small
    > signal diode here, a 1N914 should do fine".
    > Where do I get such a list of what numbers correspond to what
    > parts? I got
    > a grab bag from jamco and I need to find out what half of this junk is. I
    > highly recommend these grab bags by the way. Dirt cheap compared
    > to buying
    > your parts one by one with the only drawback of being in my situation and
    > not knowing what some of these parts are!!
    >
    > Thanks again guys
    >
    > Cy Brown
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-02-05 16:49
    Excellent list.

    A clarifican on the 1N400x series diodes. These are 1A rectifier
    diodes. The x is an indication of the peak reverse voltage (PRV)
    rating. If I remember right, the 1N4001 is rated at 50PRV and is goes
    up to 1000PRV for the 1N4007. Maybe someone can dig up the specs.

    Regards,
    Adolph Stumpf


    --- In basicstamps@y..., "Al Williams" <alw@a...> wrote:
    > This is largely experience-based.
    >
    > Here are a few common ones most people eventually learn (everyone
    will have
    > their favorites):
    >
    > 1N914 or 1N4148 - small signal Si diodes
    > 1N400X - power diode where X is amperage (1N4001 is 1A, etc.)
    > 2N2222, 2N2222A, etc. - General purpose NPN transistor; good for a
    switch
    > 2N3904 - General purpose NPN transistor; similar to 2N2222
    > 2N3906 - Same as 2N3904 but PNP
    > 78XX - Voltage regulator (7805 is 5V); good to about 1A
    > 78LXX - Same as 78XX but small case 100mA
    > 79XX - Like 78XX but negative (7905 is -5V)
    > 741 - General purpose op amp (not a very good one either)
    > 555 - Timer building block -- make oscillators, one shots, anything
    with a
    > pulse
    > MAX232 - Maxim IC to convert RS232 to/from TTL with a 5V supply
    > MAX232A - Same as MAX232 but uses smaller caps
    > MAX233 - Same as MAX232 but uses no caps
    >
    > For unknown parts try www.icmaster.com for the pinouts. Or try
    > http://www.xs4all.nl/~ganswijk/chipdir/. A fee based service is at
    Another
    > good site: http://www.chipdocs.com/. Some times you can cross to
    NTE,
    > although sometimes the NTE part is overrated compared to your part
    (in other
    > words, a transistor with Ic=500mA could sub for one with a 400mA
    rating --
    > maybe your part has 400mA). Look at
    http://www.nteinc.com/cgi-bin/nte
    >
    > Hope that helps.
    >
    > Al Williams
    > AWC
    > * Floating point math for the Stamp, PIC, SX, or any microcontroller
    at
    > http://www.al-williams.com/awce/pak1.htm
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-02-05 17:49
    Whoops. You are right of course. 50V, 100V, 200V, 400V, 500V (up to 4005).

    Sorry about that!

    Al Williams
    AWC
    Stamp project of the Month: http://www.al-williams.com/awce/som.htm

    >
    Original Message
    > From: apstumpf@u... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=J5SO4OiyOpvJnsXsvlG9rDfJMPyy-i3rahF3hLRpqjszpIvnSOKnithsRWmmGQcX4mYNcGC6c96RpOQTB_Y]apstumpf@u...[/url
    > Sent: Monday, February 05, 2001 10:49 AM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Re: Quick Question
    >
    >
    > Excellent list.
    >
    > A clarifican on the 1N400x series diodes. These are 1A rectifier
    > diodes. The x is an indication of the peak reverse voltage (PRV)
    > rating. If I remember right, the 1N4001 is rated at 50PRV and is goes
    > up to 1000PRV for the 1N4007. Maybe someone can dig up the specs.
    >
    > Regards,
    > Adolph Stumpf
    >
    >
    > --- In basicstamps@y..., "Al Williams" <alw@a...> wrote:
    > > This is largely experience-based.
    > >
    > > Here are a few common ones most people eventually learn (everyone
    > will have
    > > their favorites):
    > >
    > > 1N914 or 1N4148 - small signal Si diodes
    > > 1N400X - power diode where X is amperage (1N4001 is 1A, etc.)
    > > 2N2222, 2N2222A, etc. - General purpose NPN transistor; good for a
    > switch
    > > 2N3904 - General purpose NPN transistor; similar to 2N2222
    > > 2N3906 - Same as 2N3904 but PNP
    > > 78XX - Voltage regulator (7805 is 5V); good to about 1A
    > > 78LXX - Same as 78XX but small case 100mA
    > > 79XX - Like 78XX but negative (7905 is -5V)
    > > 741 - General purpose op amp (not a very good one either)
    > > 555 - Timer building block -- make oscillators, one shots, anything
    > with a
    > > pulse
    > > MAX232 - Maxim IC to convert RS232 to/from TTL with a 5V supply
    > > MAX232A - Same as MAX232 but uses smaller caps
    > > MAX233 - Same as MAX232 but uses no caps
    > >
    > > For unknown parts try www.icmaster.com for the pinouts. Or try
    > > http://www.xs4all.nl/~ganswijk/chipdir/. A fee based service is at
    > Another
    > > good site: http://www.chipdocs.com/. Some times you can cross to
    > NTE,
    > > although sometimes the NTE part is overrated compared to your part
    > (in other
    > > words, a transistor with Ic=500mA could sub for one with a 400mA
    > rating --
    > > maybe your part has 400mA). Look at
    > http://www.nteinc.com/cgi-bin/nte
    > >
    > > Hope that helps.
    > >
    > > Al Williams
    > > AWC
    > > * Floating point math for the Stamp, PIC, SX, or any microcontroller
    > at
    > > http://www.al-williams.com/awce/pak1.htm
    > >
    >
    >
    >
    >
Sign In or Register to comment.