Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 217056

Forum Post: RE: TMS320F28335: Trying to do Label recognition from holt HI-35850 with TMS320F28335

$
0
0
Hi, Yes we are trying to communicate between F28335(master) and HI35850(slave) using 16 bit word. Yes, Your understanding is correct. Answer for questions: 1. Yes I had monitored SPI lines behavior, they are valid. If i give configuration of Conrol registers without Label recognition selection transmission and reception is happening properly. Configuration of control registers without Label recognition: (with this configuration transmission and reception are happening) Here using control registers CR5, CR13 /* Enable Mcu2 CS line */ Mcu1_Spi_Mcu2_CsLow(); /* write the byte-1 control register opcode for configuration */ Mcu1_Spi_Write(0x1000); /* Control Word byte-2 for configuration */ Mcu1_Spi_Write(0x2000); /* Control Word byte-3 for configuration */ Mcu1_Spi_Write(0x2000); /* Read dummy byte-1 from Mcu2 for control word */ read_config_dummy_Mcu2 = Mcu1_Spi_Read(); /* Read dummy byte-2 from Mcu2 for control word */ read_config_dummy_Mcu2 = Mcu1_Spi_Read(); /* Read dummy byte-3 from Mcu2 for control word */ read_config_dummy_Mcu2 = Mcu1_Spi_Read(); /* Disable Mcu2 CS line */ Mcu1_Spi_Mcu2_CsHigh(); when I configure along with Label recognition, reception is not completing. Configuration of control registers with Label recognition: Here using control registers CR2, CR5, CR13 /* Enable Mcu2 CS line */ Mcu1_Spi_Mcu2_CsLow(); /* write the byte-1 control register opcode for configuration */ Mcu1_Spi_Write(0x1000); /* Control Word byte-2 for configuration */ Mcu1_Spi_Write(0x2000); /* Control Word byte-3 for configuration */ Mcu1_Spi_Write(0x2400); /* Read dummy byte-1 from Mcu2 for control word */ read_config_dummy_Mcu2 = Mcu1_Spi_Read(); /* Read dummy byte-2 from Mcu2 for control word */ read_config_dummy_Mcu2 = Mcu1_Spi_Read(); /* Read dummy byte-3 from Mcu2 for control word */ read_config_dummy_Mcu2 = Mcu1_Spi_Read(); /* Disable Mcu2 CS line */ Mcu1_Spi_Mcu2_CsHigh(); 2. 0xE01111C0 is transmitted from F28335 to HI35850. This is supposed to be received by HI35850. We are able to do transmission and reception wihtout label recognition configuration. 3. Yes I had tried going step through in code line by line, in that time it was looping in this for loop only, this for loop we are using to copy our LabelArray to holt memory. It is starting from 31 index and going to negative numbers, (we saw this code in holt example, will attach that document here) Mcu1_Spi_Mcu2_CsLow(); /* Transmit opcode for label*/ Mcu1_Spi_Write(0x0600); /* Read dummy byte for data filed address */ read_config_dummy_Mcu2 = Mcu1_Spi_Read(); /*for loop to copy label array to holt memory*/ for(label_index=31; label_index>=0; label_index--) { Mcu1_Spi_Write(LabelArray[label_index]); read_config_dummy_Mcu2 = Mcu1_Spi_Read(); } /* Disable Mcu2 CS line */ Mcu1_Spi_Mcu2_CsHigh(); ***we saw RXEMU register it is having 0x0009 it means FIFO is empty. I tried changing the loop values as for(label_index=0; label_index<=31; label_index++) even with this we are not able to get label filter. But transmission is completing e2e.ti.com/.../an_2D00_140_5F00_v_2D00_rev_2D00_d-_2800_1_2900_.pdf

Viewing all articles
Browse latest Browse all 217056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>