<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Did not get &amp;quot;Constant carrier wave output for testing&amp;quot; working on nRF24L01+</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33596/did-not-get-constant-carrier-wave-output-for-testing-working-on-nrf24l01</link><description>Hello, 
 Like in the description, I dont get this to work. Im trying to get The nRF24L01+ connected to a PIC16LF18345. I did Some Pictures of the SPI logic and Here is a Part of the Code Ive written of the configuration for carrier Signal like described</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 21 Apr 2018 16:33:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33596/did-not-get-constant-carrier-wave-output-for-testing-working-on-nrf24l01" /><item><title>RE: Did not get "Constant carrier wave output for testing" working on nRF24L01+</title><link>https://devzone.nordicsemi.com/thread/129215?ContentTypeID=1</link><pubDate>Sat, 21 Apr 2018 16:33:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ffdf201-632b-417a-9036-9665a7e28379</guid><dc:creator>Daniy666</dc:creator><description>&lt;p&gt;Wow &lt;span style="background-color:transparent;color:#11171a;float:none;font-family:&amp;#39;GT Eesti&amp;#39;,&amp;#39;Helvetica&amp;#39;,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:21px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;H&amp;aring;kon i have to Tank You. I did the wires completely new and used a Plug instead this shitty breadboard, and now ist Working &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Did not get "Constant carrier wave output for testing" working on nRF24L01+</title><link>https://devzone.nordicsemi.com/thread/129214?ContentTypeID=1</link><pubDate>Sat, 21 Apr 2018 15:58:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef3b80bb-2af9-4aed-beeb-a92e018f47dd</guid><dc:creator>Daniy666</dc:creator><description>&lt;p&gt;The Connection Looks good i Think. Ive set the Frequency down to 32kHz for the best possible stability for the spi but...could it be the High Level of the MOSI/MISO pin between the 2 Transactions which will cause the Problem? But then it will be the nRF because the uC will take this lines low like in the Programm and, at the end of the scnd Transaction we see this too. I did a lot of testing with caps and resistors like in the datasheet, also tried something like Pull down resistors as Ive read on the Internet which worked for someone using a pic uC.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for Your Time&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Daniel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Did not get "Constant carrier wave output for testing" working on nRF24L01+</title><link>https://devzone.nordicsemi.com/thread/129142?ContentTypeID=1</link><pubDate>Fri, 20 Apr 2018 12:32:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc4cab90-17bc-4ed3-9c3c-6cb4b5483317</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It looks like the device is responding with 0x21 in the first transaction, which is the STATUS register that is shifted out on the MISO pin. This indicates that the TX FIFO is full, and MAX_RT is set.&lt;/p&gt;
&lt;p&gt;In the second transaction, it looks like data is echoed at MISO/MOSI.&lt;/p&gt;
&lt;p&gt;The datasheet states:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The content of the status register is always read to MISO after a high to low transition on CSN.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This does not seem to be the case in your logic trace. I would recommend that you check your wired connections.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Did not get "Constant carrier wave output for testing" working on nRF24L01+</title><link>https://devzone.nordicsemi.com/thread/129056?ContentTypeID=1</link><pubDate>Thu, 19 Apr 2018 20:11:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fe96706-47d8-4fb9-ad9c-d14ddca671aa</guid><dc:creator>Daniy666</dc:creator><description>&lt;p&gt;For &amp;quot;&lt;span style="background-color:transparent;color:#11171a;float:none;font-family:&amp;#39;GT Eesti&amp;#39;,&amp;#39;Helvetica&amp;#39;,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:21px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;I have not implemented the Interrupt Routine because there was no Need for the RF carrier Signal in the PDF but if it will help i will add it just tell me.&lt;/span&gt;&amp;quot; I mean the Interrupt pin on the nRF, the Code Ive posted is already implemented an working&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Did not get "Constant carrier wave output for testing" working on nRF24L01+</title><link>https://devzone.nordicsemi.com/thread/129051?ContentTypeID=1</link><pubDate>Thu, 19 Apr 2018 19:29:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e71cf946-4e38-4e32-bf85-c28e6ffa67cc</guid><dc:creator>Daniy666</dc:creator><description>&lt;p&gt;Here is some Addition Code which my help finding the Problem&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/// HERE A PAT OF MY INTERRUPT ROUTINE 

