Part Number: LAUNCHXL-F280049C
Other Parts Discussed in Thread: BOOSTXL-DRV8320RS
Hi Ti,
I am trying to port the instaspin lab 11e of 69M to F280049C(lab 5). the belows are what I did:
Hardware:
1. Connect the related pins to EQEP1 on the launchpad 49C.
2. setting position 2 (LEFT) of S3 to 0 (DOWN), and S4 is set to 1 (UP).
Software:
1. defined the _EQEP_EN_ in hal_obj.h.
2. changed the GPIO 35,37,59 settings as below for the EQEP1.
comments the below lines:
GPIO_setMasterCore(35, GPIO_CORE_CPU1);
GPIO_setPinConfig(GPIO_35_TDI);
GPIO_setMasterCore(37, GPIO_CORE_CPU1);
GPIO_setPinConfig(GPIO_37_TDO);
GPIO_setMasterCore(59, GPIO_CORE_CPU1);
GPIO_setPinConfig(GPIO_59_GPIO59);
GPIO_setDirectionMode(59, GPIO_DIR_MODE_IN);
GPIO_setPadConfig(59, GPIO_PIN_TYPE_STD);
add the below lines:
GPIO_setMasterCore(DEVICE_GPIO_PIN_EQEP1A, GPIO_CORE_CPU1); //35
GPIO_setPinConfig(DEVICE_GPIO_CFG_EQEP1A);
GPIO_setQualificationMode(DEVICE_GPIO_PIN_EQEP1A, GPIO_QUAL_3SAMPLE);
GPIO_setMasterCore(DEVICE_GPIO_PIN_EQEP1B, GPIO_CORE_CPU1); //37
GPIO_setPinConfig(DEVICE_GPIO_CFG_EQEP1B);
GPIO_setQualificationMode(DEVICE_GPIO_PIN_EQEP1B, GPIO_QUAL_3SAMPLE);
GPIO_setMasterCore(DEVICE_GPIO_CFG_EQEP1I, GPIO_CORE_CPU1); //59
GPIO_setPinConfig(DEVICE_GPIO_CFG_EQEP1I);
GPIO_setQualificationMode(DEVICE_GPIO_CFG_EQEP1I, GPIO_QUAL_3SAMPLE);
then I ported the HALLBLDC_State_Check and watching the gHall_GpioData. I only got 4,5,7 for gHall_GpioData, which was wrong for the hall status.
Is there anything wrong for the changes? please help. thanks!