Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 15:19 25 Nov 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 : Is my board broken? DM 2.7a

Author Message
robarino
Newbie

Joined: 15/03/2012
Location: Sweden
Posts: 24
Posted: 03:36pm 18 Mar 2012
Copy link to clipboard 
Print this post

HELLO!

I have the duinomite mega and I have been trying my best to conduct a frequency count. I have tried everything and I am ready to give up on this board :(

I have plugged in both a wave generator at 3 to 5 volts as well as a fez panda and arduino into pin 11. Nothing else plugged in.

I have then typed

[code}

10 setpin 11,5
20 for i=1 to 100000000
30 print pin(11)
40 next i

[/code]

It just runs and runs as 1111111111

The funny thing is that when I setpin 11,2 I can see the wave as 111000111000111000

I need to count increments less than 1 millsecond and I was going to do this with the sound out. This board is plenty fast enough to need a counter less than 1 millisecond.
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2914
Posted: 08:21pm 18 Mar 2012
Copy link to clipboard 
Print this post

  robarino said  

I have the duinomite mega and I have been trying my best to conduct a frequency count. I have tried everything and I am ready to give up on this board :(

I have plugged in both a wave generator at 3 to 5 volts as well as a fez panda and arduino into pin 11. Nothing else plugged in.

I have then typed

[code}

10 setpin 11,5

[/code]



Hi Rob,

Which version Firmware are you running? If you have Geoffs port of MMBasic installed I dont know which pins are compatible for frequency Input.

If you are using the OLIMEX version the correct pins to use are Pins 5,6 or 7
I am making the assumption you are running the OLIMEX version here, (as I dont know off hand which pins are to be used in Geoffs 12 pin IO port to DM.)

To read a frequency the pin should be set using SETPIN 5,3
SETPIN 5,4 is for PERIOD
SETPIN 5,5 is for count

If these dont work flash a later firmware, see list HERE

Regards,

Mick
Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
Print this page


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

© JAQ Software 2024