View Single Post
  #1   Spotlight this post!  
Unread 12-03-2007, 00:29
Jake M Jake M is offline
void* Jake;
FRC #1178 (DURT)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Missouri
Posts: 118
Jake M has a spectacular aura aboutJake M has a spectacular aura about
Interesting thought....

Not that I actually intend to try this, if it is possible, except perhaps for educational purposes, but would it be theoretically possible to generate your own serial communation/TTL port, through a Digital IO. Setup a timer and interrupt to get the right baud rate, and just set a digital output to either 0 or 1 at each interrupt, so it would operate like a TX signal. TTL uses the 0V to 5V logic, correct? If the signal pin doesn't provide enough voltage, maybe just let it trigger a transistor, which is connected to 5V.

Mostly, I'm asking this to confirm my understanding of how serial communication actually works, and I'm guessing I'm still a little bit off. It seems a tad too simple, the way I explained it. And if I am understanding things correctly, my next guess is that the interrupts will be triggering too often, slowing down the rest of the code. Am I on track at all?
__________________
Code:
void function(void)
 {
  function();
 }