Oi Pedro,
Obrigado por responder.
Don't worry about the previous code I posted, I mis-read something and
ACLK should not have been used since I don't have an external clock
source, it's SMCLK now...
The problem I am having now is that I cannot detect any signals coming out of
TXBUF0. I plugged it in a logic analyser and nothing comes out.
Bellow is my setup() function. I don't quite know what might be wrong, my
prof. looked over it and didn't find anything wrong either, hopefully you
can.
Thank you in advance.
-helio
---code bellow------
void setup (void)
{
//port/pin setup for the specialCOMM
P3DIR |= BIT4;
P3SEL |= BIT4; // Select pins to alternate function
//clock setup
BCSCTL1 = 0x04;
BCSCTL2 |= 0x88;
//INITIALIZE serial port 0
UCTL0 = CHAR | SWRST; // 8 bit chars - leave in reset mode
UTCTL0 = 0x20; // uclk = smclk
UBR10 = 0x01; // 3.6864MHz/9600bps = 384 = 0x180
UBR00 = 0x80;
UMCTL0 = 0x00;
ME1 |= UTXE0; // Enable Tx0
UCTL0 = CHAR; // 8 bit chars - take out of reset
IE1 |= UTXIE0; //enable Tx0 interrupt
eint();
}
On Mon, 16 Jun 2003 09:39:25 -0300, Pedro Zorzenon Neto wrote:
> Hi helick,
>
> Some radio require CTS/RTS control pins of RS232. Can you send us a
> link to SS900 radio datasheet?
>
> What is the oscilator you are using in MSP430? external cristal? what
> is the frequency? You could try to lower the baud rate to 300bps just
> for testing purposes.
>
> Hope this helps,
> Pedro
>
> On Sat, Jun 14, 2003 at 05:18:36PM -0400, helick wrote:
>> Hi all,
>>
>> I am having a little problem.
>> I am using my msp430f149 to go out and get some data out of my solar car
>> and transmit it out using a RF data radio which understands rs232.
>> The program in this message illustrates how I am trying to acomplish this.
>> I created a dummy char array filled with 'a' chars, then I just try to
>> send it out. The problem I am having is that the radio does not even
>> twitch. I know they are working because I have connected them to a couple
>> machines and they talked.
>> I did get the ckt working, so I am pretty sure it's a problem with my code.
>>
>> Anyways, here is what I am using:
>> - Newlink SS-900 radio (set to 9600bps)
>> - max3233eepp rs232 transceiver
>>
>> I am thinking that maybe I've set my clk/baud incorrectly for
>> 9600bps...
>>
>> I appreciate any help.
>> -helio
>
> --- cut the code ---
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by: eBay
> Great deals on office technology -- on eBay now! Click here:
> http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5