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 |
What function/pins to use for a transceiver??
Started by ●March 17, 2005
Reply by ●March 17, 20052005-03-17
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. |
Reply by ●March 17, 20052005-03-17
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. ------ Yahoo! Groups Links a.. To |
Reply by ●March 17, 20052005-03-17
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 |
Reply by ●March 17, 20052005-03-17
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 ------ Yahoo! Groups Links a.. To |
Reply by ●March 17, 20052005-03-17
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. |
Reply by ●March 17, 20052005-03-17
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. ------ Yahoo! Groups Links a.. To |
Reply by ●March 17, 20052005-03-17
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. |
Reply by ●March 17, 20052005-03-17
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 ●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) 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. ------ Yahoo! Groups Links a.. To |