Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 22 Sep 2007 23:22:03 -0000
I am trying to generate a 10ms pulse on a output pin on my parallel port (amigaone). I had built the hardware sometime ago and had successfully written to the parallel port controlling the 8 output pins through hollywood (writing to PAR through OpenFile).
But now i want to send out 10ms pulses which i have done with WaitTimer controlling the time the pulse is on and off.
However i was observing the LED connected to the output and noticed that precisely on every 1 sec i would get a flicker. Shortening the pulse to 1 ms and trying the standard Wait function made no difference.
Is this something to do with hollywood or maybe OS4 or maybe there is a better way to create a constant string of fast pulses?
[22 Sep 2007] timer pulses 10ms
-
bistullapagredo
[23 Sep 2007] Re: timer pulses 10ms
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 23 Sep 2007 16:57:27 +0200
Hi.
What do you mean with "10ms pulses"? Signal length ist 10 ms, and pause time? Or signal as well as pause are of 10 ms length?
Anyways, I've got more of an embedded real time background so I can only guess here - but I'd say creating a constant stream of 10 ms signals is quite challengening on standard PC hardware. The more, as you are trying to do it in a multitasking environment on a very high level of programming. I don't think it can be done with satisfying results. Nevertheless it would become a lot easier if you could access the hardware I/O-driver directly, without having to open a file resp. device, routing your data through the device driver for PAR:, the OS driver for I/O-hardware and finally the hardware driver for the parallel output device.
And, if you're able to read german, a similar discussion is currently going on in a forum at www.amiga-news.de . The thing in question there is some kind of basic, not hollywood, though.
Hi.
What do you mean with "10ms pulses"? Signal length ist 10 ms, and pause time? Or signal as well as pause are of 10 ms length?
Anyways, I've got more of an embedded real time background so I can only guess here - but I'd say creating a constant stream of 10 ms signals is quite challengening on standard PC hardware. The more, as you are trying to do it in a multitasking environment on a very high level of programming. I don't think it can be done with satisfying results. Nevertheless it would become a lot easier if you could access the hardware I/O-driver directly, without having to open a file resp. device, routing your data through the device driver for PAR:, the OS driver for I/O-hardware and finally the hardware driver for the parallel output device.
And, if you're able to read german, a similar discussion is currently going on in a forum at www.amiga-news.de . The thing in question there is some kind of basic, not hollywood, though.
-
darrensamiga66
[23 Sep 2007] Re: timer pulses 10ms
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 23 Sep 2007 16:50:53 -0000
http://logix4u.net/Legacy_Ports/Paralle ... NT/XP.html
I had a look on aminet and there are a few things that do something similar to inpout32.dll but they are all made for classic amigas and their parallel port.
yeah the pause and signal are each 10ms long.Hi.
What do you mean with "10ms pulses"? Signal length ist 10 ms, and pause time? Or signal as well as pause are of 10 ms length?
I had thought about writing to the memory location of the parallel port with the Poke function but this is not allowed by OS4. Its the same with windows and after investigating they use Inpout32.dll to get around this. Have a look at their webpage.Anyways, I've got more of an embedded real time background so I can only guess here - but I'd say creating a constant stream of 10 ms signals is quite challengening on standard PC hardware. The more, as you are trying to do it in a multitasking environment on a very high level of programming. I don't think it can be done with satisfying results. Nevertheless it would become a lot easier if you could access the hardware I/O-driver directly, without having to open a file resp. device, routing your data through the device driver for PAR:, the OS driver for I/O-hardware and finally the hardware driver for the parallel output device.
http://logix4u.net/Legacy_Ports/Paralle ... NT/XP.html
I had a look on aminet and there are a few things that do something similar to inpout32.dll but they are all made for classic amigas and their parallel port.
Well i am trying to drive a stepper motor which moves 7.5Deg/Step and the speed of the pulses determines the speed of the motor. And at some point i want to read inputs to the parallel port aswell! I will have a look at the discussion on www.amiga-news.de.And, if you're able to read german, a similar discussion is currently going on in a forum at www.amiga-news.de . The thing in question there is some kind of basic, not hollywood, though.
-
darrensamiga66
[28 Sep 2007] Re: timer pulses 10ms
Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 28 Sep 2007 22:47:18 -0000
i think i may need a more direct way of accessing the parallel port because if i move the window even more pulses are lost.
Shame you cant just poke it directly (i know you cant do it with OS4).
i think i may need a more direct way of accessing the parallel port because if i move the window even more pulses are lost.
Shame you cant just poke it directly (i know you cant do it with OS4).
[29 Sep 2007] Re: timer pulses 10ms
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 29 Sep 2007 11:31:47 +0100
Hello darrensamiga66
Have you tried to ask this topic on http://utilitybase.com/ There is a lot of OS developers on there and if there is any solution they should know that.
Hello darrensamiga66
Have you tried to ask this topic on http://utilitybase.com/ There is a lot of OS developers on there and if there is any solution they should know that.
-
darrensamiga66
[29 Sep 2007] Re: timer pulses 10ms
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 29 Sep 2007 20:50:58 -0000
I had always thought that site was for developers only but i'll give it a try and see what happens.Hello darrensamiga66
Have you tried to ask this topic on http://utilitybase.com/ There is a lot of OS developers on there and if there is any solution they should know that.
-
darrensamiga66
[01 Oct 2007] Re: timer pulses 10ms
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 01 Oct 2007 21:38:07 -0000
Is there any new info on the plugin system for Hollywood that i can pass on to the people on utilitybase?I had always thought that site was for developers only but i'll give it a try and see what happens.