Re: Dallas one - wire on avr

From: Ron Oliver <roliver_at_openesque.com>
Date: Thu, 18 Nov 2004 05:14:59 -0800 (PST)

Disclaimer: I've never worked with this CPU.

> :TOGGLE
> FF PORTA C!
> 00 PORTA C!
> ;
>
> Is there a divide down for the avr's data bus? Or is the
> interpreter really taking that long to execute the code?

There is overhead involved to pass the message to the target to
execute TOGGLE. However, once it begins actually executing TOGGLE,
there shouldn't be any.

> How much faster would
> :TOGGLE
> 00 PORTA FF PORTA C! C!
> ;
> be?
>
> Should I just write these bits in assembler?

Run "SEE TOGGLE" for the two versions of TOGGLE you have and see
what code they generate.

If it's really that time-critical, I'd write it in assembly. It
should be simple enough to write, and you'll take all the guesswork
out of it.

--
Ron Oliver <roliver_at_openesque.com>
----------------------------------------------------------------------
swiftx_at_forth.com          The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe" to swiftx-request_at_forth.com
For list command help, send subject "help" to swiftx-request_at_forth.com
Message archives are located at http://www.forth.com/archive/swiftx
----------------------------------------------------------------------
This list is a forum for SwiftX users.  For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Thu Nov 18 2004 - 05:15:23 PST

Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 08-Feb-2012. Archive updated nightly.