AN2841 Freescale Semiconductor / Motorola, AN2841 Datasheet - Page 15

no-image

AN2841

Manufacturer Part Number
AN2841
Description
Using the Hall Decoder (HD) eTPU Function
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
4.2.2
This function enables commutation processing on one HD channel. This function has the following
parameter:
4.2.3
This function disables commutation processing on one HD channel. This function has the following
parameter:
4.2.4
This function sets the Direction value. Use this function when the automatic direction detection is off
(direction_on_off=ETPU_HD_DIRECTION_AUTO_OFF), in order to select which commutation
command is used. This function has the following parameters:
Freescale Semiconductor
channel_phaseB (uint8_t) - This is the Phase B channel number. This parameter should be
assigned a value of 0-31 for ETPU_A, and 64-95 for ETPU_B.
channel_phaseC (uint8_t) - This is the Phase C channel number. This parameter should be
assigned a value of 0-31 for ETPU_A, and 64-95 for ETPU_B.
channel_phaseD (uint8_t) - This is the Phase D channel number. This parameter should be
assigned a value of 0-31 for ETPU_A, and 64-95 for ETPU_B.
priority (uint8_t) - This is the priority to assign to the HD function. This parameter should be
assigned a value of:
— FS_ETPU_PRIORITY_HIGH
— FS_ETPU_PRIORITY_MIDDLE
— FS_ETPU_PRIORITY_LOW
channel (uint8_t) - This is the Phase A channel number. This parameter must be assigned the
same value as was assigned to the channel_phaseA parameter in the initialization routine. If there
are more HDs running simultaneously on the eTPU(s), the channel parameter distinguishes which
HD function is accessed.
channel (uint8_t) - This is the Phase A channel number. This parameter must be assigned the
same value as was assigned to the channel_phaseA parameter in the initialization routine. If there
are more HDs running simultaneously on the eTPU(s), the channel parameter distinguishes which
HD function is accessed.
channel (uint8_t) - This is the Phase A channel number. This parameter must be assigned the
same value as was assigned to the channel_phaseA parameter in the initialization routine. If there
are more HDs running simultaneously on the eTPU(s), the channel parameter distinguishes which
HD function is accessed.
int32_t fs_etpu_hd_set_commut_on ( uint8_t channel)
int32_t fs_etpu_hd_set_commut_off ( uint8_t channel)
int32_t fs_etpu_hd_set_direction( uint8_t channel, uint8_t
direction)
Using the Hall Decoder (HD) eTPU Function, Rev. 0
C Level API for Function
15

Related parts for AN2841