Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] PID implementation on 8bit microcontroller PIC16f877a

Status
Not open for further replies.

--BawA--

Advanced Member level 1
Advanced Member level 1
Joined
Nov 28, 2012
Messages
479
Helped
43
Reputation
86
Reaction score
42
Trophy points
1,318
Location
Noida, INDIA
Visit site
Activity points
4,931
hey , i want to implement the PID on PIC16F877a, i am using mikroc pro for coding.
the input feedback data read by the adc can vary from 0 to 1023 (10 bit),
on the basis of input data from ADC , the pwm will be generated to keep the ouput voltage constant. the duty cycle of pwm can vary from 0 to 250.
0 corresponds to 0 volts at the output , while 250 corresponds to 20v at the output ,
i want to keep the output at 14v constant .
so how to implement the PID in mikroc , can anyone give me some sample code or algo to implemnt this.?
 


Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top