主题中讨论的其他器件:C2000WARE
大家好、
根据 USB_ex1_dev_serial (C:\ti\c2000Ware_4_02_00_00\driverlib\f2837xs\examples\CPU1\USB)的注释、此例程可用于 controlCARD。
如何将其应用于 LAUNCHXL-F28377S?
--
谢谢、此致
耶鲁李
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
大家好、
根据 USB_ex1_dev_serial (C:\ti\c2000Ware_4_02_00_00\driverlib\f2837xs\examples\CPU1\USB)的注释、此例程可用于 controlCARD。
如何将其应用于 LAUNCHXL-F28377S?
--
谢谢、此致
耶鲁李
您好、Yale、
您需要将相应的 C2000器件引脚连接并焊接到 USB 连接器。 您需要考虑以下信号、您应该能够更改其中某些信号的 GPIO#(但不包括 USB DM 和 DP、因为这些信号仅在特定器件引脚上)。
//******************************************************************************
//
//! Enables USB related GPIOs to perform their USB function.
//
//******************************************************************************
void USBGPIOEnable(void)
{
//
// Set the USB DM and DP.
//
GPIO_setMasterCore(42, GPIO_CORE_CPU1);
GPIO_setAnalogMode(42, GPIO_ANALOG_ENABLED);
GPIO_setMasterCore(43, GPIO_CORE_CPU1);
GPIO_setAnalogMode(43, GPIO_ANALOG_ENABLED);
//
// Set the direction for VBUS.
//
GPIO_setMasterCore(46, GPIO_CORE_CPU1);
GPIO_setDirectionMode(46, GPIO_DIR_MODE_IN);
//
// Set the direction for ID.
//
GPIO_setMasterCore(47, GPIO_CORE_CPU1);
GPIO_setDirectionMode(47, GPIO_DIR_MODE_IN);
GPIO_setMasterCore(120, GPIO_CORE_CPU1);
GPIO_setDirectionMode(120, GPIO_DIR_MODE_IN);
GPIO_setMasterCore(121, GPIO_CORE_CPU1);
GPIO_setDirectionMode(121, GPIO_DIR_MODE_OUT);
GPIO_writePin(121, 1);
}
最棒的
Kevin
您好、Yale、
在 USB 器件模式下、F2837x 器件并不需要原理图中的所有电路。
[引用 userid="514648" URL"~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1195076/tms320f28377s-how-to-applicate-usb-demo-to-launchxl-f28377s/4508977 #4508977"]是否需要 TPS2051BDBVR 和 TPD4S012DRYR?TPS2051BDBVR用于 控制 F2837x controlCARD 是接收电源(器件模式)还是提供电源(主机模式)。 TPD4S012DRYR 只是一个 ESD 二极管、很好用、但如果您不小心(即在 F2837x 器件未加电时不要连接)、您可能会在没有 ESD 二极管的情况下接受测试。
最棒的
Kevin
耶鲁大学
控制卡和 Launchpad 之间存在一些差异、需要加以注意
有关详细信息、请参阅以下文章
此致
Siddharth