[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Using PORTB with variables, PORTB = var
From: |
unauthorized |
Subject: |
[avr-gcc-list] Using PORTB with variables, PORTB = var |
Date: |
Sat, 22 Apr 2006 15:50:50 +1000 |
Hiyas,
How can I use the PORTB constant with variables? eg:
while (1) {
var <<= 1;
PORTB = var
}
That is what I'm trying to acheive. I'd like to be able to do it with variables
like I do above, but it doesn't seem to work. Once I replace "var" with an
actual number, it works as expected.
Can someone help me out here? URL? reference?
Thanks,
Chris-
- [avr-gcc-list] Using PORTB with variables, PORTB = var,
unauthorized <=
- Re: [avr-gcc-list] Using PORTB with variables, PORTB = var, Abdul Malik Khan, 2006/04/22
- Re: [avr-gcc-list] Using PORTB with variables, PORTB = var, Lars Noschinski, 2006/04/22
- Re: [avr-gcc-list] Using PORTB with variables, PORTB = var, unauthorized, 2006/04/22
- Re: [avr-gcc-list] Using PORTB with variables, PORTB = var, Steve Meliza, 2006/04/22
- Re: [avr-gcc-list] Using PORTB with variables, PORTB = var, Kevin Cozens, 2006/04/22
- Re: [avr-gcc-list] Using PORTB with variables, PORTB = var, Ned Konz, 2006/04/22