PWM speed control (pic18f4550)

here is the ccs code:#include #fuses HS,NOWDT,NOPROTECT,NOLVP#use delay(clock = 20000000)void main() { unsigned int16 value;// Input variable setup_adc_ports(ALL_ANALOG);// Input combination setup_adc(adc_clock_internal);// ADC clock set_adc_channel(0);// Select RA0 setup_ccp1(ccp_pwm); // Select timer and mode setup_timer_2(T2_DIV_BY_16,248,1); // Clock rate & output period while(1) { value=read_adc();//Get input byte set_pwm1_duty(value);// Set on time }}everything is... [Read More]
Tags: PIC

Driving a motor (pic18f4550)

you can use the information mentioned in previous post as the pic side program to increase or decrease the speed of a motor as an example. now I want to use ULN2003APG driver to drive a motor.using ULN2003APG :pin1 ---> MCU outputpin16 ---> Motorpin8 ---> Motor GND and MCU GNDand... [Read More]
Tags: PIC

PWM (pic18f4550)

to use pwm here is the ccs code:#include #fuses HS,NOWDT,NOPROTECT,NOLVP#use delay(clock = 20000000)void main() { setup_ccp1(ccp_pwm); // Select timer and mode set_pwm1_duty(25); // Set on time setup_timer_2(T2_DIV_BY_16,248,1); // Clock rate & output period while(1) { } // Wait until reset}pin17 ---> pwm output+ everything was mentioned in previous posts in... [Read More]
Tags: PIC

How to make a DVD (Advanced concepts)

sometime you download subtitles which are in sub/idx format which is not supported in DVD-Lab pro so you can do the following :1. Use dvdsupdecode to convert the .sup file into a .txt file and several .bmp files,with the -bitmap parameter and either the -pal or -ntsc parameter according to... [Read More]

How to make a DVD (DVD-Lab pro)

1.make a new project and select "Normal (VTS Menu + Movie)" and select PAL.2.Import converted files to your project their bitrates is better to be about 1200kbps.3.from "connections" select "movie1" and add the imported video and audio which are now separated.4.add your subtitle remember to choose proper script for its... [Read More]