Chip with simple program for Toy

Thank you very much for that, I will plod on with that and see what i
can come up with. If i have any problems i will let you know.
 
"koko" <joanneo0322@gmail.com> wrote in message
news:1163406208.449940.267000@m73g2000cwd.googlegroups.com...
New York - American chocolate lovers in growing numbers are discovering
how to pander to their

addiction and simultaneously help the environment by buying organically
certified chocolate.

So, again ! Is this one of the new marketing gimmick or does this
co-called organic chocolate

really make a different ?
No, and it so far off topic that it is _____________.
 
javithkhan@ gmail.com wrote:
what is bluetooth

Michael A. Terrell wrote
What is Google?

amdx wrote:
Google is a search engine, you type in a keyword
(hint, try bluetooth)
If it is something you want defined:
http://www.google.com/search?q=define:bluetooth
 
Tim Auton wrote:
Costas Vlachos <c-X-vlachos@hot-x-mail.com> wrote:
hybrid_snyper wrote:
Hi,

I'm looking for some advice, i am trying to control an Ericsson T28
mobile phone by using a PIC16F87X. I understand the how to talk to a
mobile phone by using my COM port on my PC. Is it as simple as
connecting the relevant TX/RX pins to the correct pins on the mobile
phone? Do i need any circuitry between. Ive seen something about MAX232
when using serial communications any tips would be appreciated.
The proper way is to use the MAX232. Another nice IC for this is the
SN75155 (8-pin DIL). Depending on the voltage levels recognised by the
T28, you may be able to do it using simple transistors for the signal
inversion.

Have I read a different post to everyone else?

The guy asks how to connect a PIC to a mobile phone. Neither uses RS232
levels.

PIC <> PC RS232 = MAX232
T28 <> PC RS232 = MAX232
T28 <> PIC = NO MAX232

Find out what voltage levels the pins on the T28 are at. I suspect it'll
be 3.3V logic, but it might be 5V. The easiest thing to do is run the PIC
at the same voltage as the port on the T28, then you don't need a level
shifter and can connect them directly. Series resistors of a few hundred
ohms on the TX and RX lines won't affect the functioning but might save
your PIC or phone if you hook it up wrong.


Tim
I think the signals may need to be inverted, in which case the above
won't work. For a PC <--> PIC connection you don't really need level
shifting but you must invert the signals. I don't know how the T28
serial works. If it's non-standard, the above might work, but I suspect
inversion will be necessary. Two transistors should do the trick.

--
Regards,
Costas
_________________________________________________
Costas Vlachos Email: c-X-vlachos@hot-X-mail.com
SPAM-TRAPPED: Please remove "-X-" before replying
 
"Tim Auton" <tim.auton@uton.borg.invalid> schreef in bericht
news:7o9n24-9up.ln1@bertha.auton.me.uk...
Costas Vlachos <c-X-vlachos@hot-x-mail.com> wrote:
hybrid_snyper wrote:
Hi,

I'm looking for some advice, i am trying to control an Ericsson T28
mobile phone by using a PIC16F87X. I understand the how to talk to a
mobile phone by using my COM port on my PC. Is it as simple as
connecting the relevant TX/RX pins to the correct pins on the mobile
phone? Do i need any circuitry between. Ive seen something about MAX232
when using serial communications any tips would be appreciated.

The proper way is to use the MAX232. Another nice IC for this is the
SN75155 (8-pin DIL). Depending on the voltage levels recognised by the
T28, you may be able to do it using simple transistors for the signal
inversion.

Have I read a different post to everyone else?

The guy asks how to connect a PIC to a mobile phone. Neither uses RS232
levels.

PIC <> PC RS232 = MAX232
T28 <> PC RS232 = MAX232
T28 <> PIC = NO MAX232

Find out what voltage levels the pins on the T28 are at. I suspect it'll
be 3.3V logic, but it might be 5V. The easiest thing to do is run the PIC
at the same voltage as the port on the T28, then you don't need a level
shifter and can connect them directly. Series resistors of a few hundred
ohms on the TX and RX lines won't affect the functioning but might save
your PIC or phone if you hook it up wrong.


Tim

