Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 235841

Forum Post: RE: TM4C123GH6PM: Dear Friends:I have a short question is that how can I sample 5 different points in tm4c123gh6pm,it has only 4 sample sequences

$
0
0
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);*/ }

Viewing all articles
Browse latest Browse all 235841

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>