EmbeddedRelated.com
Forums

How to interface MSP430 chips with 5V devices?

Started by calin_dorohoi November 17, 2004
I have to interface with:

1. An IR sensor.
2. An alphanumerical LCD display.
3. An IDE bus.

--- In msp430@msp4..., onestone <onestone@b...> wrote:
> 1. Most peripherals are available in 3V versions
now. The only thing I 
> can't easily find are 3V gyros, and Honeywells HMC1053. other sensors 
> are no issue. Other logic is all available in one form.
> 
> 2. Provided there is no real current requirement, ie signals are just 
> for control and communication, then current limiting resistors are more 
> than enough.
> 
> Al
> 
> calin_dorohoi wrote:
> 
> > 
> > Unfortunately I have to interface a lot of pins. Thanks for the links.
> > 
> > --- In msp430@msp4..., Bogdan Marinescu 
> > <bogdan.marinescu@g...> wrote:
> > 
> >>Sorry, but I almost forgot about this:
> >>
> >>http://www.interfacebus.com/Design_Translation.html
> >>
> >>
> >>On Thu, 18 Nov 2004 10:38:19 +0200, Bogdan Marinescu
> >><bogdan.marinescu@g...> wrote:
> >>
> >>>Maybe this helps:
> >>>
> >>>http://www.pjrc.com/tech/mp3/sta013.html
> >>>
> >>>Or maybe this (requires two transistors per connection though):
> >>>
> >>>http://www.edn.com/archives/1996/110796/23DI_02.htm
> >>>
> >>>If you need to do level shifting for a large number of signals
(for
> >>>example a bus) you should consider using something like a
74LCX245
> >>>buffer (I think 74LCV245 would also work in this case, but
I'm not
> >>>very sure).
> >>>
> >>>Bogdan
> >>>
> >>>
> >>>
> >>>On Wed, 17 Nov 2004 23:22:29 -0800 (PST), avram ionut
> >>><avramionut_m@y...> wrote:
> >>>
> >>>>contact me on my yahoo im or 0722938847 if you need to
discuss a
> > 
> > particular schematic
> > 
> >>>>calin_dorohoi <calin_dorohoi@y...> wrote:
> >>>>
> >>>>Hi all
> >>>>
> >>>>I have to start a project with a MSP430 chip soon and
I'm new to
> > 
> > this
> > 
> >>>>microcontroller. Since I'll have to interface it with
5V devices (5V
> >>>>oututs AND inputs), I'm wondering what's the best
wayto do this?
> > 
> > Use a
> > 
> >>>>bus switch or can it be done in a simpler way? Thanks.
> >>>>
> >>>>CalinD
> >>>>
> >>>>.
> >>>>
> >>>>Yahoo! Groups Sponsor
> >>>>Get unlimited calls to
> >>>>
> >>>>U.S./Canada
> >>>>
> >>>>---------------------------------
> >>>>Yahoo! Groups Links
> >>>>
> >>>>   To visit your group on the web, go to:
> >>>>http://groups.yahoo.com/group/msp430/
> >>>>
> >>>>   .
> >>>>
> >>>>   Your use of Yahoo! Groups is subject to the Yahoo! Terms
of
> > 
> > Service.
> > 
> >>>>---------------------------------
> >>>>Do you Yahoo!?
> >>>> Discover all that's new in My Yahoo!
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>.
> >>>>
> >>>>
> >>>>Yahoo! Groups Links
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>>--
> >>>Bogdan
> >>>
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > .
> > 
> >  
> > Yahoo! Groups Links
> > 
> > 
> > 
> >  
> > 
> > 
> > 
> >




Beginning Microcontrollers with the MSP430

I use displays from Winstar that are readily available in 3V versions. I 
pay approximately US$5 for a small format 20x4, and about $7 for a very 
large format 16 x 2.

I use a lot of IR sensors, mainly transistorised types. Depending upon 
the response you need 3V should be no problem. If it's a pre-packaged 
type I would expect that TAOS or Honeywell would have 3V vesions.

Haven't needed to interface to an IDE bus for many years. I keep 
everything external to the PC now, and use RS232, USB or ethernet to 
talk to the PC, so I can't remember what the levels and drive 
requirements are, but I wouldn't expect you to have much trouble just 
using current limiting resistors. If you were uncomfortable with this 
you could add something like an SP720AB active clamp between the current 
limiting resistor and any inputs (outputs should be quite safe). This 
would clamp any incoming signals, including spikes, without risk of 
overloading the port pin protection.

