Robert Lunn wrote: > > >I need to measure a continuous frequency between 0 - 250 cycles/MINUTE, > >and transmit it via RS-232 at 2400 baud in a message containing 6 bytes > >once 5 seconds. > > Peter, what's the six-byte message you send? > > (I want to get a handle on the processing required to > create the message string.) > > ___Bob Bob, you could try setting up an array of say 6 bytes in memory where the first would be an STX byte the next four would be the ascii of the 4 digit number and the last being EOT so a value 123 would be <0><1><2><3> or in hex 033031323304 this way the stx will indicate the start of the numeric string and the eot the end. the receiving equipment would be able to take the val of the four digits using an ascii to int conversion. if the interupt code updates the bytes of the output string then all you have to do is just keep sending it out every 5 seconds or so. Peter .......