Sign in

username:

password:



Not a member?

Search 68hc12



Search tips

Subscribe to 68hc12



68hc12 by Keywords

68HC1 | 812A4 | 9S12DP256 | Bootloader | CodeWarrior | D60A | Debugger | DP256 | ECT | EEPROM | EVB | Flash | HC1 | HCS12 | I2C | IAR | ICC1 | Interrupts | LCD | M68KIT912DP256 | MC9S12DP256 | MC9S12DP256B | Metrowerks | Motor | MSCAN | Multilink | PLL | Quadrature | SDI | SPI | Transceiver | XFC


Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | 68HC12 | What function/pins to use for a transceiver??


Advertise Here

Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).

What function/pins to use for a transceiver?? - gogosgeorge - Mar 17 5:04:00 2005


Hi guys,

What can I use for transmitting and receiving via a transceiver? I
have 2 9s12E128 Development Boards, and have 2 RF-NRF401 422Mhz
single chip RF-Transceivers. I want to hook one to one Board and
Transmit, and the other board with the other transceiver to receive.
It will only be one way communication, so they wont both be sending
and receiving. They only have a TXD and RXD pins to use for this,
the other pins are for frequency select, am/fm, vcc, etc. So, I only
need 2 pins for transmission.

What functions are there for sending in the least complicated way? I
will only be sending values between 0decimal and 200decimal, but
have no idea what options are available to me, nor how to use them.
Can someone please suggest how I can do this (well, what pins and
what registers. I looked up IIC and SPI. can it just be as simple as
using a port (say 2 pins of port A as output) and transmitting
through that, and 2 pins of port A on the other boar as inputs and
receiving that way? Would that work fine? Seems the simplest way,
but im unsure. Please help





(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )


Re: What function/pins to use for a transceiver?? - Author Unknown - Mar 17 8:21:00 2005


In a message dated 3/17/05 4:06:36 A.M. Eastern Standard Time,
writes:

What can I use for transmitting and receiving via a transceiver? ==================================
Pretend the transmitter and receiver are a wire. Use the SCI. [Non-text portions of this message have been removed]




(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: What function/pins to use for a transceiver?? - George \Bigpond\ - Mar 17 8:28:00 2005

but what pins would I use for it? Can I use any General I/O pins??
George Gogos
Undergraduate
BACHELOR OF ENGINEERING(Computronics/Electronics)
Deakin University, Australia ----- Original Message -----
From:
To:
Sent: Thursday, March 17, 2005 11:21 PM
Subject: Re: [68HC12] What function/pins to use for a transceiver??
In a message dated 3/17/05 4:06:36 A.M. Eastern Standard Time,
writes:

What can I use for transmitting and receiving via a transceiver? ==================================
Pretend the transmitter and receiver are a wire. Use the SCI. [Non-text portions of this message have been removed] Yahoo! Groups Sponsor
ADVERTISEMENT ------------------------------------------------------------------------------
Yahoo! Groups Links

a.. To
[Non-text portions of this message have been removed]




(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: What function/pins to use for a transceiver?? - Author Unknown - Mar 17 8:48:00 2005


In a message dated 3/17/05 7:25:50 A.M. Eastern Standard Time,
writes:

What can I use for transmitting and receiving via a transceiver? ==================================
Pretend the transmitter and receiver are a wire. Use the SCI.

===================================
The hint is the last 3 letters [Non-text portions of this message have been removed]


______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: What function/pins to use for a transceiver?? - George \Bigpond\ - Mar 17 9:13:00 2005

MISO, MOSI, SS, SCK, TXD0, RXDO ??

do i need TXD0 and RXD0??
George Gogos
Undergraduate
BACHELOR OF ENGINEERING(Computronics/Electronics)
Deakin University, Australia ----- Original Message -----
From:
To:
Sent: Thursday, March 17, 2005 11:48 PM
Subject: Re: [68HC12] What function/pins to use for a transceiver??
In a message dated 3/17/05 7:25:50 A.M. Eastern Standard Time,
writes:

What can I use for transmitting and receiving via a transceiver? ==================================
Pretend the transmitter and receiver are a wire. Use the SCI.

===================================
The hint is the last 3 letters [Non-text portions of this message have been removed] Yahoo! Groups Sponsor
ADVERTISEMENT ------------------------------------------------------------------------------
Yahoo! Groups Links

a.. To
[Non-text portions of this message have been removed]




(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: What function/pins to use for a transceiver?? - Author Unknown - Mar 17 9:19:00 2005


In a message dated 3/17/05 8:12:24 A.M. Eastern Standard Time,
writes: MISO, MOSI, SS, SCK, TXD0, RXDO ??

do i need TXD0 and RXD0??
George Gogos
Undergraduate
BACHELOR OF ENGINEERING(Computronics/Electronics)
Deakin University, Australia
What can I use for transmitting and receiving via a transceiver? ==================================
Pretend the transmitter and receiver are a wire. Use the SCI.

George, you might graduate someday (I hope), but you'll never get rich
unless you dig just a little harder. Once again, do the letters SCI mean ANYTHING
to you? Do you think there is any reference at all to an SCI in any HC12
manual you might be able to download? Come back with a question like "I
initialized my sci for 115200 bits per second, 8 bits, no parity, but I'm missing
characters at the receiver... do I need to receive with interrupts enabled?" You
question is more like " How do I get From Orlando to Jacksonville?" Come
on... in the next message, lets have a small list of interfaces that might be
used for interprocessor communication, some of the pros and cons of each.... I
hinted that you should look into using the SCI.... but you might not want to
get into a discussion of which serial protocols work best over rf links yet...
just get 'send one char' and 'receive one char' working first.
[Non-text portions of this message have been removed]




(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: What function/pins to use for a transceiver?? - George \Bigpond\ - Mar 17 9:31:00 2005

well actually, I do want to know which serial transfer type is better over an RF link. Im sorry if my questions may seem a bit simplistic to you, but this is one time where I have a very close deadline, nextwednesday, so Im not really in a state to test out sending a character one by one to get used to it. If I know what type of comm is best for RF, then I look into that and figure it out myself within an afternoon.
George Gogos
Undergraduate
BACHELOR OF ENGINEERING(Computronics/Electronics)
Deakin University, Australia ----- Original Message -----
From:
To:
Sent: Friday, March 18, 2005 12:19 AM
Subject: Re: [68HC12] What function/pins to use for a transceiver??
In a message dated 3/17/05 8:12:24 A.M. Eastern Standard Time,
writes: MISO, MOSI, SS, SCK, TXD0, RXDO ??

do i need TXD0 and RXD0??
George Gogos
Undergraduate
BACHELOR OF ENGINEERING(Computronics/Electronics)
Deakin University, Australia
What can I use for transmitting and receiving via a transceiver? ==================================
Pretend the transmitter and receiver are a wire. Use the SCI.

George, you might graduate someday (I hope), but you'll never get rich
unless you dig just a little harder. Once again, do the letters SCI mean ANYTHING
to you? Do you think there is any reference at all to an SCI in any HC12
manual you might be able to download? Come back with a question like "I
initialized my sci for 115200 bits per second, 8 bits, no parity, but I'm missing
characters at the receiver... do I need to receive with interrupts enabled?" You
question is more like " How do I get From Orlando to Jacksonville?" Come
on... in the next message, lets have a small list of interfaces that might be
used for interprocessor communication, some of the pros and cons of each.... I
hinted that you should look into using the SCI.... but you might not want to
get into a discussion of which serial protocols work best over rf links yet...
just get 'send one char' and 'receive one char' working first.
[Non-text portions of this message have been removed] Yahoo! Groups Sponsor
ADVERTISEMENT ------------------------------------------------------------------------------
Yahoo! Groups Links

a.. To
[Non-text portions of this message have been removed]


______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

RE: What function/pins to use for a transceiver?? - Mark Wyman - Mar 17 9:32:00 2005

Yes,
Best bet is to use the TXD0 and RXD0 since you cannot send a synchronizing
clock, just timed data (i.e. 9600 baud, 8,n,1). Also the SCI (Serial
Communications Interface) has plenty of error checking and standard
communications a PC can understand built right in to allow for flexible
systems. It will be very easy for you to implement using these pins, because
there is a module in the uC that handles the sending and receiving
automatically once you have its registers properly set up. In fact the
receiver can sit there processing other things, and when data is finished
being received can interrupt the process to let you know there is data in
the receive register ready to be looked at.
I know these processors have a lot of features, and it is a lot to soak up
when your liver is getting abused in college ;-). Have fun with your
project; just don't ask us to write code for you, it is a fun learning
process, and you picked the right hardware to learn on IMHO.
-Mark W
_____

From: George (Bigpond) [mailto:]
Sent: Thursday, March 17, 2005 8:13 AM
To:
Subject: Re: [68HC12] What function/pins to use for a transceiver??
MISO, MOSI, SS, SCK, TXD0, RXDO ??

do i need TXD0 and RXD0??
George Gogos
Undergraduate
BACHELOR OF ENGINEERING(Computronics/Electronics)
Deakin University, Australia ----- Original Message -----
From:
To:
Sent: Thursday, March 17, 2005 11:48 PM
Subject: Re: [68HC12] What function/pins to use for a transceiver??
In a message dated 3/17/05 7:25:50 A.M. Eastern Standard Time,
writes:

What can I use for transmitting and receiving via a transceiver? ==================================
Pretend the transmitter and receiver are a wire. Use the SCI.

===================================
The hint is the last 3 letters [Non-text portions of this message have been removed] Yahoo! Groups Sponsor
ADVERTISEMENT ----------------------------------------------------------------------------
--
> Terms of Service.
[Non-text portions of this message have been removed]




(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: What function/pins to use for a transceiver?? - Author Unknown - Mar 17 9:32:00 2005

I second that sentiment. A modest amount of RTFM is common courtesy for
this kind of email group.

> MISO, MOSI, SS, SCK, TXD0, RXDO ??




(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: What function/pins to use for a transceiver?? - George \Bigpond\ - Mar 17 9:36:00 2005

does TXD0 and RXD0 correspond to the SCI or anything, or is it as simple as using those two pins as if they were like a pin in port a or b, But theyre already configured as transmitting and receiving?

I dont need anything flash for transmitting, like parity check, etc (not at this stage anyway). The SCI has pins like MOSI, MISO, SS, SCK....so all those pins need to be used, when I only need pins for transmitting and receiving (really on one board, I only need a pin for Transmitting, and on the other board I only need a pin for receiving)

Cheers for your help buddy. George Gogos
Undergraduate
BACHELOR OF ENGINEERING(Computronics/Electronics)
Deakin University, Australia ----- Original Message -----
From: Mark Wyman
To:
Sent: Friday, March 18, 2005 12:32 AM
Subject: RE: [68HC12] What function/pins to use for a transceiver?? Yes,
Best bet is to use the TXD0 and RXD0 since you cannot send a synchronizing
clock, just timed data (i.e. 9600 baud, 8,n,1). Also the SCI (Serial
Communications Interface) has plenty of error checking and standard
communications a PC can understand built right in to allow for flexible
systems. It will be very easy for you to implement using these pins, because
there is a module in the uC that handles the sending and receiving
automatically once you have its registers properly set up. In fact the
receiver can sit there processing other things, and when data is finished
being received can interrupt the process to let you know there is data in
the receive register ready to be looked at.
I know these processors have a lot of features, and it is a lot to soak up
when your liver is getting abused in college ;-). Have fun with your
project; just don't ask us to write code for you, it is a fun learning
process, and you picked the right hardware to learn on IMHO.
-Mark W
_____

From: George (Bigpond) [mailto:]
Sent: Thursday, March 17, 2005 8:13 AM
To:
Subject: Re: [68HC12] What function/pins to use for a transceiver??
MISO, MOSI, SS, SCK, TXD0, RXDO ??

do i need TXD0 and RXD0??
George Gogos
Undergraduate
BACHELOR OF ENGINEERING(Computronics/Electronics)
Deakin University, Australia ----- Original Message -----
From:
To:
Sent: Thursday, March 17, 2005 11:48 PM
Subject: Re: [68HC12] What function/pins to use for a transceiver??
In a message dated 3/17/05 7:25:50 A.M. Eastern Standard Time,
writes:

What can I use for transmitting and receiving via a transceiver? ==================================
Pretend the transmitter and receiver are a wire. Use the SCI.

===================================
The hint is the last 3 letters [Non-text portions of this message have been removed] Yahoo! Groups Sponsor
ADVERTISEMENT ----------------------------------------------------------------------------
--
> Terms of Service.
[Non-text portions of this message have been removed] Yahoo! Groups Sponsor
ADVERTISEMENT ------------------------------------------------------------------------------
Yahoo! Groups Links

a.. To
[Non-text portions of this message have been removed]




(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: What function/pins to use for a transceiver?? - Edward Karpicz - Mar 17 9:40:00 2005

You guys are extremely polite and must have nerves made of steel.

RTFM RTFM RTFM ... RTFFFFM >:-I

Edward ----- Original Message -----
From: <>
To: <>
Sent: Thursday, March 17, 2005 3:32 PM
Subject: Re: [68HC12] What function/pins to use for a transceiver?? >
> I second that sentiment. A modest amount of RTFM is common courtesy for
> this kind of email group.
>
>> MISO, MOSI, SS, SCK, TXD0, RXDO ??




(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: What function/pins to use for a transceiver?? - George \Bigpond\ - Mar 17 9:42:00 2005

Also, I dont really appreciate sarcasm regarding when I graduate (you hope????) Best to leave such sarcasm at the front door, true? Im sure you would know a fair bit about HCS12's, but power trips seem to be a specialty. George Gogos
Undergraduate
BACHELOR OF ENGINEERING(Computronics/Electronics)
Deakin University, Australia ----- Original Message -----
From:
To:
Sent: Friday, March 18, 2005 12:19 AM
Subject: Re: [68HC12] What function/pins to use for a transceiver??
In a message dated 3/17/05 8:12:24 A.M. Eastern Standard Time,
writes: MISO, MOSI, SS, SCK, TXD0, RXDO ??

do i need TXD0 and RXD0??
George Gogos
Undergraduate
BACHELOR OF ENGINEERING(Computronics/Electronics)
Deakin University, Australia
What can I use for transmitting and receiving via a transceiver? ==================================
Pretend the transmitter and receiver are a wire. Use the SCI.

George, you might graduate someday (I hope), but you'll never get rich
unless you dig just a little harder. Once again, do the letters SCI mean ANYTHING
to you? Do you think there is any reference at all to an SCI in any HC12
manual you might be able to download? Come back with a question like "I
initialized my sci for 115200 bits per second, 8 bits, no parity, but I'm missing
characters at the receiver... do I need to receive with interrupts enabled?" You
question is more like " How do I get From Orlando to Jacksonville?" Come
on... in the next message, lets have a small list of interfaces that might be
used for interprocessor communication, some of the pros and cons of each.... I
hinted that you should look into using the SCI.... but you might not want to
get into a discussion of which serial protocols work best over rf links yet...
just get 'send one char' and 'receive one char' working first.
[Non-text portions of this message have been removed] Yahoo! Groups Sponsor
ADVERTISEMENT ------------------------------------------------------------------------------
Yahoo! Groups Links

a.. To
[Non-text portions of this message have been removed]




(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: What function/pins to use for a transceiver?? - Michael Elphick - Mar 17 9:44:00 2005

In a message sent Thursday March 17 2005 1.19 PM (GMT) Bob Garner wrote: -

> George, you might graduate someday (I hope), but you'll never get rich
> unless you dig just a little harder. Once again, do the letters SCI mean
> ANYTHING
> to you? Do you think there is any reference at all to an SCI in any HC12
> manual you might be able to download? Come back with a question like "I
> initialized my sci for 115200 bits per second, 8 bits, no parity, but I'm
> missing
> characters at the receiver... do I need to receive with interrupts
> enabled?" You
> question is more like " How do I get From Orlando to Jacksonville?" Come
> on... in the next message, lets have a small list of interfaces that
> might be
> used for interprocessor communication, some of the pros and cons of
> each.... I
> hinted that you should look into using the SCI.... but you might not want
> to
> get into a discussion of which serial protocols work best over rf links
> yet...
> just get 'send one char' and 'receive one char' working first.

I do agree with Bob and I was tempted to post something earlier on the
subject.

I suspect that every person on this list (and there are more than a
thousand) struggled on their own using a chip, a PC, and the principle of
RTFM to get to grips with their chosen processor. I have supported many
young people and they have all, without exception, gone through a sometimes
steep and difficult learning curve, but IMHO it is the only way. I know
re-inventing the wheel is not a good thing, but developing code to drive an
LCD is a good learning base. I think it is very wrong for a beginner to use
someone elses code - you will _never_ learn that way.

In your case, George your supervisor may have provided too little time, but
you might also be a typical student who has left everything to the last
minute.

Michael Elphick




(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: What function/pins to use for a transceiver?? - George \Bigpond\ - Mar 17 9:50:00 2005

Guys,

How old are you? Excuse me If I dont have the experience you all have, but in 16, got myself at uni at this age, doing my engineering project already, and have a very small window of time to do all this in, so I apologise if my questions seem a little basic to you.......its because I have RTFFM and am still stuck on a few things, as unlike all of you, I DO NOT KNOW THE HCS12 INSIDE OUT! Im sure you can understand this, and instead of replying back like its some sort of flaming session, just dont reply....... George Gogos
Undergraduate
BACHELOR OF ENGINEERING(Computronics/Electronics)
Deakin University, Australia ----- Original Message -----
From: Edward Karpicz
To:
Sent: Friday, March 18, 2005 12:40 AM
Subject: Re: [68HC12] What function/pins to use for a transceiver?? You guys are extremely polite and must have nerves made of steel.

RTFM RTFM RTFM ... RTFFFFM >:-I

Edward ----- Original Message -----
From: <>
To: <>
Sent: Thursday, March 17, 2005 3:32 PM
Subject: Re: [68HC12] What function/pins to use for a transceiver?? >
> I second that sentiment. A modest amount of RTFM is common courtesy for
> this kind of email group.
>
>> MISO, MOSI, SS, SCK, TXD0, RXDO ??
Yahoo! Groups Sponsor
ADVERTISEMENT ------------------------------------------------------------------------------
Yahoo! Groups Links

a.. To
[Non-text portions of this message have been removed]



Re[2]: [68HC12] What function/pins to use for a transceiver??


(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: What function/pins to use for a transceiver?? - Author Unknown - Mar 17 9:59:00 2005

George... the serial communication interface uart is the SCI... the SPI is
the syncrounous peripheral interface.. thats the one that uses miso mosi and
sck..... get the source to a SIMPLE comm program and compile it... test it by
sending chars to hyperterminal thru an rs232 cable... when this works, hook it
to the rf transmitter and receiver [Non-text portions of this message have been removed]



Re: What function/pins to use for a transceiver??


(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: What function/pins to use for a transceiver?? - Michael Elphick - Mar 17 10:22:00 2005

Sorry George!

I had no idea you were a young genius! Why didn't you tell us sooner? I'm
62, if you want to know, and almost (but not quite) burnt out!

Michael Elphick




(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: What function/pins to use for a transceiver?? - Bob Smith - Mar 17 11:02:00 2005

<big snip>

It is with some trepidation that I join this thread but ---

There is a bit more to it than just hooking up arbitrary signals to the
modulation port of an RF transceiver and expecting the identical modulation
to come out the other end.

George has some more reading to do --

1. What are the characteristics of the modulation port?? What is its
bandwidth? Does that bandwidth extend to DC?

2. It may be more simple to ask, "Was this device _designed_ for data
transmission? If so, what data formats does it support? What clock speeds?

The answers to the above questions will tell George whether he can simply
hook this thing up to a data port on an MCU or whether he has to include a
modem in the interface to convert the signal format.

It should be noted that direction connection to an SCI or SPI port will
require that the Tx bandwidth extend to or at least approach DC. The upper
end of the modulation pass band will determine the maximum data rate that he
can support.

This is going require that George do even more reading and report back to us
with some technical details.

Best wishes, Bob Smith --- Avoid computer viruses, Practice safe hex ---

-- Specializing in small, cost effective
embedded control systems --

http://www.smithmachineworks.com/embedprod.html Robert L. (Bob) Smith
Smith Machine Works, Inc.
9900 Lumlay Road
Richmond, VA 23236 804/745-2608




(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

RE: What function/pins to use for a transceiver?? - Mark Wyman - Mar 17 11:17:00 2005

Hi George,

Usually the pins on these processors can be configured for I/O
use and/or dedicated module use using configuration registers. When set in
I/O mode, the pins have to be manually polled or set using reads and writes
to the specific pins. When set to the SCI module for example (UART), you can
write say 0xAF to the send register, and the module in the uC will take over
from there, toggle the pins, and set appropriate flags. In this mode you
don't have to even touch the pins in code, which is nice.
For example a very simplistic look at things:

1. Set port pins to be used for the SCI rather than I/O.

2. Set up interrupt vectors if needed (start without interrupts, easier to
tackle starting out using polling)

3. Set baud and timing registers to get required rates, prefer something
slow before ramping up, it helps when using scope to debug.

4. Set or clear interrupt masks if needed (you can start by polling flags,
then move to interrupts)

5. Write data to the TXD register when FIFO empty flag is clear/set. The
module does all of the work in toggling the output pins.

6. Read data from the RXD register when ready flag is set or within
interrupt. The module does all of the work of shifting the data into the
register for you and setting flags.
Go ahead and get started, nothing will teach you faster than jumping in
head-over-heels. Just make sure you have a few diagnostic LEDs attached to
let you know when certain events are occurring such as "pulse", "RX event",
"TX Event", etc. Makes things fast. Just keep that book cracked open to the
SCI section.
I am no genius, but I started off at a young age playing with electronics
and learned much on my own due to my love of making nifty projects. uCs were
crappy then and didn't have the functions that modern uCs have today. Be
prepared to be spoiled at how nice these are to work with these days.
Oh, see the link under my name for some good products to learn from.
-Mark Wyman

Engineering Manager

Avcom/Ramsey Tech.

590 Fishers Station Drive

Victor, NY 14564

(585) 924-4560
<mailto:>

<http://www.ramseyelectronics.com> http://www.ramseyelectronics.com
_____

From: George (Bigpond) [mailto:]
Sent: Thursday, March 17, 2005 8:37 AM
To:
Subject: Re: [68HC12] What function/pins to use for a transceiver??
does TXD0 and RXD0 correspond to the SCI or anything, or is it as simple as
using those two pins as if they were like a pin in port a or b, But theyre
already configured as transmitting and receiving?

I dont need anything flash for transmitting, like parity check, etc (not at
this stage anyway). The SCI has pins like MOSI, MISO, SS, SCK....so all
those pins need to be used, when I only need pins for transmitting and
receiving (really on one board, I only need a pin for Transmitting, and on
the other board I only need a pin for receiving)

Cheers for your help buddy. George Gogos
Undergraduate
BACHELOR OF ENGINEERING(Computronics/Electronics)
Deakin University, Australia ----- Original Message -----
From: Mark Wyman
To:
Sent: Friday, March 18, 2005 12:32 AM
Subject: RE: [68HC12] What function/pins to use for a transceiver?? Yes,
Best bet is to use the TXD0 and RXD0 since you cannot send a synchronizing
clock, just timed data (i.e. 9600 baud, 8,n,1). Also the SCI (Serial
Communications Interface) has plenty of error checking and standard
communications a PC can understand built right in to allow for flexible
systems. It will be very easy for you to implement using these pins,
because
there is a module in the uC that handles the sending and receiving
automatically once you have its registers properly set up. In fact the
receiver can sit there processing other things, and when data is finished
being received can interrupt the process to let you know there is data in
the receive register ready to be looked at.
I know these processors have a lot of features, and it is a lot to soak up
when your liver is getting abused in college ;-). Have fun with your
project; just don't ask us to write code for you, it is a fun learning
process, and you picked the right hardware to learn on IMHO.
-Mark W
_____

From: George (Bigpond) [mailto:]
Sent: Thursday, March 17, 2005 8:13 AM
To:
Subject: Re: [68HC12] What function/pins to use for a transceiver??
MISO, MOSI, SS, SCK, TXD0, RXDO ??

do i need TXD0 and RXD0??
George Gogos
Undergraduate
BACHELOR OF ENGINEERING(Computronics/Electronics)
Deakin University, Australia ----- Original Message -----
From:
To:
Sent: Thursday, March 17, 2005 11:48 PM
Subject: Re: [68HC12] What function/pins to use for a transceiver??
In a message dated 3/17/05 7:25:50 A.M. Eastern Standard Time,
writes:

What can I use for transmitting and receiving via a transceiver? ==================================
Pretend the transmitter and receiver are a wire. Use the SCI.

===================================
The hint is the last 3 letters [Non-text portions of this message have been removed] Yahoo! Groups Sponsor
ADVERTISEMENT
----------------------------------------------------------------------------
--
> Terms of Service.
[Non-text portions of this message have been removed] Yahoo! Groups Sponsor
ADVERTISEMENT ----------------------------------------------------------------------------
--
> Terms of Service.
[Non-text portions of this message have been removed]




(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: What function/pins to use for a transceiver?? - Jani Soderstrom - Mar 17 15:35:00 2005


Hi George,

Don't forget that most chip vendors (not only Freescale) offer quite
good manuals. And this RF-NRF401 quite possibly includes a chip which is
very well documented. If you search for it (e.x. Google), you get your
hands to the application notes made by the manufacturer of nRF401. These
mention quite clearly what aspects of UART (SCI) must be considered that
the transmission could occur. I read some of these (for curiosity) and I
suggest that you read the data scrambling part very thoroughly.

But, before you try to test a transmission using wireless links, the
wired part (SCI) should work properly between these two E128s.

As mentioned before in this thread, I don't give you straight answers
because you have to learn to believe that you can find the necessary
information while looking at the static www sites and not to trust that
a person can be there for you, filtering and delivering information.

Jani >
>
> Hi guys,
>
> What can I use for transmitting and receiving via a transceiver? I
> have 2 9s12E128 Development Boards, and have 2 RF-NRF401 422Mhz
> single chip RF-Transceivers. I want to hook one to one Board and
> Transmit, and the other board with the other transceiver to receive.
> It will only be one way communication, so they wont both be sending
> and receiving. They only have a TXD and RXD pins to use for this,
> the other pins are for frequency select, am/fm, vcc, etc. So, I only
> need 2 pins for transmission.
>
> What functions are there for sending in the least complicated way? I
> will only be sending values between 0decimal and 200decimal, but
> have no idea what options are available to me, nor how to use them.
> Can someone please suggest how I can do this (well, what pins and
> what registers. I looked up IIC and SPI. can it just be as simple as
> using a port (say 2 pins of port A as output) and transmitting
> through that, and 2 pins of port A on the other boar as inputs and
> receiving that way? Would that work fine? Seems the simplest way,
> but im unsure. Please help





(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

RE: What function/pins to use for a transceiver?? - John Theofanopoulos - Mar 17 16:12:00 2005

> does TXD0 and RXD0 correspond to the SCI or anything, or is
> it as simple as using those two pins as if they were like a
> pin in port a or b, But theyre already configured as
> transmitting and receiving?
>
> I dont need anything flash for transmitting, like parity
> check, etc (not at this stage anyway). The SCI has pins like
> MOSI, MISO, SS, SCK....so all those pins need to be used,
> when I only need pins for transmitting and receiving (really
> on one board, I only need a pin for Transmitting, and on the
> other board I only need a pin for receiving)

Please stop flooding this group with misinformation. SCI does NOT have the
above mentionned pins. You are confusing SPI with SCI.

John


______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

RE: What function/pins to use for a transceiver?? - Edward Karpicz - Mar 17 17:24:00 2005

Guys,

Sorry if I provoked you to react to this thread instead of simply ignoring
it.

George,

Even people over 60 are using this list. Why? They are learning. They don't
stop learning and RTFManuals. Simple (at first glance) task of choosing
simple external ADC chip with good availability ant required specs may turn
into reading ~100 of datasheets from various manufacturers.
How proplems are solved, new chips, some specifics of HCS12 modules,
erratas, compilers, assemblers, part unsecuring, insights etc - all this
adds into great value for engineer, and all this is available here for free.
It's not paid service, neither it's a robot/database. _People_ are keeping
it up and runnig. Don't hurt them if you want to keep using this service,
don't foul the well! The first suggestion you got was _perfect_ answer to
your question. You ignored the answer, you ignored further answers and IMO
poisoned the wish to help. I hope you will change for better and come back
to ask and _to listen_. Regards,
Edward -----Original Message-----
From: George (Bigpond) [mailto:]
Sent: Thursday, March 17, 2005 8:51 AM
To:
Subject: Re: [68HC12] What function/pins to use for a transceiver??
Guys,

How old are you? Excuse me If I dont have the experience you all have, but
in 16, got myself at uni at this age, doing my engineering project already,
and have a very small window of time to do all this in, so I apologise if my
questions seem a little basic to you.......its because I have RTFFM and am
still stuck on a few things, as unlike all of you, I DO NOT KNOW THE HCS12
INSIDE OUT! Im sure you can understand this, and instead of replying back
like its some sort of flaming session, just dont reply....... George Gogos
Undergraduate
BACHELOR OF ENGINEERING(Computronics/Electronics)
Deakin University, Australia ----- Original Message -----
From: Edward Karpicz
To:
Sent: Friday, March 18, 2005 12:40 AM
Subject: Re: [68HC12] What function/pins to use for a transceiver?? You guys are extremely polite and must have nerves made of steel.

RTFM RTFM RTFM ... RTFFFFM >:-I

Edward ----- Original Message -----
From: <>
To: <>
Sent: Thursday, March 17, 2005 3:32 PM
Subject: Re: [68HC12] What function/pins to use for a transceiver?? >
> I second that sentiment. A modest amount of RTFM is common courtesy for
> this kind of email group.
>
>> MISO, MOSI, SS, SCK, TXD0, RXDO ??


______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

RE: What function/pins to use for a transceiver?? - Smiljanic, Sasha - Mar 17 17:34:00 2005


George,

as some else suggested start with MCU to MCU comms first, getting it working.

Second add the wireless stuff inbetween. Test and go from there.

Advice: Based on experince from what others here are doing, UART/SCI may not work well for wireless, developing a coding algorithim and bit bashing out a pin may be more suitable. (error correction!)

Either way, get two MCUs to communicate by wire first before implemeneting the wireless stuff. Others you will be looking for that damm in needle in a very large haystack.

Regards
Sasha > -----Original Message-----
> From: Mihai Vancea [mailto:]
> Sent: Friday, 18 March 2005 8:24 AM
> To:
> Subject: Re: [68HC12] What function/pins to use for a transceiver?? >
> Hi George
>
> If you look at http://www.nvlsi.no you will find the data sheet of the
> nRF401.
>
> Also there is an application note that describes methods of how to
> implement software routines to transfer data from one
> microcontroller to
> another via a nRF chip .
>
> You will find there that UART communication beetween nRF and micro is
> recomandated only at low rate.
>
> You might also think at pin toogle for interface.
>
> Mihai Vancea
> >
> > Hi George,
> >
> > Don't forget that most chip vendors (not only Freescale)
> offer quite
> > good manuals. And this RF-NRF401 quite possibly includes a
> chip which is
> > very well documented. If you search for it (e.x. Google),
> you get your
> > hands to the application notes made by the manufacturer of
> nRF401. These
> > mention quite clearly what aspects of UART (SCI) must be
> considered that
> > the transmission could occur. I read some of these (for
> curiosity) and I
> > suggest that you read the data scrambling part very thoroughly.
> >
> > But, before you try to test a transmission using wireless
> links, the
> > wired part (SCI) should work properly between these two E128s.
> >
> > As mentioned before in this thread, I don't give you
> straight answers
> > because you have to learn to believe that you can find the
> necessary
> > information while looking at the static www sites and not
> to trust that
> > a person can be there for you, filtering and delivering
> information.
> >
> > Jani
> >
> >
> > >
> > >
> > > Hi guys,
> > >
> > > What can I use for transmitting and receiving via a
> transceiver? I
> > > have 2 9s12E128 Development Boards, and have 2 RF-NRF401 422Mhz
> > > single chip RF-Transceivers. I want to hook one to one Board and
> > > Transmit, and the other board with the other transceiver
> to receive.
> > > It will only be one way communication, so they wont both
> be sending
> > > and receiving. They only have a TXD and RXD pins to use for this,
> > > the other pins are for frequency select, am/fm, vcc,
> etc. So, I only
> > > need 2 pins for transmission.
> > >
> > > What functions are there for sending in the least
> complicated way? I
> > > will only be sending values between 0decimal and 200decimal, but
> > > have no idea what options are available to me, nor how
> to use them.
> > > Can someone please suggest how I can do this (well, what pins and
> > > what registers. I looked up IIC and SPI. can it just be
> as simple as
> > > using a port (say 2 pins of port A as output) and transmitting
> > > through that, and 2 pins of port A on the other boar as
> inputs and
> > > receiving that way? Would that work fine? Seems the simplest way,
> > > but im unsure. Please help
> > >
> > >
> >
> >
> > Yahoo! Groups Sponsor ADVERTISEMENT
> >
> > Yahoo! Groups Links
> > To >
>
> Yahoo! Groups Links




(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )