Other Parts Discussed in Thread: CONTROLSUITE
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.
I can help with specific questions about how to use the TM4C microcontrollers, but I don't provide generic design support. Do you have a specific question?
(1) Bob,thank you.now i find a more complex question is that if i want to sample 5 points at different frequency,if only use sequence 0,i don't know how to get the sampling results,samppling result will be mixed, isn't it?
(2)And Bob,I find a example(C:\ti\controlSUITE\development_kits\TMDSSOLARUINVKIT_v100\Docs) in Controlsuite
(I know it is not for tm4c,but i want to try how to achieve its function in tm4c,you know i am running for a competetion),
which is tend to control the mosfet using PWM,I need to produce 4 channels PWM Wave in the right of the picture above
first ,I need a Complementary pWM wave,its frequency is 50Hz, I can use 16Mhz/5/64000 to get it,or use timer(but no dead band).
it's easy for me now,
Bob,you are more experienced ,can you guide me to achieve it.
(3)sometimes I find it becomes abnormal when I use it to do something Big,like yesterday,I use it to produce 7 pWMs,or do some FLOAT point calculation,I would get a Wrong answer ,i know it is limited,but you know,I have only this borad now.can you teach me how to make the full use of its computation ability.
(4) I find in C2000,its PWM has a function TripZone,when overvoltage or overcurrent,it will force high or low,
can I achieve it in tm4c,I find some sentences in tm4c datasheet
(1)One fault-condition handling inputs to quickly provide low-latency shutdown and prevent damage ()to the motor being controlled, for a total of two inputs
(2) Optional fault handling for each PWM signal
(3)Extended PWM fault handling, with multiple fault signals, programmable polarities, and filtering
(4)Two fault input pins (MnFAULTn) are available
my understanding is that ,when MnFAULTn is detected (which can be a active high or low),pWM module will response to these fault and stop working.
Bob ,is it correct? do you have a example to teach me configure pWMFAULT ,hhh.
Bob ,this post is a little bit long ,Some problems may seem silly to you, but ,hhhhh,thank you very much
Bob,I finally find an example on how to configure PWM Fault.It works well,
void
PWMFaultIntSetUp(void)
{
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD);
GPIOPinConfigure(GPIO_PD6_M0FAULT0);
GPIOPinTypePWM(GPIO_PORTD_BASE, GPIO_PIN_6);
PWMOutputFault(PWM0_BASE, PWM_OUT_0_BIT, true);
PWMGenFaultConfigure(PWM0_BASE, PWM_GEN_0, 10, PWM_FAULT0_SENSE_HIGH);
//if fault condiction --> pwm level is low
PWMOutputFaultLevel(PWM0_BASE, PWM_OUT_0_BIT, false);
/* IntEnable(INT_GPIOD);
PWMFaultIntRegister(PWM0_BASE, PWM_FAULT_IntHandler);
PWMIntEnable(PWM0_BASE, PWM_INT_FAULT0);*/
}
liguo wang said:(1) i want to sample 5 points at different frequency,if only use sequence 0,i don't know how to get the sampling results,sampling result will be mixed, isn't it?
If the samples are at different frequencies use both ADC converters. Perhaps 2 channels on one and three on the other. If you have two channels requiring the same sample rate, you can put them in the same sequence. The results will be stored in the FIFO in the same order as you configure in the sequence.