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.
Hi,
I am trying to use op-amp MCP 6004 as a comparator. I am having 0.6V on the non-inverting input. The inverting input is connected to ground by a 5K resistor.
So ideally I should see the output go to positive rail because the non-inverting input is greater than the inverting input.
But...
HI,
As part of my project I am needed to start timer1 , count till a certain timer T and then once I am done with T, I need to start counting till 3T.
I implemented this by using Timer1 ( because I could start and stop it) let it overflow for time T and once I have reached T, I stopped and...
I am using Hi-Tech C. I am not getting an accurate frequency if I use the delay routine.
I theoretically calculated the time taken by each instruction using the clock frequency and I tried inserting delays to get a 25us ( 40KHz). But I am not getting the accurate frequency of 40KHz.
- - -...
Are there ways to create a 40KHz square wave with 25% duty cycle without using PWM in pic 12F615, just by toggling the pins to '1' and '0'.
I tried and I am not getting an accurate frequency.
Thank You
Oscilloscope ok, but how did you know how much delay to put so that you can match the time period for the corresponding frequency ?
Was it hit and trial or is it that the delay that you have introduced does not even play a role in deciding the time period ?
Thank you
Hi,
I was looking at this code and wanted to know how did you arrive at 40 KHz carrier frequency ?
Is it like ( 20MHz crystal -> 5MHz clock -> 1.25MHz / instruction -> 0.8us per instruction ?
How did you make calculations to get 25us ( 1/40KHz) ?
Can you please explain ? sorry for the late post.
Hi,
Thanks for the reply. I tried the following code to see clock output waveform in a CRO, but I am not able to.
How do I enable CLKOUT high ? Is it by default set high also I am getting a MCLRE and INT OSC contention error.
Can you please guide me here, have been tryin to get this for a while...
I am sorry the comment is a typo, I am trying to set the internal oscillator at 8 MHz. So should I set my internal oscillator frequency in the __CONFIG statement ?
what does the following error mean. I am using pic - 12f615
Error [192] C:\Program Files (x86)\Microchip\tx_37pricing.c; 31.1 undefined identifier "IOSCFS"
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.