Reply by Nigel Johnson March 17, 20052005-03-17
Steve,

I have been involved with Motorola MCUs since 1974.

I didn't know about the zip files.

you've just saved me hours of research!

Thanks,
Nigel
Steve Russell wrote:

>George,
>
>To make manual reading easier, I get the entire .zip file of documentation
>from the Freescale web site, unpack it to its own directory, and then
>search for mysterious symbols with Acrobat reader. The current version of
>Acrobat Reader, version 6, downloadable for free, will search an entire
>directory.
>
>This makes it easy to track down things like SCI, SPI, PEAR, INITRM,
>COPCTL, etc.
>
>Googling for them produces plenty of hits, also.
>
>I appreciate that its hard to digest and internalize 1000 pages of trivia
>in a few weeks. We tend to forget how long it took us to learn something hard.
>
>I've been working with Freescale/Motorola 16-bit parts daily for more than
>5 years, but I still refer to the documentation so often that I fire up
>Acrobat and point it at the processor of the day when I start work.
>
> Steve Russell
> Nohau Emulators >At 05:50 AM 3/17/2005, you wrote: >
>>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 Links
>>
>> a.. To
>>
>>
>>
>>
>>
>>
>>
>>
>>Yahoo! Groups Links
>>
>>
>>
>>
>>
> >
>
>Yahoo! Groups Links >
>


--
Nigel Johnson
MCSE, MIEEE
VE3ID/G4AJQ

http://nigel.homelinux.net

If time travel ever will be possible, it already is. Ask me again yesterday


Reply by Smiljanic, Sasha March 17, 20052005-03-17

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 Links
> > To >
>
> Yahoo! Groups Links >
>



Reply by Edward Karpicz March 17, 20052005-03-17
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 ??




Reply by Mihai Vancea March 17, 20052005-03-17
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 Links
> To




Reply by Steve Russell March 17, 20052005-03-17
George,

To make manual reading easier, I get the entire .zip file of documentation
from the Freescale web site, unpack it to its own directory, and then
search for mysterious symbols with Acrobat reader. The current version of
Acrobat Reader, version 6, downloadable for free, will search an entire
directory.

This makes it easy to track down things like SCI, SPI, PEAR, INITRM,
COPCTL, etc.

Googling for them produces plenty of hits, also.

I appreciate that its hard to digest and internalize 1000 pages of trivia
in a few weeks. We tend to forget how long it took us to learn something hard.

I've been working with Freescale/Motorola 16-bit parts daily for more than
5 years, but I still refer to the documentation so often that I fire up
Acrobat and point it at the processor of the day when I start work.

Steve Russell
Nohau Emulators At 05:50 AM 3/17/2005, you wrote:

>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 Links
>
> a.. To >Yahoo! Groups Links >
>




Reply by John Theofanopoulos March 17, 20052005-03-17
> 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


Reply by Jani Soderstrom March 17, 20052005-03-17

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




Reply by Salvador Tenorio March 17, 20052005-03-17
Funny,

I just asked my 9 yo daugther about it (as an experiment, since she is very curious about what I do) and she told me she had no idea (no surprise, she really does not). Then aske me if "my book" wouldn't help me (looked at the manual in the book shelf). I guess is common sense.

So the message is simple, just dig the inforamtion a bit. I know sometimes is hard but common sense tells you to go see if there is anything in the manual.

The very first suggestion said "SCI", I would have immediately gone there and see if that would have solved my problem. The SCI is actually a simple thing (as opposed to the SPI).

No flame at all, just advice. You can always ask and someone will help but very few people have time to give you a very detail response about how to fully resolve your problem.

Regards,

Sal ---------------------------------


Reply by Daniel White March 17, 20052005-03-17
George,
This exchange has been fascinating. While you may be a genius, your lack of
experience is apparent. The HCS12 manual assumes that you already know how
serial communication works. You may need to look at texts on the subject,
several other design examples and maybe put a scope on some serial lines
before this will really make sense to you. This is what years of experience
do for you. I would suggest you search for application notes from the
vendors of both your CPU and your RF transceiver. There is almost always
some app note that shows you how to connect similar devices together and
even some source code. You will need to apply your genius to put the pieces
together for your specific system but you will find that very little is
truly new and the web is a great resource for engineers.

Unless procrastination is the problem, you have not been given a reasonable
amount of time to complete this project IMHO. Your genius may allow you to
complete your project in the unreasonable time frame you have but I would
have trouble learning anything from the experience that would stick with me
when rushed like that and learning should be the #1 goal while in school.

The point being made by the members of this forum is that you are going to
have to do your own homework and this is the only way you are going to learn
something from the experience anyway. So, please, take the advice you have
been given and read up on the subject before coming back with more
questions.

-Dan White

-----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 ??
----
--
Yahoo! Groups Links

a.. To Yahoo! Groups Links



Re: What function/pins to use for a transceiver??
Reply by Mark Wyman March 17, 20052005-03-17
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
----
--
> Terms of Service.
----
--
> Terms of Service.