have a look at my pwm motor controller on 12f675

Started by shaunundergrad in Piclist15 years ago

hi guys, just completed my pwm motor control program, please have look and see if there is any obvious mistakes, it was written...

hi guys, just completed my pwm motor control program, please have look and see if there is any obvious mistakes, it was written on mplab uses special instruction mnemonics so probably only looks correct in mplab. it works ok but the frequency a bit low. gives reasonable out


PIC18 CCP

Started by Eirik Karlsen in Piclist13 years ago 2 replies

Hi, I think I have the answer to this question but I ask just to be sure. PIC18F4520: I need to: Output two 8bit PWM 's (50Hz -...

Hi, I think I have the answer to this question but I ask just to be sure. PIC18F4520: I need to: Output two 8bit PWM 's (50Hz - 100's Khz usable) Measure one PWM input (500uS - 100mS) Measure two FRQ inputs (5Hz - 5Khz) All of these must be done repeatedly at a minimum of 20Hz.


PWM problem (phase diffrence between Pwm1 and Pwm2 )

Started by bacha bacha in Piclist15 years ago 3 replies

Hi, I have used 18f452 to generate pwm but i haven?t acchived 180 degree phase difference. (Pwm1 and Pwm2 were generated...

Hi, I have used 18f452 to generate pwm but i haven?t acchived 180 degree phase difference. (Pwm1 and Pwm2 were generated at the same time.) can any body help me to do that with pic?s? Or do you know another way? For example, DSP (30F?s, ADMC401, etc.)


PLEASE TELL ME ABOUT "PWM CONTROL"

Started by baghi_b in Piclist14 years ago 1 reply

HI ALL, I NEED VERY VERY URGENT NEED TO KNOW HOW CAN I USE THE PIC MICRO ( SPECIALLY 18F458 ),TO HAVE A HALF-BRIDGE SWITCHING...

HI ALL, I NEED VERY VERY URGENT NEED TO KNOW HOW CAN I USE THE PIC MICRO ( SPECIALLY 18F458 ),TO HAVE A HALF-BRIDGE SWITCHING POWER SUPPLY, WITH 25KHZ SWITCHING FREQUENCY. BIG PROBLEM IS LOW RESPONSE OF A/D OF PIC TO CONTROL ACTIVELY THE WIDTHS OF PWM ACCORDING TO OUT


HELP!!!! getting my pwm output to control 3vdc motor

Started by shaunundergrad in Piclist15 years ago 18 replies

hu guys, got 12f675 to give a variable pwm output using ano as a/d input, not very sophisticated just using mark/space ratio, it...

hu guys, got 12f675 to give a variable pwm output using ano as a/d input, not very sophisticated just using mark/space ratio, it gives me .5v to 2.5v approx, now i'd like to control the 3vdc motor sat on my bench but only learner in electronics, i'm thinking an op amp but not


please help me with adc program for pic12f675 using mplab

Started by vaishnavi236 in Piclist15 years ago 4 replies

hi, i have written a program for adc. i am going to feed the a/d samples to the timer for the pwm module which is next... my...

hi, i have written a program for adc. i am going to feed the a/d samples to the timer for the pwm module which is next... my project is " MICROCONTROLLER BASED PWM FOR SOLAR PHOTO VOLTAIC POWER SYSTEM. THE PROGRAM written below is simulated using MPLAB 6.13 version.


Position Control using PWM

Started by msel...@gmail.com in Piclist10 years ago

Basically, has anyone ever tried to use PWM for position control on the PIC? I am trying to program a PIC18F458 for position control using a...

Basically, has anyone ever tried to use PWM for position control on the PIC? I am trying to program a PIC18F458 for position control using a quadrature encoder which has 1600 "states" per revolution. What i am have working so far is i give the PIC a reference position(in encoder counts) that i want a motor driven to. I then have an algorithm that generates a smooth accelerate, cruise, decel...


PWM FOR PIC12F675

Started by vaishnavi236 in Piclist15 years ago 2 replies

FOR PWM [code] OPTION equ 81h INTCON equ 0bh TMR equ 01h Bcf OPTION ,5 ; TOCS TMR0 CLOCK SOURCE SELECT ; 0=> INTERNAL INSTRUCTION CYCLE...

FOR PWM [code] OPTION equ 81h INTCON equ 0bh TMR equ 01h Bcf OPTION ,5 ; TOCS TMR0 CLOCK SOURCE SELECT ; 0=> INTERNAL INSTRUCTION CYCLE CLOCK bsf OPTION ,3 ; PSA PRESCALER ASSIGNMENT 0=> IS ASSIGNED TO WDT movlw ; I HAVE NOT YET CALCULATED THE VALUE TO BE FED ; TO TIMER movwf TMR0 bcf INTCON,2 ; clear TMR 0 overflow indication ; TOIF 1=TMR0 REG HAS OVERFLOWED & 0=DID NO


1khz sine wave generation in PWM mode using PIC16F870

Started by Rambabu Edubilli in Piclist15 years ago 1 reply

hai       I am a student and need to generate 1khz sine wave in PWM mode using PIC16F870 in my project. You told me...

hai       I am a student and need to generate 1khz sine wave in PWM mode using PIC16F870 in my project. You told me in mail that maximum frequency to be generated would be:            &n


Re: please help me with pic12f675 programming for pwm ,adc and led

Started by Paul James E. in Piclist15 years ago 7 replies

Vaishnavi236, Although I won't write the program for you, I will help and guide you however I can. Let me know what you need...

Vaishnavi236, Although I won't write the program for you, I will help and guide you however I can. Let me know what you need to do first. Regards, Jim > Hello , > I am doing a project using PIC MICROCONTROLLER


PWM for Hobby Motor using P16F685 no CCP output

Started by Bob Lynch in Piclist10 years ago

Can anyone see a problem with this code, just looking for a duty cycle....

Can anyone see a problem with this code, just looking for a duty cycle. Thanks ;********************************************************************* * ; ; Filename: PWM071308.asm ; Date: 6/15/08 ; File Version: 1.00 ; ; Author: Bob Lynch ;********************************************************************* * ; ; Files required: ; p16F685.inc ;*******************************...


A few questions...

Started by Paul L in Piclist12 years ago 20 replies

In the past i have used the 16 series of PIC, for a project i am looking at the 18 series, is there much difference between the two programming...

In the past i have used the 16 series of PIC, for a project i am looking at the 18 series, is there much difference between the two programming wise? The 18s seem more complex Also, looking for a pic with more than one PWM output, used the filter on the Microchip site and it came up with PIC16F690, but after looking at the datasheet it would seem that the 4 it says is actually 1 but can be used...


which is the best pic for robotics

Started by mr_gees100_peas in Piclist13 years ago 7 replies

Hi, I was wondering if there is a preference ina aprticualr PIC model that is use more often for robotic. I know the 16f877a is a...

Hi, I was wondering if there is a preference ina aprticualr PIC model that is use more often for robotic. I know the 16f877a is a good general purpose but is there anything better. I mean, something that is 1) well supported, 2) has plenty of program memory 3) has the features that robot builders like like PWM ADC channels and what not. Again, it has to be something common. Maybe theres