Hmmm. I carefully reread the original question. The OP tells he knows how to
connect the COM port of its PC to the phone. If he did so and the phone has
3.3V or 5V logic inputs, it's blown by now. So I concluded the phone to have
an RS232 interface. I agree, it's not very likely the phone to have this
build in, but you can buy interface cables. The ones I'm aware of have a
MAX3232 or similar in their connector. So you are right, it will end up
converting two times. 5V <--> RS232 <--> 3V3. Which will be the most safe
way for someone asking questions like this.

petrus bitbyter
 
Costas Vlachos <c-X-vlachos@hot-x-mail.com> wrote:
Tim Auton wrote:
Costas Vlachos <c-X-vlachos@hot-x-mail.com> wrote:
hybrid_snyper wrote:

I'm looking for some advice, i am trying to control an Ericsson T28
mobile phone by using a PIC16F87X. I understand the how to talk to a
mobile phone by using my COM port on my PC. Is it as simple as
connecting the relevant TX/RX pins to the correct pins on the mobile
phone? Do i need any circuitry between. Ive seen something about MAX232
when using serial communications any tips would be appreciated.
The proper way is to use the MAX232. Another nice IC for this is the
SN75155 (8-pin DIL). Depending on the voltage levels recognised by the
T28, you may be able to do it using simple transistors for the signal
inversion.

Have I read a different post to everyone else?

The guy asks how to connect a PIC to a mobile phone. Neither uses RS232
levels.

PIC <> PC RS232 = MAX232
T28 <> PC RS232 = MAX232
T28 <> PIC = NO MAX232

Find out what voltage levels the pins on the T28 are at. I suspect it'll
be 3.3V logic, but it might be 5V. The easiest thing to do is run the PIC
at the same voltage as the port on the T28, then you don't need a level
shifter and can connect them directly. Series resistors of a few hundred
ohms on the TX and RX lines won't affect the functioning but might save
your PIC or phone if you hook it up wrong.

I think the signals may need to be inverted, in which case the above
won't work. For a PC <--> PIC connection you don't really need level
shifting but you must invert the signals. I don't know how the T28
serial works. If it's non-standard, the above might work, but I suspect
inversion will be necessary. Two transistors should do the trick.
Thinking about this more I think we might be talking about different
things. I would be very surprised if the T28 had on-board circuitry to
generate RS232 levels - ie something like a MAX232 on board. Mobile
phones are too cost, size and power sensetive for that. So I expect on
the connector on the bottom of the phone there is a standard
(non-inverted) logic-level UART connection, which you could connect to a
PIC directly. However, if there is a cable with a DB9 plug on the end to
connect to a PC serial port (ie RS232) I would expect that to provide
RS232 levels, with the conversion provided by something like a MAX232 or
DS276 (like a MAX232 but steals power from the signal lines) inside the
cable. I was talking about the phone end of that cable, you seem to be
talking about the PC end.

So, if the OP has a cable with a DB9 plug designed to plug into a PC and
wants to connect it to their PIC they would need a MAX232. I was
assuming they just had a connector, so wouldn't need one (or an inverter).


Tim
 
Tim Auton wrote:
Costas Vlachos <c-X-vlachos@hot-x-mail.com> wrote:
Tim Auton wrote:
Costas Vlachos <c-X-vlachos@hot-x-mail.com> wrote:
hybrid_snyper wrote:
I'm looking for some advice, i am trying to control an Ericsson T28
mobile phone by using a PIC16F87X. I understand the how to talk to a
mobile phone by using my COM port on my PC. Is it as simple as
connecting the relevant TX/RX pins to the correct pins on the mobile
phone? Do i need any circuitry between. Ive seen something about MAX232
when using serial communications any tips would be appreciated.
The proper way is to use the MAX232. Another nice IC for this is the
SN75155 (8-pin DIL). Depending on the voltage levels recognised by the
T28, you may be able to do it using simple transistors for the signal
inversion.
Have I read a different post to everyone else?

The guy asks how to connect a PIC to a mobile phone. Neither uses RS232
levels.

PIC <> PC RS232 = MAX232
T28 <> PC RS232 = MAX232
T28 <> PIC = NO MAX232

