rejuvened Frequencymeter from 2003

This forum handles questions and discussions concerning Microchip’s 8-bit compilers, assemblers, linkers and related tools.

rejuvened Frequencymeter from 2003

Postby DarioG » Tue Nov 28, 2017 9:43 pm

frequenzimetro_lx1525.jpg
frequenzimetro_lx1525.jpg (146.87 KiB) Viewed 208653 times


(code coming soon!)
All we are praying / is an earthquake in Chandler
User avatar
DarioG
Verified identity
 
Posts: 34
Joined: Thu May 29, 2014 8:42 am
PIC experience: Professional 5+ years with MCHP products

Re: rejuvened Frequencymeter from 2003

Postby DarioG » Wed Nov 29, 2017 2:09 pm

Source attached.

Functions are:
Frequency measurement up to 500MHz, in 2 ranges (:1 and :10) and with/without prescaler;
Period measurement down to 0.1Hz and up to 1uS;
IF (intermediate frequency) add/subtract feature, from 1 to 99999999Hz.

Using a PIC16F1847.
Attachments
frequenz17.zip
(31.75 KiB) Downloaded 28612 times
All we are praying / is an earthquake in Chandler
User avatar
DarioG
Verified identity
 
Posts: 34
Joined: Thu May 29, 2014 8:42 am
PIC experience: Professional 5+ years with MCHP products

Re: rejuvened Frequencymeter from 2003

Postby DarioG » Wed Nov 29, 2017 2:11 pm

LX1525_components.jpg
LX1525_components.jpg (76.06 KiB) Viewed 208640 times


Part list
All we are praying / is an earthquake in Chandler
User avatar
DarioG
Verified identity
 
Posts: 34
Joined: Thu May 29, 2014 8:42 am
PIC experience: Professional 5+ years with MCHP products

Re: rejuvened Frequencymeter from 2003

Postby DarioG » Wed Nov 29, 2017 3:57 pm

ehm, prescaler update :)

Looks like Timer0 will reach 50MHz *only* if prescaler is set to at least 1:4. If disabled or set to 1:2, it does not go...
Attachments
frequenz17.c
(23.33 KiB) Downloaded 23858 times
All we are praying / is an earthquake in Chandler
User avatar
DarioG
Verified identity
 
Posts: 34
Joined: Thu May 29, 2014 8:42 am
PIC experience: Professional 5+ years with MCHP products


Return to MPLAB XC8

Who is online

Users browsing this forum: No registered users and 4 guests

cron