Measuring Periods w/ Motorola HS12 ICs

  • Thread starter Thread starter formulajoe
  • Start date Start date
  • Tags Tags
    Measurement Period
Click For Summary
SUMMARY

The discussion focuses on measuring signal periods using the Motorola HS12 microcontroller, specifically utilizing its input-capture ports for accurate period measurement. Participants confirm that the HS12 can indeed be configured for pulse accumulation, allowing users to switch between frequency and period measurements. A practical method involves inputting a known clock frequency, such as 1MHz, into a frequency meter to derive the period in microseconds. Additionally, leveraging on-chip timer counter blocks can facilitate effective period data capture.

PREREQUISITES
  • Understanding of Motorola HS12 microcontroller architecture
  • Familiarity with input-capture functionality in microcontrollers
  • Knowledge of frequency and period measurement techniques
  • Basic concepts of timer counter blocks in embedded systems
NEXT STEPS
  • Research the configuration of input-capture ports on the Motorola HS12
  • Learn about pulse accumulation techniques in microcontroller applications
  • Explore methods for converting period to frequency using look-up tables
  • Investigate timer counter block implementations in embedded systems
USEFUL FOR

Electronics engineers, embedded systems developers, and hobbyists interested in signal measurement and microcontroller applications will benefit from this discussion.

formulajoe
Messages
177
Reaction score
0
I was designing a circuit to determine frequency of signals using a counter as the main part of the circuit. However, I was just informed that period must also be measured or have the circuit perform one of the other.
Are there ICs that are able to determine the period between rising edges? If so, I will be able to use transistors to multiplex between frequency or period measurement.
The microcontroller I will be using is the motorola HS12. I know there are some ports on the HS12 that can be used for input-capture. The period could easily be found using these ports. Can these ports also be configured for pulse accumulation?
 
Engineering news on Phys.org
If you want to turn a frequency meter into a period measuring device, just put a known clock into the input of the frequency meter, and trigger the meter with your signal that you want the period of. Put in 1MHz into the frequency counter's input if you want the period readout in microseconds.

I'm not familiar with the HS12 uC, but if it has on-chip timer counter blocks, then yes, that would be a good way to capture the period data for your waveform, and then you can calculate the frequency from that. With a small uC, you may want to use a look-up table to do the inverse function from period to frequency.
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
6
Views
2K
  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 10 ·
Replies
10
Views
6K
Replies
20
Views
2K
  • · Replies 1 ·
Replies
1
Views
754
  • · Replies 77 ·
3
Replies
77
Views
8K
  • · Replies 2 ·
Replies
2
Views
666