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.
f1fco Senior Member Joined: 18/03/2012 Location: FrancePosts: 155
Posted: 12:06pm 08 Apr 2018
Copy link to clipboard
Print this post
hello I want to use the command PLAY TONE on my eXtreme 144 the command PLAY TONE 1000 return "Error : Argument count" no error if I use PLAY TONE 1000, 1000
but no output of any signal on the PWM2B or PWM2A pins
the pins PWB2A produce a square wave at 1000 Hz if I use the command PWM 2, 1000, 50
where is the solution to PLAY TONE ?
thank you for yours answers
Pierre, from Nimes, south of France73s de F1FCO
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10570
Posted: 12:07pm 08 Apr 2018
Copy link to clipboard
Print this post
Doesn't use those pins - check the manual
f1fco Senior Member Joined: 18/03/2012 Location: FrancePosts: 155
Posted: 12:21pm 08 Apr 2018
Copy link to clipboard
Print this post
the Micromite Plus Manual ver 5.4 says in page 55 : PLAY TONE left [,right [,dur]] generate two sine waves ... the sound output ... pin allocated PWM 2A as left channel
on the eXtreme 144, PWM pins are a block of 4x6 pins nea the keyboard connector is it right ?
what pin to use ?
Pierre73s de F1FCO
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10570
Posted: 12:47pm 08 Apr 2018
Copy link to clipboard
Print this post
Check the MMX manual - page 15Edited by matherp 2018-04-09
f1fco Senior Member Joined: 18/03/2012 Location: FrancePosts: 155
Posted: 01:33pm 08 Apr 2018
Copy link to clipboard
Print this post
ok Peter, I have not seen that it was an audio output on a connector (in the right corner of the board) it works !!! but the PLAY TONE command need the two arguments left and right not possible to use only one output : PLAY TONE 1000 and yet the second argument is in bracket on the documentation....
thank you Peter for your help Pierre Edited by f1fco 2018-04-0973s de F1FCO
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10570
Posted: 02:22pm 08 Apr 2018
Copy link to clipboard
Print this post
The MMX and MM+ have identical code and both require two frequencies although this wasn't originally the intent. The intent (as per the MM+ manual) was that with one frequency it would play the same tone through both channels so there is no real downside to specifying the same frequency twice if that is what you want.
f1fco Senior Member Joined: 18/03/2012 Location: FrancePosts: 155
Posted: 05:54pm 08 Apr 2018
Copy link to clipboard
Print this post
my projec is to generate an SSTV pattern on the old mode black and white 8 seconds and 128 lines frame start with 30ms of 1200 Hz each line time is 60ms with a black at 1500 Hz and a white at 2300 Hz end of line with 5 ms of 1200 Hz
the first code I write with 6 shades of grey (white to black) is ok ! I can see the result on software MMSSTV