avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] AVR assembly for fast bit bang


From: Daniel O'Connor
Subject: Re: [avr-gcc-list] AVR assembly for fast bit bang
Date: Wed, 9 Nov 2005 08:26:04 +1030
User-agent: KMail/1.8.2

On Wed, 9 Nov 2005 02:15, Mike S. wrote:
> Hello to all,
> Can anyone tell me the best (faster) way to implement bit shifting
> (serial synch protocol
>  -in a bit bang fashion-) with two general purpose digital pins (one
> pin for data the other
> for clock)? Using C is not fast enough! I need assembly!

The compiler should generate fast enough code for bit banging (in fact it 
should be 'perfect') as long as you have optimisation on.

What does your existing code look like? Where is the bottleneck?

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

Attachment: pgpSHdo44Gyno.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]