The main advantage of PIC over Stamp is their interrupt Feature, you can setup a background timer to refresh your display, scan your keypad while doing something else.
Do you have any schematic of your current design?
The main advantage of PIC over Stamp is their interrupt Feature, you can setup a background timer to refresh your display, scan your keypad while doing something else.
Do you have any schematic of your current design?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
From what I feel, 74hct165 and 74hct404 could be removed the whole thing could be done in software. What's your "clock" signal looks like?
Timer interrupt to scan your keyboard and refresh your display... main loop to process your clock.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
It's a 6 MHz pulse. I'm displaying the change in frequency once per second. I did not think that the processor was fast enough to handle that.
Oh yeah, so basically it's a kind of frequency counter? how much accuracy you need? What's the threshold (+/- 10Kz, +/- 1Mhz)?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I'm looking for very small changes in frequency. As little as 20 Hz. This is why I have a 24 bit counter. The counter is updated once per second, and the new count is always subtracted from the base count. This device is intended to measure accumulated thickness of material deposited on a substrate. The crystal, which is located near the substrate, is also coated and thereby loaded with the material which causes the frequency to decrease. The change in frequency can be related to thickness of coating of the material based on density of material and other factors.
So that's something an internal PIC counter can do without much problem (maybe some overflow handling or some prescaler thingy) ... but always possible. No real need for extra external counter.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks