View Single Post
  #2   Spotlight this post!  
Unread 26-11-2011, 18:58
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: free C compiler for Windows

Quote:
Originally Posted by EricVanWyk View Post
Not quite what you are looking for, but pyserial for python can toggle the RTS pin, if that is what you are still trying to do.
Thanks.

It's not just toggling the RTS pin that I'm after. I know how to do that.

I've written countless interrupt-driven RS232 comm test equipment apps, mostly in assembly, for older machines running DOS (where you can diddle directly with the hardware). Many of them run fine from a windows command prompt.

What I want to do is write a small 32-bit windows app that looks something like this:

void main(void){

while(1) do{
SetRTS();
sleep(10);
ClearRTS();
sleep(10);
}

}

... where the sleep() function is blocked waiting, not spinning.

I want to slap a scope on the RTS pin and watch it while I play around with Windows to see what it does to the signal under various conditions.

I'm thinking this would be a visually captivating show-and-tell for students just learning about realtime issues and concurrent processing.