avr-chat
[Top][All Lists]
Advanced

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

Re: [avr-chat] ATmega88 + triple 7 Segment Display (CC)


From: Student1
Subject: Re: [avr-chat] ATmega88 + triple 7 Segment Display (CC)
Date: Wed, 2 Apr 2008 16:40:42 -0700 (PDT)

nvm

I read up on using an internal timer.

DDRB |= (1 << 0); // Set LED as output

TCCR1B |= ((1 << CS10) | (1 << CS11)); // Set up timer at Fcpu/64 

Used a while loop to count

while (TCNT1 < 50000) //less than 50 ms
{ 
 show x
}

TCNT1 = 0;

rince repeat :)
-- 
View this message in context: 
http://www.nabble.com/ATmega88-%2B-triple-7-Segment-Display-%28CC%29-tp15708386p16454185.html
Sent from the AVR - General mailing list archive at Nabble.com.





reply via email to

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