Al

calin_dorohoi wrote:

> 
> I have to interface with:
> 
> 1. An IR sensor.
> 2. An alphanumerical LCD display.
> 3. An IDE bus.
> 
> --- In msp430@msp4..., onestone <onestone@b...> wrote:
> 
>>1. Most peripherals are available in 3V versions now. The only thing I 
>>can't easily find are 3V gyros, and Honeywells HMC1053. other
sensors 
>>are no issue. Other logic is all available in one form.
>>
>>2. Provided there is no real current requirement, ie signals are just 
>>for control and communication, then current limiting resistors are more 
>>than enough.
>>
>>Al
>>
>>calin_dorohoi wrote:
>>
>>
>>>Unfortunately I have to interface a lot of pins. Thanks for the
links.
>>>
>>>--- In msp430@msp4..., Bogdan Marinescu 
>>><bogdan.marinescu@g...> wrote:
>>>
>>>
>>>>Sorry, but I almost forgot about this:
>>>>
>>>>http://www.interfacebus.com/Design_Translation.html
>>>>
>>>>
>>>>On Thu, 18 Nov 2004 10:38:19 +0200, Bogdan Marinescu
>>>><bogdan.marinescu@g...> wrote:
>>>>
>>>>
>>>>>Maybe this helps:
>>>>>
>>>>>http://www.pjrc.com/tech/mp3/sta013.html
>>>>>
>>>>>Or maybe this (requires two transistors per connection
though):
>>>>>
>>>>>http://www.edn.com/archives/1996/110796/23DI_02.htm
>>>>>
>>>>>If you need to do level shifting for a large number of
signals (for
>>>>>example a bus) you should consider using something like a
74LCX245
>>>>>buffer (I think 74LCV245 would also work in this case, but
I'm not
>>>>>very sure).
>>>>>
>>>>>Bogdan
>>>>>
>>>>>
>>>>>
>>>>>On Wed, 17 Nov 2004 23:22:29 -0800 (PST), avram ionut
>>>>><avramionut_m@y...> wrote:
>>>>>
>>>>>
>>>>>>contact me on my yahoo im or 0722938847 if you need to
discuss a
>>>
>>>particular schematic
>>>
>>>
>>>>>>calin_dorohoi <calin_dorohoi@y...> wrote:
>>>>>>
>>>>>>Hi all
>>>>>>
>>>>>>I have to start a project with a MSP430 chip soon and
I'm new to
>>>
>>>this
>>>
>>>
>>>>>>microcontroller. Since I'll have to interface it
with 5V devices (5V
>>>>>>oututs AND inputs), I'm wondering what's the
best wayto do this?
>>>
>>>Use a
>>>
>>>
>>>>>>bus switch or can it be done in a simpler way? Thanks.
>>>>>>
>>>>>>CalinD
>>>>>>
>>>>>>.
>>>>>>
>>>>>>Yahoo! Groups Sponsor
>>>>>>Get unlimited calls to
>>>>>>
>>>>>>U.S./Canada
>>>>>>
>>>>>>---------------------------------
>>>>>>Yahoo! Groups Links
>>>>>>
>>>>>>  To visit your group on the web, go to:
>>>>>>http://groups.yahoo.com/group/msp430/
>>>>>>
>>>>>>  .
>>>>>>
>>>>>>  Your use of Yahoo! Groups is subject to the Yahoo!
Terms of
>>>
>>>Service.
>>>
>>>
>>>>>>---------------------------------
>>>>>>Do you Yahoo!?
>>>>>>Discover all that's new in My Yahoo!
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>.
>>>>>>
>>>>>>
>>>>>>Yahoo! Groups Links
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>--
>>>>>Bogdan
>>>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>.
>>>
>>> 
>>>Yahoo! Groups Links
>>>
>>>
>>>
>>> 
>>>
>>>
>>>
>>>
> 
> 
> 
> 
> 
> 
> 
> .
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 


Al hi,
 
Sorry to barge in, but I was interested to see that there is in fact 3V LCD
character modules and immediately checked out their site.  I could not find
any info where to get them, can I order them online somewhere for test
purposes?  Are they HD44780 based?
 
Regards, Omer

  _____  

From: onestone [mailto:onestone@ones...] 
Sent: Friday, November 19, 2004 11:04 PM
To: msp430@msp4...
Subject: Re: [msp430] Re: How to interface MSP430 chips with 5V devices?


