Jump to content
43oh

sheep

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. I got one step closer, but single pulse has turn to a train. #include <stdbool.h> #include <stdint.h> #include "inc/hw_memmap.h" #include "driverlib/adc.h" #include "driverlib/gpio.h" #include "driverlib/sysctl.h" #include "driverlib/adc.h" #include "inc/hw_types.h" #include "driverlib/debug.h" //uart #include "inc/hw_types.h" #include "driverlib/pin_map.h" #include "driverlib/uart.h" //interrupt #include "inc/hw_ints.h" #include "driverlib/interrupt.h" //PWM #include "driverlib/pwm.h" #include "inc/hw_gpio.h" #include "driverlib/rom.h" #define PWM_FREQUENCY 100000//0 100
  2. Hi all, I am trying to control the PWM through UART usb serial at high speed, but the micro seems to pick up the input inconsistently(I am trying to create a 100 micro sec pulse using the PWM, but the micro sometimes does not pick up the input). So i am guessing the best way to do it is via interrupt(when the RX picks up any kind of input ), but I have no idea how to implement one. Can someone provide an example code for such application please? Thanks in advance. My Code: #include <stdbool.h> #include <stdint.h> #include "inc/hw_memmap.h" #include "driverlib/adc.h" #in
×
×
  • Create New...