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.
pic based mains frequency meter
I think you should search for a period meter rather then a frequency meter. However let see how a frequency meter works before.
A frequency meter (doesn't matter if based on PIC or whatever) counts how many periods are repeated within unity time.
This is also...
Re: sinewave generator!
Provided that you set gain for Bode frequency precisely and keep it stable with time and with temperature otherwise you will get big distrorsion or damping like waves. An AGC FET based is usually employed.
Sine oscillators with integrators exhibit a larger margin and...
Re: sinewave generator!
Yes, low frequency sinewaves can be generated very easily and with highest purest grade using bridges or integrators.
A while ago I got a pdf on the matter from Texas web. May be it is still there. However as it is very short let attaching here:
In so far as you say your harness is a graphic LCD memory mapped and with this connection it doesn't work.
From your description, (though I can figure it), you don't specify what processor target you used with; 8051 or derivative ? If so, have you thought that [A0..A7] is muxed with [D0..D7] ...
Hi SphinX,
It's all right, no winners no loosers. :)
The problem here is (as you said), no modifications would required to bomba's code in normal conditions, because his code is nice.
My mods just trick over proteus behaviour, and this is bad.
I did discover another behaviour which would...
There's a russian guy who has created a "PIC like" used in Russia. You may find (and download it) at **broken link removed** . I never tested it.
bomba, I didn't hear too about this problem before. I'm just looking now like you. The PIC model should works up 20MHz. Perhaps what we're going to...
SphinX,
As I said (and confirm) the problem will depend from frequency !
I got your sample and I simulated again in 6.2 SP5 (I've both).
In your sample you make use of 5MHz as a processor clock, and this is the only reason why it works. Please change it to 20MHz (as bomba's drawing does) and...
Re: Proteus OR ….
If you use search system with searching key "proteus" you'll find here some interesting comparision among different simulators.
For instance, (though with some unaccuracies) the one below worth you give it a look.
**broken link removed**
As I guess, if you are looking...
IAR is another good (but expensive) compiler for PIC and many targets as well. ( https://www.iar.com ). If you are registered user of proteus you must been supplied with a CD and a KickStart version (code limited) of IAR for PIC12/16/17.
I agree. OUTPUT_A(0x00) will be translated efficiently...
The problem seems related to internal clock of PIC model.
Try to set Processor Clock Frequency up to 7MHz.
Obviosly change your #use delay(clock=20000000) into the relevant frequency. Your code will works without any modification need.
Well, interesting behaviour, though unrelated from resistor value.
Though cannot fully explain myself, you may have relevant results is you modify code such that:
delay_ms (100);
OUTPUT_A(0x0c); // Leds switched on in a single shot.
// output_high (Led0);
// output_high (Led1)...
You may gather more help to your questions here if you are more specific in order to replicate your problems. For instance, can you upload here your program and/or your proteus proj drawings.
In general, I didn't find difference in proteus with step-by-step debugging and full running, provided...
Re: CCS & Proteus?
What debutpic said is partially true. You cannot debug your high-level source code or display variables directly within CCS.
However, provided that you have Proteus version 6.3 and you have downloaded the new VSM MPLAB driver plugin from Labcaneter page, you can use MPLAB...
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.