Datasheet
Table Of Contents
- Figure 1. EVAL6460 demonstration board
- 1 The L6460 main features
- 2 EVAL6460 board description
- 3 The EVAL6460 controlled by the EVAL_IBU-STR7
- Figure 5. EVAL_IBU-STR7 board
- Figure 6. EVAL_IBU-STR7 schematic board
- 3.1 Board connection and configuration
- 3.2 Starting flexSPIN evaluation software
- Figure 13. FlexSPIN evaluation software - start window
- 3.2.1 How to turn-on the VswDrv regulator
- 3.2.2 How to enable the DC1 and DC2 output bridges
- 3.2.3 How to enable the DC3 and DC4 output bridges
- 3.2.4 How to assign and read a GPIO
- 3.2.5 How to read and clear an undervoltage event
- 3.2.6 How to manage the interrupt controller
- 3.2.7 How to put the device into "low power" condition and awaken it
- 3.2.8 How to generate a PWM
- 3.2.9 How to close the low voltage power switch
- 3.2.10 How to measure an input voltage using A-D converter
- 3.2.11 How to use the digital comparator
- 3.2.12 How to configure and program the device via the SPI sequencer
- 3.2.13 How to read the device temperature
- 3.2.14 How to work in master - slave configuration
- 4 Revision history

AN3097 The EVAL6460 controlled by the EVAL_IBU-STR7
Doc ID 16599 Rev 2 31/34
● To choose a statement use the + or - buttons near the "Statement" field. The instruction
set is:
– Add/sub/mul/div: add/subtract/multiply/divide a variable and a constant, the result
is put into the variable register
– Inc/dec: increment/decrement a variable of 1 unit
– Logicaland/or/exor: make the and/or/exor logical operation between a variable and
a constant. The result is put into the variable register
– Compare: compare a variable with a constant. The result indicates that the
variable is lesser, equal or greater than the constant
– Delay: stop the execution for a specified time expressed in milliseconds
– End: indicate the end of the program, it must be the last statement
– Label: assign a label to the statement (hex format)
– Goto: jump to the label indicated
– If: continue the execution starting from a label until the result of compare is the set
one, otherwise jump to the successive statement
– Read: read the register value and assign it to a variable
– Readtemperature: read the device temperature using the integrates A-to-D. The
value is displayed in the "Temperature" window
– Repeat: repeat the label for the indicated times
– Setdigio: no operation
– Stopprocedure: set the routine which is executed if the STOP button is pushed
– Write: write a constant in the indicated device register (hex format)
– Writevar: write a variable in the indicated device register (hex format)
Note: Each loop created with if, goto or repeat statement must include a delay statement,
otherwise the program does not respond to the STOP command.
The execution time of a write or writevar instruction is about 6 ms, read about 9 ms and
readtemperature about 35 ms. The other operations are faster and depend on the PC used.
The readtemperature instruction changes the A-to-D converter settings.
The numbers written in the window field are intended as hex values.
For more details on device registers refer to the L6460 user manual.
3.2.13 How to read the device temperature
The internal A-D converter can be used to measure a voltage proportional to the IC
temperature; you can display the resulting temperature directly by pushing the "Thermal
Manager" button in the L6460 window (Figure 36). By pushing the "Start Thermometer"
button, the value read starts to appear in the graph: yellow is sensor 1 and cyan is sensor 2
(time division 2 seconds).