TLE5012B  3.1.0
The TLE5012B is a pre-calibrated 360° angle sensor that detects the orientation of a magnetic field. The raw signals (sine and cosine) are digitally processed internally to calculate the angle orientation of the magnetic field (magnet).
E9000SPC.cpp File Reference
Include dependency graph for E9000SPC.cpp:

E9000SPC

This example shows how to handle the TLE5012B-E9000 variant with SPC interface

Author
Infineon Technologies AG
Version
3.1.0

The TLE5012B-E9000 with SPC interface does not start the DSP automatically in a loop at start up. It will need a certain trigger on the IFA pin of the sensor. This trigger must be in a 90 UT time frame at least 12 UT long for the first sensor. By multiplying the 12 UT with the sensor slave number up to four sensors can be triggered. This trigger setting UT the unittime must multiplied with the sensors base unittime which is default 3.0µs. Setting the IFA pin to low and waiting atleast the total trigger time will set all registers by the DSP. For more information please read the SPC Interface section of the manual. The default setup ist:

  • unittime =3.0µs,
  • total trigger time = 90 * 3.0µs = 270 µs
  • t_mlow the time for the first sensor to trigger = 12 * 3.0µs = 36 µs so we have to set the IFA pin 36µs to low, than back to high and wait (90-12)*3.0µs = 224µs

SPDX-License-Identifier: MIT

#define IFA   WICED_GPIO_9
 < More...
 
float unitTime = 3.0
 UT is default 3.0µs but will be read with getHysteresisMode. More...
 
float triggerTime = 90
 trigger total time is default 90UT * 3.0µs More...
 
float t_mlow = 12
 trigger will last default for 12 * 3.0µs More...
 
Tle5012Wiced Tle5012Sensor = Tle5012Wiced()
 
errorTypes checkError = NO_ERROR
 
updTypes upd = UPD_high
 
void setup ()
 
void loop ()
 
void application_start ()
 

Macro Definition Documentation

◆ IFA

#define IFA   WICED_GPIO_9

<

WICED_GPIO pin number of IFA

Function Documentation

◆ setup()

void setup ( )
Here is the call graph for this function:

◆ loop()

void loop ( )
Here is the call graph for this function:

◆ application_start()

void application_start ( )
Here is the call graph for this function:

Variable Documentation

◆ unitTime

float unitTime = 3.0

UT is default 3.0µs but will be read with getHysteresisMode.

◆ triggerTime

float triggerTime = 90

trigger total time is default 90UT * 3.0µs

◆ t_mlow

float t_mlow = 12

trigger will last default for 12 * 3.0µs

◆ Tle5012Sensor

Tle5012Wiced Tle5012Sensor = Tle5012Wiced()

◆ checkError

errorTypes checkError = NO_ERROR

◆ upd