I use displays from Winstar that are readily available in 3V versions. I 
pay approximately US$5 for a small format 20x4, and about $7 for a very 
large format 16 x 2.
 .
 .
 .
 





Omer YALHI wrote:
> Sorry to barge in, but I was interested to see
that there is in fact 3V LCD
> character modules and immediately checked out their site.  I could not find
> any info where to get them, can I order them online somewhere for test
> purposes?  Are they HD44780 based?

I also just had a look at their site and one of their graphics displays 
sounds ideal for an upcoming project of mine. I've sent them an email 
asking about availability and prices etc. Hopefully they're not another 
one of those suppliers who won't sell less than several hundred at a
time...

-- 
------------ Alex Holden - http://www.linuxhacker.org ------------
If it doesn't work, you're not hitting it with a big enough hammer

Hi Omer, yes they are compatible with HD44780. Very good devices. I also 
use their mono graphic and colour gaphic panels. The particular model of 
character unit I use is WH2004D-TMI-ET 20 x 4 small format LED backlit. 
You may pay a little more than $5. I buy mine through a german friend 
who lives and travels extensively around Asia. He buys in 100 lots. 
Although I only bought 10 of these last time. I think the lady he talks 
to is julie. The graphics displays have built in negative contrast 
voltage supplies. Very useful. They have a pot on board, so add an NTC 
and you have simple temperature compensated contrast.

If you don't have any success let me know and I'll see if I can make 
contact for you.

Al

Omer YALHI wrote:

> Al hi,
>  
> Sorry to barge in, but I was interested to see that there is in fact 3V LCD
> character modules and immediately checked out their site.  I could not find
> any info where to get them, can I order them online somewhere for test
> purposes?  Are they HD44780 based?
>  
> Regards, Omer
> 
>   _____  
> 
> From: onestone [mailto:onestone@ones...] 
> Sent: Friday, November 19, 2004 11:04 PM
> To: msp430@msp4...
> Subject: Re: [msp430] Re: How to interface MSP430 chips with 5V devices?
> 
> 
> I use displays from Winstar that are readily available in 3V versions. I 
> pay approximately US$5 for a small format 20x4, and about $7 for a very 
> large format 16 x 2.
>  .
>  .
>  .
>  
> 
> 
> 
> 
> 
> 
> 
> .
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 


Alex I buy in very small quantities. Even the guy I buy through often 
just orders 20 - 50 at a time. They are very lacking (like many 
Taiwanese companies), in hard technical data, but the interface is basic 
HD44780. The Graphics displays are nice. I use the 320x240 with built in 
SED1335 and contrast voltage supply, with 3V Vcc. I simply swapped it 
for an old Hyundai 256 x 128 HY25501G, modifed the timing registers to 
suit and off I went. But be aware the contrast changes markedly as you 
enable more row drivers. ie it will actually display as a 256 x 128 
display, although skewed, but when you change the framing the image 
disappears. It is simply Vo load changing.

Al

Alex Holden wrote:

> Omer YALHI wrote:
> 
>>Sorry to barge in, but I was interested to see that there is in fact 3V
LCD
>>character modules and immediately checked out their site.  I could not
find
>>any info where to get them, can I order them online somewhere for test
>>purposes?  Are they HD44780 based?
> 
> 
> I also just had a look at their site and one of their graphics displays 
> sounds ideal for an upcoming project of mine. I've sent them an email 
> asking about availability and prices etc. Hopefully they're not
another 
> one of those suppliers who won't sell less than several hundred at a
time...
> 


onestone wrote:
> Alex I buy in very small quantities. Even the guy
I buy through often 
> just orders 20 - 50 at a time. They are very lacking (like many 
> Taiwanese companies), in hard technical data, but the interface is basic 
> HD44780. The Graphics displays are nice. I use the 320x240 with built in 
> SED1335 and contrast voltage supply, with 3V Vcc. I simply swapped it 
> for an old Hyundai 256 x 128 HY25501G, modifed the timing registers to 
> suit and off I went. But be aware the contrast changes markedly as you 
> enable more row drivers. ie it will actually display as a 256 x 128 
> display, although skewed, but when you change the framing the image 
> disappears. It is simply Vo load changing.

