Exact match. Not showing close matches.
'[Fwd: Re: Concurrency Problem on a low power PIC 8'
|Amberdrew Ltd wrote:
> Robert Lunn wrote:
> > >I need to measure a continuous frequency between 0 - 250
> > >and transmit it via RS-232 at 2400 baud in a message containing 6
> > >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
> the 4 digit number and the last being EOT so a value 123 would be
> <stx><0><1><2><3><eot> 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
> of the output string then all you have to do is just keep sending it
> every 5 seconds or so.
> Peter .......
Is not the problem with this method the fact that while the message
is being 'bit banged' out, the interrupt may occur, screwing up the
serial data stream?
Peter Homann email: adacel.com.au Work : +61 3 9596-2991 peterh
Adacel Pty Ltd Fax : +61 3 9596-2960
250 Bay St, Brighton 3186, VIC, AUSTRALIA Mobile : 014 025-925
More... (looser matching)
- Last day of these posts
- In 1996
, 1997 only
- New search...