Here is the example code demonstrating usage of BATS module integrated in MagniV devices such as S12ZVM, S12ZVC, S12ZVL etc.
Find detailed description in the projects main.c file.
The example project was created in CodeWarrior IDE v10.6.4 and tested on TRK-S12ZVL board.