Find out what voltage levels the pins on the T28 are at. I suspect it'll
be 3.3V logic, but it might be 5V. The easiest thing to do is run the PIC
at the same voltage as the port on the T28, then you don't need a level
shifter and can connect them directly. Series resistors of a few hundred
ohms on the TX and RX lines won't affect the functioning but might save
your PIC or phone if you hook it up wrong.
I think the signals may need to be inverted, in which case the above
won't work. For a PC <--> PIC connection you don't really need level
shifting but you must invert the signals. I don't know how the T28
serial works. If it's non-standard, the above might work, but I suspect
inversion will be necessary. Two transistors should do the trick.

Thinking about this more I think we might be talking about different
things. I would be very surprised if the T28 had on-board circuitry to
generate RS232 levels - ie something like a MAX232 on board. Mobile
phones are too cost, size and power sensetive for that. So I expect on
the connector on the bottom of the phone there is a standard
(non-inverted) logic-level UART connection, which you could connect to a
PIC directly. However, if there is a cable with a DB9 plug on the end to
connect to a PC serial port (ie RS232) I would expect that to provide
RS232 levels, with the conversion provided by something like a MAX232 or
DS276 (like a MAX232 but steals power from the signal lines) inside the
cable. I was talking about the phone end of that cable, you seem to be
talking about the PC end.