void interrupt ISR()
   {
    if (spi_Aktiv == 1)
    
    {
        if (SSP2STATbits.BF == 1)       //BUFFER FULL
        {
            SSP2IF = 0;                 //INTERRUPT FLAG
            spi_BF = 1;                 //BUFFER FULL bit f&amp;#252;r SPI.H
        }
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/// HERE IS MY SPI FILE (comments in german sry:/)

unsigned char spi_Aktiv = 0;    //Bit f&amp;#252;r ISR setzen bedeutet: Interrupt betrifft SPI
unsigned char spi_BF = 0;       //Fuffer Full detection Bit
void spi_init(){

//PORT B 
    PORTBbits.RB5 = 0;
    PORTBbits.RB7 = 0;
    TRISBbits.TRISB5 = 1;       //Eingang Data In
    TRISBbits.TRISB7 = 0;       //Ausgang Clock
    ANSELBbits.ANSB5 = 0;
    ANSELBbits.ANSB7 = 0;
    LATBbits.LATB5 = 0;
    LATBbits.LATB7 = 0;
    ODCONBbits.ODCB5 = 0;
    ODCONBbits.ODCB7 = 0;
    SLRCONBbits.SLRB5 = 0;
    SLRCONBbits.SLRB7 = 0;
    INLVLBbits.INLVLB5 = 0;
    INLVLBbits.INLVLB7 = 0;
    
 //PORT C   
    PORTCbits.RC1 = 0;
    PORTCbits.RC2 = 0;
    PORTCbits.RC6 = 0;
    PORTCbits.RC7 = 0;

    TRISCbits.TRISC1 = 1;       //Eingang Interrupt
    TRISCbits.TRISC2 = 0;       //Ausgang Data OUT
    TRISCbits.TRISC6 = 0;       //Ausgang Slave Select
    TRISCbits.TRISC7 = 0;       //Ausgang R/W

    ANSELCbits.ANSC1 = 0;
    ANSELCbits.ANSC2 = 0;
    ANSELCbits.ANSC6 = 0;
    ANSELCbits.ANSC7 = 0;

    LATCbits.LATC1 = 0;
    LATCbits.LATC2 = 0;
    LATCbits.LATC6 = 0;
    LATCbits.LATC7 = 0;

    ODCONCbits.ODCC1 = 0;
    ODCONCbits.ODCC2 = 0;
    ODCONCbits.ODCC6 = 0;
    ODCONCbits.ODCC7 = 0;

    SLRCONCbits.SLRC1 = 0;
    SLRCONCbits.SLRC2 = 0;
    SLRCONCbits.SLRC6 = 0;
    SLRCONCbits.SLRC7 = 0;

    INLVLCbits.INLVLC1 = 0;
    INLVLCbits.INLVLC2 = 0;
    INLVLCbits.INLVLC6 = 0;
    INLVLCbits.INLVLC7 = 0;

//PPS
//-Input
    INTPPS = 0b00010001;  // RC1 Interrupt
    
    //SSP2CLKPPS = 0b00001110; // Clock
    SSP2DATPPS = 0b00001101; //RB5 Data
    //SSP2SSPPS = 0b00001101; //Slave Select
//-Output
    //RB5PPS = 0b00000000; // -&amp;gt; LATB5 SDI2 MISO
    RB7PPS = 0b00011010; // -&amp;gt; SCK2
    //RC1PPS = 0b00000000; // -&amp;gt; LATC1 INTERRUPT
    RC2PPS = 0b00011011; // -&amp;gt; SDO2 MOSI
    //RC6PPS = 0b00000000; // -&amp;gt; !SS  SlaveSelect
    //RC7PPS = 0b00000000; // -&amp;gt; LATC7 NRF R/W
//spi
    SSP2ADD = 0b11111111;  //Fosc/(4*(SSPADD[31]+1)) -&amp;gt; 250Kbit
    PORTCbits.RC6 = 1;      //!Slave Select deaktivieren
    SSP2STAT = 0b11000000; // CKE = 1;
    SSP2CON1 = 0b00101010; // SSPEN; CKP = 0; use SSPADD
    SSP2CON3 = 0b00000000; // Bit 4 BOEN vlt falsch
//Interrupt
    INTCONbits.GIE = 1; //GIE + PEIE = 1
    INTCONbits.PEIE = 1;
    INTCONbits.INTEDG = 1; //Positive Flanke
    PIE0bits.IOCIE = 1; //Periperie Interrupt freischalten
    IOCCP = 0b00000010; //RC1 = interrupt mit Positiver Flanke
    SSP2IE = 1;
}


void spi_start(){
    spi_Aktiv = 1;          //F&amp;#252;r interrupt
    PORTCbits.RC6 = 0;      //!Slave Select aktivieren
}

unsigned char spi_rx(unsigned char txbyte){

    SSP2BUF = txbyte;       //Daten in Buffer Schreiben und &amp;#220;bertragung starten
    while(spi_BF == 0){}    //Warten bis Buffer Voll ist (interrupt))
    spi_BF = 0;
    return SSP2BUF;         // Daten aus Buffer Lesen und in spi_rx zur&amp;#252;ckgeben
                    }

void spi_stop(){

    spi_Aktiv = 0;
    PORTCbits.RC6 = 1;      //!Slave Select deaktivieren
    spi_BF = 0;             ////Fuffer Full detection Bit l&amp;#246;schen
    
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have not implemented the Interrupt Routine because there was no Need for the RF carrier Signal in the PDF but if it will help i will add it just tell me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Did not get "Constant carrier wave output for testing" working on nRF24L01+</title><link>https://devzone.nordicsemi.com/thread/129050?ContentTypeID=1</link><pubDate>Thu, 19 Apr 2018 19:21:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af5a04fb-cc98-4646-bc55-cc25a50e52e3</guid><dc:creator>Daniy666</dc:creator><description>&lt;p&gt;Guys Pls help. I have to create my Technician Work for my State-certified technician for electrical Engineering exam and have this IC choosen for my RF Transaction but atm im desperated and didnt kno how to get this Little step Working for further programming...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Did not get "Constant carrier wave output for testing" working on nRF24L01+</title><link>https://devzone.nordicsemi.com/thread/129018?ContentTypeID=1</link><pubDate>Thu, 19 Apr 2018 14:41:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a548f89-010b-476b-8d9d-18aa2508b739</guid><dc:creator>Daniy666</dc:creator><description>&lt;p&gt;I have Updated Some Setting because i did a big mistake @ sending data over SPI, but after all, i just dont get this sending a carrier frequency, i have updated the Code in the original post and added a new Picture. Maybe it is the spi but idk what I did wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>