multiplexing two PWM signals to one pin

Started by vfraenc1 in Piclist14 years ago 3 replies

I am using a PIC 16F876 and need to multiplex two seperate signals to one of the CCP inputs. What is the best way to do this? ...

I am using a PIC 16F876 and need to multiplex two seperate signals to one of the CCP inputs. What is the best way to do this? Any enlightenment will be appreciated. TIA Vic


Control the amplitude of a 115VAC

Started by globalpositioning in Piclist10 years ago 12 replies

Any idea or suggestion on how to play with the amplitude of a 115VAC? Note: amplitude, not...

Any idea or suggestion on how to play with the amplitude of a 115VAC? Note: amplitude, not PWM... Regards, ------------------------------------


CCP PWM

Started by Anonymous in Piclist14 years ago 12 replies

Hey now, I have the PIC18F458 and I'm using the CCS C compiler. My question is simple. I want to output a square wave at 50Hz and...

Hey now, I have the PIC18F458 and I'm using the CCS C compiler. My question is simple. I want to output a square wave at 50Hz and vary the duty cycle between 3% and 9%. Any ideas how to accomplish this? I know I should use "SETUP_TIMER", I'm just not sure how.


to burt from electromechy1

Started by shaunundergrad in Piclist15 years ago 2 replies

hi burt, thanx for the reply, however i solved the problems i was having and moved onto adc and comparators etc, etc., with a LOT...

hi burt, thanx for the reply, however i solved the problems i was having and moved onto adc and comparators etc, etc., with a LOT of help from people in this group even managed a crude pwm ouput at just under 1khz. moved onto the 18fl452 and will probably need help soon, so i


Looking for PIC

Started by Scott Lingerfelt in Piclist14 years ago 5 replies

I am looking for a pic with 28 pin or less and 2 CCP/PWM "pulse width modulation" output pins. Does one exist? Thanks in...

I am looking for a pic with 28 pin or less and 2 CCP/PWM "pulse width modulation" output pins. Does one exist? Thanks in advance, ************************************** Scott Lingerfelt ************************************** ---


motor driver circuit

Started by Vecheslav Silagadze in Piclist15 years ago 20 replies

Hello everone, I'm looking at the output from an H-bridge to a DC motor, run with PWM, and it looks like there is quite a bit...

Hello everone, I'm looking at the output from an H-bridge to a DC motor, run with PWM, and it looks like there is quite a bit of EMF kickback even though I put all the requisite (schotkey) diodes in place. The motor still works, but I expect there is a lot of energy being l


Ups topology

Started by Mariano M. Gonzalez in Piclist15 years ago

Hello, I?m intresting in a ups circuit using pic, but I need to know if is possible use a pic 16F877 such pwm generator at 2 or...

Hello, I?m intresting in a ups circuit using pic, but I need to know if is possible use a pic 16F877 such pwm generator at 2 or 3 Khz connecting the H-bridge directly to common transformer (iron core and not ferrite) using 12 or 24 Vcc. If someone knows about, plese reply m