This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PiccoloF28027 SCI Echoback Example with 115200Baud



Hi,

i try to run the Piccolo Echoback Example with 115200Baud but i see nothing on my Hyperterminal  (i also set my Hyperterminal setting to 115200)?

When using 9600 Baud everything works fine.

For 60MHz with 115200Baud i calculated my Sci Period Value with the formula :

BRR=(LSPCLK_FREQ/(SCI_FREQ*8))-1

where:

LSPCLK_FREQ = 60Mhz/4 = 15Mhz

SCI_FREQ = 115200

my Solution is  BRR =15.   Am i right here ? But when i change the Baudregisters to:

SCIHBAUD=0;

SCILBAUD=15;

 My Echoback doesnt work anymore?

any help apprechiated...

Thanks

Stefan Fischer

 

 

  • Hi, Stefan!

     

    Your math is right.

        #if (CPU_FRQ_60MHZ)
            SciaRegs.SCIHBAUD    =0x0000;  // 9600 baud @LSPCLK = 15MHz (60 MHz SYSCLK).
    //        SciaRegs.SCILBAUD    =0x00C2;
            SciaRegs.SCILBAUD    =0x000F;    //115200

    0x00F works fine here in siberia lol

    alex

     

  • Just got it working here, in South California!

        SciaRegs.SCIFFTX.all= 0xE040;
        SciaRegs.SCIFFRX.all= 0x2044;
        SciaRegs.SCIFFCT.all= 0x0;
    //    SciaRegs.SCIFFRX.bit.RXFFIENA =1;

        SciaRegs.SCICCR.all = 0x0007;       // 8,1,N,NoLoop,Async,Idle-line protocol
        SciaRegs.SCICTL1.all = 0x0003;      // enable TX, RX, internal SCICLK,
                                            // Disable RX ERR, SLEEP, TXWAKE
    //    SciaRegs.SCICTL1.bit.RXERRINTENA = 1;

        SciaRegs.SCICTL2.all = 0x0003;
        SciaRegs.SCICTL2.bit.TXINTENA = 1;
        SciaRegs.SCICTL2.bit.RXBKINTENA = 1;
        SciaRegs.SCIHBAUD    = 0x0000;
        SciaRegs.SCILBAUD    = 0x00C2;        // 9600 @ 60MHz
        SciaRegs.SCILBAUD    = 0x000F;        //115200 @ 60MHz
       
    SciaRegs.SCICCR.bit.LOOPBKENA = 1;        // Enable loop back 4 debug

        SciaRegs.SCICTL1.all = 0x0023;        // Relinquish SCI from Reset

    //    SciaRegs.SCIFFTX.bit.TXFIFOXRESET=1;
    //    SciaRegs.SCIFFRX.bit.RXFIFORESET=1;

  • Hi!

    I'm traying to configure the Sci module of the Piccolo LaunchPad using assambly instructions.

    The problem is that I can't get the informatión out bay the Txpin.

    I've enabled the Sciclk, configured the SlowClk and programed the required Gpio and Sci registers.

    On the Sci Reference guide says that once the TxBuf is written to, the TxEmpty on SciCtl2 register must be automatically cleared. And once I've written to the TxBuf, I have 0x00c0 on the SciCtl2, which means that the TxRdy and TxEmpty flag are set.

    I appreciate any help.

    Thank you!

  • Hi Hugo,

    Please open a new thread to get quick responses. This thread is inactive and old.

    Regards,

    Gautam