Sounds good. The one I'm interested in is the WX320240C (320x240 pixels, 
94.7mm x 71.7mm, with SED1335). The displays I've found before this one 
have all been physically too big for my app, too low resolution 
(128x64), or weren't available in small quantities. Roughly how much are 
you paying for the 320x240 displays if you don't mind me asking?

-- 
------------ Alex Holden - http://www.linuxhacker.org ------------
If it doesn't work, you're not hitting it with a big enough hammer

I use the WG320240C, which I pay US$66.70 for in low volume (like 10). I 
don't have prices for the others. I didn't pay for the two colour
panels 
I have, they were samples from the last Taiwan show. I don't know how 
this compares for you, but it is a third the price the local disti used 
to charge for the Hyundai part, and well under half any other quote for 
low volumes.

Al

Alex Holden wrote:

> onestone wrote:
> 
>>Alex I buy in very small quantities. Even the guy I buy through often 
>>just orders 20 - 50 at a time. They are very lacking (like many 
>>Taiwanese companies), in hard technical data, but the interface is basic

>>HD44780. The Graphics displays are nice. I use the 320x240 with built in

>>SED1335 and contrast voltage supply, with 3V Vcc. I simply swapped it 
>>for an old Hyundai 256 x 128 HY25501G, modifed the timing registers to 
>>suit and off I went. But be aware the contrast changes markedly as you 
>>enable more row drivers. ie it will actually display as a 256 x 128 
>>display, although skewed, but when you change the framing the image 
>>disappears. It is simply Vo load changing.
> 
> 
> Sounds good. The one I'm interested in is the WX320240C (320x240
pixels, 
> 94.7mm x 71.7mm, with SED1335). The displays I've found before this
one 
> have all been physically too big for my app, too low resolution 
> (128x64), or weren't available in small quantities. Roughly how much
are 
> you paying for the 320x240 displays if you don't mind me asking?
> 


Al thank you for the input.  I am interested in converting a project from
PIC18F452 to MSP430F449 which uses 20x4 character LCD (5V).  I'll email
them
and see what happens.
 
Regards, Omer


  _____  

From: onestone [mailto:onestone@ones...] 
Sent: Saturday, November 20, 2004 12:55 AM
To: msp430@msp4...
Subject: Re: [msp430] Re: How to interface MSP430 chips with 5V devices?


Hi Omer, yes they are compatible with HD44780. Very good devices. I also 
use their mono graphic and colour gaphic panels. The particular model of 
character unit I use is WH2004D-TMI-ET 20 x 4 small format LED backlit. 
You may pay a little more than $5. I buy mine through a german friend 
who lives and travels extensively around Asia. He buys in 100 lots. 
Although I only bought 10 of these last time. I think the lady he talks 
to is julie. The graphics displays have built in negative contrast 
voltage supplies. Very useful. They have a pot on board, so add an NTC 
and you have simple temperature compensated contrast.

If you don't have any success let me know and I'll see if I can make 
contact for you.

Al






If you get really stuck email me. Up until I sourced these parts I ran 
all my displays on 5V, and just used current limiting resistors in the 
I/O lines. These systems run 24 hours a day, and there are thousands 
that have been running for 4 years now, so this is safe.

Al

Omer YALHI wrote:

> Al thank you for the input.  I am interested in
converting a project from
> PIC18F452 to MSP430F449 which uses 20x4 character LCD (5V).  I'll
email them
> and see what happens.
>  
> Regards, Omer
> 
> 
>   _____  
> 
> From: onestone [mailto:onestone@ones...] 
> Sent: Saturday, November 20, 2004 12:55 AM
> To: msp430@msp4...
> Subject: Re: [msp430] Re: How to interface MSP430 chips with 5V devices?
> 
> 
> Hi Omer, yes they are compatible with HD44780. Very good devices. I also 
> use their mono graphic and colour gaphic panels. The particular model of 
> character unit I use is WH2004D-TMI-ET 20 x 4 small format LED backlit. 
> You may pay a little more than $5. I buy mine through a german friend 
> who lives and travels extensively around Asia. He buys in 100 lots. 
> Although I only bought 10 of these last time. I think the lady he talks 
> to is julie. The graphics displays have built in negative contrast 
> voltage supplies. Very useful. They have a pot on board, so add an NTC 
> and you have simple temperature compensated contrast.
> 
> If you don't have any success let me know and I'll see if I can
make 
> contact for you.
> 
> Al
> 
> 
> 
> 
> 
> 
> 
> 
> .
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
>