infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 10 of 10

Thread: Tle5012b e1000

  1. #1

    Tle5012b e1000

    Hello

    I would like to interface the TLE5012B E1000 with the SPI interface of a PIC32 Microcontroller.
    Now, I am a bit confused because of the Bidirectional Dataline.

    Currently I am using the hardware setup as in point 3.5.1 Figure 16. I have connected the SDO and SDI Line from the PIC32.

    My code looks as followed:
    Code:
     mPORTGSetPinsDigitalOut( BIT_7 );
            mPORTGSetPinsDigitalOut( BIT_8 );
    
            SelectSensor();
            SpiChnPutC(SPI_CHANNEL2, 0x8021);
            while(SpiChnIsBusy(SPI_CHANNEL2));
                      
            mPORTGSetPinsDigitalIn( BIT_7 );
            mPORTGSetPinsDigitalIn( BIT_8 );
            
            spi_read = SpiChnGetC(SPI_CHANNEL2);// & 0b0111111111111111;
            DeselectSensor();
    But the PIC does not receive anything. Furthermore the Data line is not changing at all.

    Could you please give me a hint?
    Thanks in advance

    Cheers,
    Chris

  2. #2

    Infineon Employee
    Infineon Employee
    Lars Springstubbe is on a distinguished road
    Join Date
    Jun 2012
    Location
    Munich
    Posts
    7
    Points
    49.0625
    Hi Chris,

    You are using the subtype 1000.This means the sensor uses IIF as communication type.
    Is this your purpose?

    Within the TLE5012B, the incremental interface is implemented like a quadrature encoder with a 50% duty cycle.
    Sensors with preset IIF are available as TLE5012B E1xxx. The register settings for these sensors can be found
    in the latest Application Note TLE5012B Register Setting; section 4


    Here you find further info:

    http://www.infineon.com/dgdl/TLE5012...3bb81db7c13cb1

    and

    http://www.infineon.com/dgdl/TLE5012...350f31c43c433f

    Please let me know if there is anything else I can assist you with!

    best regards

    Lars
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  3. #3
    So how can i use SPI for reading angle value and other information? Is there any way to enable SPI?

  4. #4
    Hi VineetNidec,
    to my mind you do not have to enable the SPI.
    The important thing is that you need an SPI where MTSR can be tristaded (enable signal for output stage) or MTSR is open drain output.
    Both setups can be found in the datasheet of the TLE5012B in Figure 3-6 and Figure 3-7: http://www.infineon.com/dgdl/Infineo...350f31c43c433f
    Is one of these configurations possible with your controller?
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  5. #5
    Hi Mathias,

    I'm using STM32F3 along with TLE5012B E1000. I have configured the MCU as half duplex master. My setup looks like the one shown in Figure 3.6. This is how I've connected the two:

    MCU TLE5012B
    SCK------------->SCK
    NSS------------->CSQ
    MOSI------------>DATA

    I can send the data but I only receive 0xFFFF from the sensor. There is no change in the data received from the sensor when I rotate the motor shaft. The IIF output is correct though.

  6. #6
    pauliine is on a distinguished road
    Join Date
    Nov 2014
    Location
    Hamilton
    Posts
    3
    Points
    17.5
    Can I enable SPI? Thanks (:

  7. #7
    I have the same problem when I using SPI interface of Renesas RL78/F13 and tried to receive angle value from TLE5012B. Then Read Angle Value command word 0x8021 was sent successfully but there was no angle value feedback after a sufficient twr_dealy, only showed 0xFFFF. I am using bidirectional data line as well, I exchange SO pin into input mode in order to release data line to SI pin after transmitted the command word, while it was still not working. Could you please give me a hint or if there's some sample code available? Thanks.
    Click image for larger version

Name:	1.png
Views:	13
Size:	9.6 KB
ID:	1219Click image for larger version

Name:	2.png
Views:	15
Size:	14.1 KB
ID:	1220Click image for larger version

Name:	3.png
Views:	16
Size:	15.5 KB
ID:	1221Click image for larger version

Name:	4.jpg
Views:	22
Size:	147.0 KB
ID:	1222

  8. #8
    Beginner Beginner
    Infineon Employee
    Infineon Employee
    Schulz is on a distinguished road
    Join Date
    Sep 2014
    Posts
    16
    Points
    93.90625
    Please tell us the used subtype Exxxx of the TLE5012B and upload schematics of the TLE5012B. The screenshot is showing the same signal on the data lines SI00 and SO00? Which SPI mode you are using on RL78 SPI Interface?
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  9. #9
    laxmank is on a distinguished road
    Join Date
    Aug 2013
    Posts
    3
    Points
    22.5
    Can anyone provide me the SSC connection between Microcontroller(freescale) and TLE5012B IC.???
    Thanks in Advance !!!

  10. #10
    New Member New Member aksharap is on a distinguished road
    Join Date
    Jun 2015
    Posts
    4
    Points
    80
    Quote Originally Posted by haiming0620 View Post
    I have the same problem when I using SPI interface of Renesas RL78/F13 and tried to receive angle value from TLE5012B. Then Read Angle Value command word 0x8021 was sent successfully but there was no angle value feedback after a sufficient twr_dealy, only showed 0xFFFF. I am using bidirectional data line as well, I exchange SO pin into input mode in order to release data line to SI pin after transmitted the command word, while it was still not working. Could you please give me a hint or if there's some sample code available? Thanks.
    Attachment 1219Attachment 1220Attachment 1221Attachment 1222


    Hi.. Looking at your code,seems as if you are not clearing the interrupt after every read i.e.Clear the interrupt after receiving each frame.

+ Reply to Thread
Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.