View Single Post
Old 06-16-2009, 09:48 AM   #1721 (permalink)
MPaulHolmes
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,368
Thanked 1,202 Times in 765 Posts
Quote:
Originally Posted by charlie_fd View Post
The code you are using for serial link (chris stuff) is converting from hex to ASCII inside the uC witch in my opinion is a waste of uC cycles (the conversion can be done in the client on the computer). Also, you are using the classic "wait for transmission ready" algorithm so every second you will stop the program to do the ASCII conversion (3 characters) and the transmission of 5 characters. Have you taken a look at the interrupt based transmission algorithm I'm using?
Well, the code I used (threw together is more like it) was as simple as possible so that I wouldn't have to re-mail the engineer chips for testing.
I plan on using interrupts for the input and outputs, definitely! I had no way of testing anything in a reasonable amount of time, so I went for super simple.

by! I need to leave! Must go to work!

__________________
kits and boards
  Reply With Quote