Go to GlobalSpec.com Home
Newsletter   FREE GlobalSpec e-Newsletters
Receive the latest news, trends, and technology relevant to your work.
(See Titles)

Frequency Counter Using PIC16C5x

From Microchip Technology, Inc.
 

 
The PIC16C5X has one 8-bit timer (Timer0), which can be used with an 8-bit prescaler. The prescaler runs asynchronously, hence it can count a very high frequency. The minimum rise and fall times of the input frequency are specified to be 10 ns, so the fastest clock rate the TMR0 can count is 50 MHz. The prescaler must be used when measuring high frequency. Since the prescaler can be configured as a divide by 256 counter, the maximum resolution at which the input frequency can be measured is 16-bits. However, the prescaler cannot be directly read like a file register. This application note depicts a unique method by which the user can ?extract? the 8-bit value in the prescaler, whereby the resolution of the measurement is 16-bits with the high 8-bits in TMR0 and the low 8-bits in the prescaler. "The PIC16C5X has one 8-bit timer (Timer0) which can use an 8-bit prescaler. In some instances, the user would like to use this timer for some other purpose and yet, be able to do a transmit and receive using the serial port. This application note offers routines to do a simple 8-bit transmit and receive with no handshake, at baud rates from 1200 to 9600. Please note that these routines use a timed loop which is as accurate as the clock which drives the PIC16C5X. The user enters the frequency and baud rate desired. The calculated value ?delay? in the serial routine has to be an 8-bit value only. if the value is greater than 8-bits, the frequency and baud rate values have to be changed." 8-bit transmit and receive with no handshake, at baud rates from 1200 to 9600. Please note that these routines use a timed loop which is as accurate as the clock which drives the PIC16C5X. The user enters the frequency and baud rate desired. The calculated value ?delay? in the serial routine has to be an 8-bit value only. if the value is greater than 8-bits, the frequency and baud rate values have to be changed.

Products & Services
Microcontrollers (MCU) are complete computer systems on a chip. They combine an arithmetic logic unit (ALU), memory, timer/counters, serial port, input/output (I/O) ports and a clock oscillator. Search by Specification | Learn more about Microcontrollers (MCU)
Specialty microprocessors and microcontrollers are specialty or proprietary products and accessories related to microprocessors and microcontrollers. Learn more about Specialty Microprocessors and Microcontrollers

Product Announcements
Lansdale Semiconductor, Inc. - Low Power VCO Buffer ML12149
The ML12149 is intended for applications requiring high frequency signal generation up to 1300 MHz. An external tank circuit is used to determine the desired frequency of operation. The VCO is... (read more)
Sealevel Systems, Inc. - PCI Express 2-Port RS-232/422/485 Serial Interface
Product Highlights • Each port individually configurable for RS-232, RS-422, or RS-485 • Oscillator and clock prescaler support wide range of baud rates • USB bus powered •... (read more)
Sealevel Systems, Inc. - Isolated 4-Port PC/104 RS-422/485 Serial Adapter
PRODUCT HIGHLIGHTS • PC/104 serial I/O adapter with four RS-422/485 ports • 1,500VDC port-to-port isolation protects against transients and ground loops • Each port software... (read more)
Lansdale Semiconductor, Inc. - Parallel-Input PLL Frequency Synthesizer ML145152
The ML145152 is programmed by 16 parallel inputs for the N and A counters and three input lines for the R counter. The device features consist of a reference oscillator, selectable–reference... (read more)
Atmel Corporation - AVR MCUs Combine USB, Battery Charging and Analog
New AVR® microcontrollers combine USB controller and high performance analog features. The ATmega16U4 and ATmega32U4 reduce system cost in battery powered devices such as gaming accessories. (read more)
 

Topics of Interest
The PIC16C5X has one 8-bit timer (Timer0) which can use an 8-bit prescaler. In some instances, the user would like to use this timer for some other purpose and yet, be able to do a transmit and... (Read More)
The PIC16C5X series from Microchip Technology Inc., are 8-bit, high-speed, EPROM-based microcontrollers. This application note describes an implementation of an asynchronous serial I/O using a... (Read More)
PIC16CXXX microcontrollers from Microchip Technology, Inc., high-performance, EPROM-based 8-bit microcontrollers. Some of the members of this series (like the PIC16C71 and PIC16C84) do not have an... (Read More)
The PIC12CXXX family of devices adds a new twist to the 8-bit microcontroller market by introducing for the first time fully functional microcontrollers in an eight pin package. These parts are not... (Read More)
A.5 Using HC11 in Bootstrap Mode If the input lines MODA and MODB are grounded during RESET, HC11 enters a special operating mode, called bootstrap. In bootstrap mode, the microcontroller executes a... (Read More)