Search Engine

Setup Pwm

Add Question

Are you looking for?:
global setup , ams setup , env setup , slew setup
37 Threads found on Setup Pwm
1. Enable clock for timer 2. setup the timer as timebase for pwm 3. Enable clock for GPIO and AFIO 4. Set IO as AFIO output push-pull 5. setup pwm 6. Enable timer 7. Switch on pwm pins Not really simple, but it is STM32))
Hello there I recently got this new IR Remote from ebay. it uses a vs1838b IR sensor and after digging for a while it seems like I need to setup pwm to read signal from it with my stm board. However all my attempts failed. Anyone can help my write a simple code to read the sensor input and maybe send it via uart ?? Appreciated , thank you !!
Hi, it may be that 100% is not possible with the setup. 0 = 0/256 duty cycle 1 = 1/256 duty cycle ... 255 = 255/256 duty cycle Klaus
Hi, Why do you think it is a problem for the arduino? Most probably the microcontroller has a pwm periferal hardware built in. I see no problem. Periods duration should be easily from 1us to 1s. For sure it depends on clock frequency and the pwm setup. Klaus
The sense resistor value does not influence overall power dissipation. Yes, but only in the special case that the supply voltage is already fixed. It still affects output voltage range. There's still an issue with the setup in post #12. It can't work with 741 and single supply. You either need an OP with input common mode range
is sg3525 ic capable of generating this waveform If you manage to setup the error amplifier for a fixed duty cycle...
you should be able to use printf() with a pic18 if you connect a PC to the USART 1. if the PC has a RS232 COM port via a MAX232 2. with a suitable cable, e.g. USB/TTL you need to setup the USART with a baud rate etc to suit the terminal emulator on the PC
There are no free-wheeling diodes used in this design. Remove them. The voltage created should not exceed the Vds in this setup transformer which should have a 20:1 turns ratio and VA rated for your load. Since the drive is from switched current sources, the negative feedback into pin 1 is the control point for pwm regulation of the inverter.
If you have a look in the datasheet for this microcontroller, in chapter 11, you'll find the the CCP1 is enhanched, and have 4 output, capable to drive a half or full bridge device. The CCP1=P1A, and is the normal pwm output, equal to the CCP2. To setup the period frequency you need to study the datasheet, ot learn how. You can find the datasheet
I am trying to send a pwm signal on PortC5 (pwm1) using the latest CCS compiler(5.026). This is the manual method of sending a pwm and it doesn't seem to be working. I have followed the pwm setup and generation on page 221 of PIC16f1503 datasheet. I just couldn't get it to work. Anyone have anyidea what (...)
A fixed current source, a shorting switch and a capacitor is pretty much it. But getting the first and last, ideal, small and cheap, is maybe the harder problem. Do you really need a linear ramp? If so then an op amp integrator might be cheapest, I know of no good fixed current reference piece-parts. But in a closed loop setup ramp linearity isn't
In the PIC16f886 microcontroller datasheet there will be a section that covers pwm (the CCP) section. It will tell you have to setup the control registers, set your pwm frequency (what you call RPM), and your duty cycle. It has all the formulas and everything in there. Basically it is just setting some registers and setting your timer (...)
1.) Depending on your microcontroller, go to the datasheet and look under the section Capture/Compare/pwm (CCP). This will tell you have to enable the pwm with the register and also the calculations for setting the Period and duty cycle. You know your period so you can solve for your TMR2 prescalar. 2.) Init function to setup timer2 and (...)
org 0x00 include test equ 0x20 setup bsf STATUS,5 movlw 0x01 movwf TRISB clrf TRISC bcf STATUS,5 clrf PORTB clrf PORTC movlw D'60' movwf CCP1CON movlw D'7' movwf T2CON movlw D'163' movwf CCPR1L banksel PR2 movlw D'200' movwf PR2 clr
i have set pwm intrupt in dsPIC30F2010 and crystal is 6.144Mhz and PLL=16x . At this setup pwm intrept is coming at 42ms ,But if i change PLL=4x , i think intrept time should be 42ms/4 . But it is same . Can any body tell the reason? and what will be the Fcy at PLL=16x and X-tell=6.144mhz
Hi: I have a setup were I run a electromagnet with a pwm signal using 20 volts, usually at low dutycyles < 20%. pwm frequency in the low kHz range. Around this electromagnet I have various sensors, cirucits etc.All of this (electromagnet and circuits) is inside a metal chamber (faraday Cage). I need to run some signals outside this (...)
78814 I want to configure pwm with my desired 50Hz frequency, i am confused with the procedure. Please help me Thanks in advance.
/* pulse generated to control the pulse width modulation of unipolar motor. */ #include void setup() /*Beginning of the body of the program*/ { int led =0; /* start from the begining*/ int led_array_=(0x05,0x09,0x06,0x0A) /* pins use as output*/ } void loop () { p1=~led_array(led); delay (250); led++; if (led==4)led=0;
Need someone to help design a custom pwm to mimic the function of a Chicago Electric, 80 amp, inverter arc welder, model 91110 - in resting state (just turned on - no welding) For some reason, just by luck, the setup works for our application. We have been to numerous "electrical" experts and not one can tell us what or why it's doing what it's
Its quite simple... Here is the sample code follows... Timer setup for pwm in c; //Global variables and definition #define pwmPIN P1_0 unsigned char pwm_width; bit pwm_flag = 0; void pwm_setup() { EA = 0; TMOD = 0; (...)