So, if the OP has a cable with a DB9 plug designed to plug into a PC and
wants to connect it to their PIC they would need a MAX232. I was
assuming they just had a connector, so wouldn't need one (or an inverter).
I see what you mean. If the inversion/level-shifting is done in the
phone cable, then he should be able to do it like you said in your first
post (direct connection, resistors for protection). It makes sense for
the phone manufacturer to move the MAX232 or similar IC outside of the
phone for size/cost issues. The OP can connect directly like you said
and see what happens. If it doesn't work, invert the signals and try
again. I don't think level shifting will be necessary for such a small
device anyway (it definitely isn't for modern PCs). I was just assuming
that the Tx/Rx signals from the phone would match the standard polarity
of the RS-232 in which case inversion would be necessary. I suppose he
could measure the phone's Tx line when idle to determine whether
inversion is needed.

--
Regards,
Costas
_________________________________________________
Costas Vlachos Email: c-X-vlachos@hot-X-mail.com
SPAM-TRAPPED: Please remove "-X-" before replying
 
"Roger" <roger.howell3@gmail.com> wrote in news:1163506835.417581.36490
@h54g2000cwb.googlegroups.com:

joanneo0322@hotmail.com wrote:
CHICAGO - A small study

I can barely imagine how small a study it actually was. How many
calories in SPAM anyway?
Only a few, that's why there's so much.

Puckdroppe
--
Wise is the man who attempts to answer his question before asking it.

To email me directly, send a message to puckdropper (at) fastmail.fm
 
Costas Vlachos wrote:
Tim Auton wrote:
Costas Vlachos <c-X-vlachos@hot-x-mail.com> wrote:
Tim Auton wrote:
Costas Vlachos <c-X-vlachos@hot-x-mail.com> wrote:
hybrid_snyper wrote:
I'm looking for some advice, i am trying to control an Ericsson T28
mobile phone by using a PIC16F87X. I understand the how to talk to a
mobile phone by using my COM port on my PC. Is it as simple as
connecting the relevant TX/RX pins to the correct pins on the mobile
phone? Do i need any circuitry between. Ive seen something about MAX232
when using serial communications any tips would be appreciated.
The proper way is to use the MAX232. Another nice IC for this is the
SN75155 (8-pin DIL). Depending on the voltage levels recognised by the
T28, you may be able to do it using simple transistors for the signal
inversion.
Have I read a different post to everyone else?

The guy asks how to connect a PIC to a mobile phone. Neither uses RS232
levels.

PIC <> PC RS232 = MAX232
T28 <> PC RS232 = MAX232
T28 <> PIC = NO MAX232

Find out what voltage levels the pins on the T28 are at. I suspect it'll
be 3.3V logic, but it might be 5V. The easiest thing to do is run the PIC
at the same voltage as the port on the T28, then you don't need a level
shifter and can connect them directly. Series resistors of a few hundred
ohms on the TX and RX lines won't affect the functioning but might save
your PIC or phone if you hook it up wrong.
I think the signals may need to be inverted, in which case the above
won't work. For a PC <--> PIC connection you don't really need level
shifting but you must invert the signals. I don't know how the T28
serial works. If it's non-standard, the above might work, but I suspect
inversion will be necessary. Two transistors should do the trick.

Thinking about this more I think we might be talking about different
things. I would be very surprised if the T28 had on-board circuitry to
generate RS232 levels - ie something like a MAX232 on board. Mobile
phones are too cost, size and power sensetive for that. So I expect on
the connector on the bottom of the phone there is a standard
(non-inverted) logic-level UART connection, which you could connect to a
PIC directly. However, if there is a cable with a DB9 plug on the end to
connect to a PC serial port (ie RS232) I would expect that to provide
RS232 levels, with the conversion provided by something like a MAX232 or
DS276 (like a MAX232 but steals power from the signal lines) inside the
cable. I was talking about the phone end of that cable, you seem to be
talking about the PC end.

So, if the OP has a cable with a DB9 plug designed to plug into a PC and
wants to connect it to their PIC they would need a MAX232. I was
assuming they just had a connector, so wouldn't need one (or an inverter).

I see what you mean. If the inversion/level-shifting is done in the
phone cable, then he should be able to do it like you said in your first
post (direct connection, resistors for protection). It makes sense for
the phone manufacturer to move the MAX232 or similar IC outside of the
phone for size/cost issues. The OP can connect directly like you said
and see what happens. If it doesn't work, invert the signals and try
again. I don't think level shifting will be necessary for such a small
device anyway (it definitely isn't for modern PCs). I was just assuming
that the Tx/Rx signals from the phone would match the standard polarity
of the RS-232 in which case inversion would be necessary. I suppose he
could measure the phone's Tx line when idle to determine whether
inversion is needed.

--
Regards,
Costas
_________________________________________________
Costas Vlachos Email: c-X-vlachos@hot-X-mail.com
SPAM-TRAPPED: Please remove "-X-" before replying

So direct connection is the way to go. I found these two links a while
back. The first is what I believe to be the circuitry within the
datacable and to which would allow me to eliminate the cable.

http://pinouts.ru/CellularPhonesCables/ericsson_cable_pinout.shtml

this next link shows a guy which has a Tiny12 connected directly via a
datacable to his MCU. I take it would be a similar setup to this. He
has the data entering the MCU fed direct with a 4700 resistor in
between. However he has added circuitry to create a true bi-polar
signal. Im not sure what this means.

http://www.riccibitti.com/tinyplanet/tiny_article.htm
 
On Mon, 13 Nov 2006 18:18:12 -0500, "Charles Schuler"
<charleschuler@comcast.net> wrote:

"koko" <joanneo0322@gmail.com> wrote in message
news:1163406208.449940.267000@m73g2000cwd.googlegroups.com...
New York - American chocolate lovers in growing numbers are discovering
how to pander to their

addiction and simultaneously help the environment by buying organically
certified chocolate.

So, again ! Is this one of the new marketing gimmick or does this
co-called organic chocolate

really make a different ?

No, and it so far off topic that it is _____________.
Chocolate is an essential component of professional electronic design.
And most of the organic stuff tastes horrible.

John
 
hybrid_snyper wrote:
So direct connection is the way to go. I found these two links a while
back. The first is what I believe to be the circuitry within the
datacable and to which would allow me to eliminate the cable.

http://pinouts.ru/CellularPhonesCables/ericsson_cable_pinout.shtml

this next link shows a guy which has a Tiny12 connected directly via a
datacable to his MCU. I take it would be a similar setup to this. He
has the data entering the MCU fed direct with a 4700 resistor in
between. However he has added circuitry to create a true bi-polar
signal. Im not sure what this means.

http://www.riccibitti.com/tinyplanet/tiny_article.htm
OK, these are nice links relating to what you want to do. From the first
link it's clear that there's no need to invert the signals when you
connect the phone *directly* to the PIC (i.e., *without* using the
special Ericsson cable which has circuitry inside). If you do it like
this you should be fine using only resistors for protection (as Tim
Auton suggested earlier):

Phone Tx -----\/\/\----- PIC Rx
Phone Rx -----\/\/\----- PIC Tx
Phone GND --------------- PIC GND

I don't know about the voltage levels of the T28. Are they 5V or 3.3V?
Probably the latter. As Tim said, run the PIC at the same voltage. I
don't think you need to worry about true bipolar signals, the other guy
in the second link probably uses the proper Ericsson cable (with the
circuit inside) and so has to deal with negative voltages (hence the
Zener), and uses the transistor to "steal" negative voltage from the
incoming signal to generate his own bipolar Tx signal. The transistor
also inverts the MCU's Tx signal. He probably does the inversion of the
Rx signal in s/w (inside the MCU - no h/w UART used).

So, to recap, if you're somehow connecting the phone directly to the PIC
(no cable) or you're using just a passive connector or a dummy cable (no
circuitry involved) then use the above wiring (PIC's voltage same as
phone's logic levels, 5V or 3.3V). If you *are* using the proper
Ericsson cable (with the level shifter/inverter inside), then you need
to invert the signals again so that the PIC & phone can talk to each
other. Hope this is now clearer.

--
Regards,
Costas
_________________________________________________
Costas Vlachos Email: c-X-vlachos@hot-X-mail.com
SPAM-TRAPPED: Please remove "-X-" before replying
 
"John Larkin" <jjlarkin@highNOTlandTHIStechnologyPART.com> wrote in message
news:rkqjl2dcefctgp8m7pqtknmipj8akkdb7n@4ax.com...
Chocolate is an essential component of professional electronic design.
And most of the organic stuff tastes horrible.
I'm pretty sure it's all organic, John. Although I would
put such things as McDonald's chocolate shakes into the
"probably inorganic" category....;-)

Bob M.
 
Roger wrote:
joanneo0322@hotmail.com wrote:
CHICAGO - A small study

I can barely imagine how small a study it actually was. How many
calories in SPAM anyway?


Regular SPAM is 1044 calories per can, 822 calories from fat.

SPAM Lite is 660 calories per can, 420 calories from fat.

SPAM Turkey is 480 calories per can, 210 calories from fat.

The Armour version is 1080 calories per can, 840 calories from fat.

Serving size is 1/6 of a SPAM. ;-)


