Hardware manual

51
Fig. 5.3.13-3. Phase tables generated with
pxmc_init_ptable_sin3fup.
Fig. 5.3.13-4. Phase tables generated with
pxmc_init_ptable_trapez.
Fig. 5.3.13-4. Phase tables generated with
pxmc_init_ptable_triang.
5.4. How to start work with the PXMC.
Nowadays, the way of starting to work z PXMC is quit simple and easy. Firstly, we need to
include to our project or application pxmc.h file and additionally pxmcbsp.h. First file gives us
access to all general PXMC functions. The second file can contain functions and/or other
elements or structures which are specific only for board which we are using to control some
motor.
After that, we need to create a pxmc_state_list_t pxmc_main_list list, as it was described in
subsection 5.3.3. This list contains the whole list of motors which we want to control with our
application.
The next basic step is to make initialization of the PXMC and the microcontroller. In general we
can do it very easily just by calling the function: pxmc_initialize(). In the case when we are using