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.
thanks bob.by the way, im using mikroC for the PWM. but the problem is mikroC only allows duty cycle from 0-255 thats 8 bit accuracy. i noticed that pic16f877a can perform PWM up to 10-bit accuracy.
anyone can help?
i had the same problem as yours. the zener somehow caused a drop in the voltage. by removing that i get full range of voltage. i dun quite understand why though. i even change the zeners but same problem arises.
Hi all, i have a question. Is it possible to use the PWM module of PIC16f877a as a D\A converter just by varying the duty cycle ?
for eg. 2.5v = 127 duty cycle
and the output is connected to a simple two pole RC filter.
What are the values of R and C do i have to use ?
How fast is the...
Hi ryu, thanks for the advice.
Yes i noticed that adc_read() returns value in 10-bit unsigned number.so i need to divide it by 204.8
reason
1024 = 5V
let v=vold=5v
we = (5 - (0.5*(5-5/200))-(5/100))/0.01 = 495rad/s
using 1024
we = (1024 - (0.5*(1024-1024/200))-(1024/100))/0.01 = 101376
so i...
i have tried to program with C. Can anyone check whether what i have done is correct?
unsigned v,vold;
unsigned we;
void main(){
ADCON1 = 0x80; // Configure analog inputs and Vref
TRISA = 0xFF; // PORTA is input
TRISB = 0;
TRISD = 0x3F;
for (;;){
vold = Adc_Read(2); // Get...
Is it possible to solve differential equations using PIC ? Using C programming codes one could easily solve it. But can it be implemented using PIC?
Thanks
dc motor differential equations
Hi Pow, Yes i want to make a hardware model of a DC motor.
In other words make the PIC behave as a DC motor.
What im doing now is to implement a hardware in the loop plant using PIC rather than using a real DC motor.
do u have any idea to do it ?
modelling of dc motor
Hi everyone,
I am a newbie in microcontroller programming. I have a problem now where i want to model a dc motor using PIC16F877A.
from the dc motor equations
V = iR + Ldi/dt + Vemf,
T = Jdw/dt + Bw (w is motor speed)
where Vemf = Kw
and T = Ki
How do i...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.