--
Service to my country? Been there, Done that, and I've got my DD214 to
prove it.
Member of DAV #85.

Michael A. Terrell
Central Florida
 
John Larkin wrote:
On Mon, 13 Nov 2006 18:18:12 -0500, "Charles Schuler"
charleschuler@comcast.net> wrote:


"koko" <joanneo0322@gmail.com> wrote in message
news:1163406208.449940.267000@m73g2000cwd.googlegroups.com...
New York - American chocolate lovers in growing numbers are discovering
how to pander to their

addiction and simultaneously help the environment by buying organically
certified chocolate.

So, again ! Is this one of the new marketing gimmick or does this
co-called organic chocolate

really make a different ?

No, and it so far off topic that it is _____________.


Chocolate is an essential component of professional electronic design.
And most of the organic stuff tastes horrible.

John

That's because its made from old drafting paper, used coffee grounds
and held together with used 10W30 motor oil. :(


--
Service to my country? Been there, Done that, and I've got my DD214 to
prove it.
Member of DAV #85.

Michael A. Terrell
Central Florida
 
"petrus bitbyter" <pieterkraltlaatditweg@enditookhccnet.nl> schreef in
bericht news:4557bdb1$0$26967$e4fe514c@dreader32.news.xs4all.nl...
luisdanielsilva@gmail.com> schreef in bericht
news:1163360427.487718.18100@h54g2000cwb.googlegroups.com...
I need to convert a 32 bit binary number to gray code. i know how to do
it bit by bit, but i need to do a function to do it, so that i don't
need to repeat code 32 times. Can anybody help me?

Thanks

LDS


Mmm... It's quite some time I wrote 8051 assembler, but if memory serves
it's done like this:

num1 equ 64
num2 equ 65
num3 equ 66
num4 equ 67

clr c
mov a,num1
rlc a
xrl a,num1
mov a,num2
rlc a
xrl a,num2
mov a,num3
rlc a
xrl a,num3
mov a,num4
rlc a
xrl a,num4
end

petrus bitbyter
Oops,

Memory fails. The next code should be correct:
num1 equ 64
num2 equ 65
num3 equ 66
num4 equ 67

clr c
mov a,num1
rlc a
xrl num1,a
mov a,num2
rlc a
xrl num2,a
mov a,num3
rlc a
xrl num3,a
mov a,num4
rlc a
xrl num4,a
end

petrus bitbyter
 
If you *are* using the proper
Ericsson cable (with the level shifter/inverter inside), then you need
to invert the signals again so that the PIC & phone can talk to each
other. Hope this is now clearer.

--
Regards,
Costas
_________________________________________________
Costas Vlachos Email: c-X-vlachos@hot-X-mail.com
SPAM-TRAPPED: Please remove "-X-" before replying
So to use the proper connector is going to require the max232 anyway,
so im going to be better off using some copper wire some resistors and
try and wire the phone pins to the PIC pins directly. I bought the data
cable on the assumption it would be the simpler option, connect the
data cable to a RS232 port wired to the PIC. But in this case it is
not, its def not the simpler way,

Thanks for that guys I appreciate it, i will be in touch with the
outcome
 
John Larkin wrote:
On Mon, 13 Nov 2006 18:18:12 -0500, "Charles Schuler"
charleschuler@comcast.net> wrote:


"koko" <joanneo0322@gmail.com> wrote in message
news:1163406208.449940.267000@m73g2000cwd.googlegroups.com...
New York - American chocolate lovers in growing numbers are discovering
how to pander to their

addiction and simultaneously help the environment by buying organically
certified chocolate.

So, again ! Is this one of the new marketing gimmick or does this
co-called organic chocolate

really make a different ?

No, and it so far off topic that it is _____________.


Chocolate is an essential component of professional electronic design.
Agreed. Now where is my vending machine money, I have a design review
this afternoon...

And most of the organic stuff tastes horrible.
Some of the organic stuff here in Oz is pretty good, but you can't
really beat that extra added and processed chemical taste. Organic
chocolate prices are insane though, I would rather have a 300g family
block of Cadbury which costs less than a 40g organic bar.

One organic bar you can get in Oz is associated with some save the
animal fund, so you can rid yourself of chemicals, save the polar bear
and feel good about yourself at the same time, so you don't notice
paying 10 times the regular price.

Dave :)
 
