Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

STK500 Demo file rewritten in C, almost completed!!!

STK500 Demo file rewritten in C, almost completed!!!

2004-01-20 by Steven Chang-Lin Yu

Guys, I have almost complete the file of the STK500 demo file shows in the manual of the STK500 and preload on the 8515 came with the STK500. The only problem now is the two shift right and shift left function!!!

With the original asm demo, the shift left and shift right shift the entire data in the temp registry, and do it as a loop!!! However by using the >>= or <<= in C, once all the package have been shifted to the end, only one led is continue in the loop rather than the whole package. If you don’t understand, here is an example!!!

ASM Demo

01111000 -> 00111100 -> 00011110 -> 00001111 -> 10000111 -> 11000011 - > 11100001 -> 11110000 -> 01111000 -> 00111100

My Program using either (temp >>=1) or (temp <;<= 1)

01111000 -> -> 00111100 -> 00011110 -> 00001111 -> 00000111 -> 00000011 -> 00000001 -> 00000000 -> 10000000 -> 01000000 -> 00100000

I have include the latest build, and if anyone know how to fix it, please let me know, and I will put your name in the author place as well!!!

Thanks

Steven

__________________________________________________________________
Steven Chang-Lin Yu
ICQ#:
66369374

Current ICQ status:

( Home Tel#: 0401043641
( Work Tel#: 0401043641
+ More ways to contact me


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.564 / Virus Database: 356 - Release Date: 19/01/2004

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.