Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 09:32 03 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Frequency counter using PIO, work in progress for picomite

     Page 2 of 2    
Author Message
Pluto
Guru

Joined: 09/06/2017
Location: Finland
Posts: 330
Posted: 11:46am 10 Dec 2022
Copy link to clipboard 
Print this post



Test set-up: The signal source (in the middle) is a Si5351A-based oscillator controlled by a 28pin MicroMite. Cheap Chinese frequency meter on the left. PicoMite with Volhout's newest PIO-based frequency meter on the right, outputting 89998399Hz.
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 382
Posted: 01:53pm 17 Apr 2024
Copy link to clipboard 
Print this post

Hi, I was trying Volhouts latest code but got Syntax error:








This is the code (one page back <):




pio_freq_measure.zip


Has anyone some hints?

- Daniel
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 3552
Posted: 02:44pm 17 Apr 2024
Copy link to clipboard 
Print this post

Hi Daniel.

This is made for PicoMite V5.07.05RC3. Since then (i.e. V5.08.00) the format is corrected for PIO(execctrl a,b,c)

Change the first "0" in "gp0": (example for PIO 1.0)

e0 = Pio(execctrl 0,0,&h1f)


to

e0 = Pio(execctrl gp0,0,&h1f)


Regards,

Volhout
Edited 2024-04-18 00:51 by Volhout
PicomiteVGA PETSCII ROBOTS
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 382
Posted: 03:00pm 17 Apr 2024
Copy link to clipboard 
Print this post

Hi

thank you a lot, works fine now - impressive work!

-Daniel
 
     Page 2 of 2    
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024