On 14 Nov 2006 17:37:29 -0800, "David L. Jones" <altzone@gmail.com>
wrote:

John Larkin wrote:
On Mon, 13 Nov 2006 18:18:12 -0500, "Charles Schuler"
charleschuler@comcast.net> wrote:


"koko" <joanneo0322@gmail.com> wrote in message
news:1163406208.449940.267000@m73g2000cwd.googlegroups.com...
New York - American chocolate lovers in growing numbers are discovering
how to pander to their

addiction and simultaneously help the environment by buying organically
certified chocolate.

So, again ! Is this one of the new marketing gimmick or does this
co-called organic chocolate

really make a different ?

No, and it so far off topic that it is _____________.


Chocolate is an essential component of professional electronic design.

Agreed. Now where is my vending machine money, I have a design review
this afternoon...

And most of the organic stuff tastes horrible.

Some of the organic stuff here in Oz is pretty good, but you can't
really beat that extra added and processed chemical taste. Organic
chocolate prices are insane though, I would rather have a 300g family
block of Cadbury which costs less than a 40g organic bar.

One organic bar you can get in Oz is associated with some save the
animal fund, so you can rid yourself of chemicals, save the polar bear
and feel good about yourself at the same time, so you don't notice
paying 10 times the regular price.
---
I like Cadbury and Nestlés Perugina well enough for sophistication,
smoothness, and all of that, but when push comes to shove and I
just want some kick-ass chocolate, Hershey's Special Dark Chocolate
does it for me.


--
JF
 

Welcome to EDABoard.com

Sponsor

Back
Top