It's simple...

It's simple...

Post by jonah thoma » Sun, 28 Dec 2003 23:43:34




>          MAKE MONEY!!!

It figures.  Anything on comp.arch.arithmetic that starts out "It's
simple" has got to be spam.
 
 
 

1. Simple Simple C-source for AT90s8515 set/clear LED for STK200 needed

Hi Folks!

I have cut'n'paste from various sample/skeleton files I have found and made
the following example:

<>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/signal.h>

int main(void) {
  outp(0xFF,DDRB);  /* port B is output (DDRx = 1) */
  outp(0x00,DDRD);  /* port D is input  (DDRx = 0)*/

  while(1){
   if (bit_is_set(PIND,4)){
    //PORTB=1;
    sbi(PORTB,0);
   }
   else{
    //PORTB=0;
    cbi(PORTB,0);
   }
  }
<>

But compiling and flashing it, dont make my LEDs flash on the STK200 board.
The jmp-blocks for led and switch's on the stk200 are all closed (mounted)!
I have studied the assembling code (.lst-file) and it seams OK.

Hmmm the code is made using WinAVR ...
I have tried setting hole port, as well as a single bit
What am I missing ?

regards,
jk

2. Ultra1: Unimplemented FCode???

3. Simple USB Developer's Kits???

4. PLZZZZ HELP!!!!!!

5. Core (was Re: I need a new 'hard drive'/ 'CPU')

6. Publishing with FP98

7. 'Tall, thin' versus 'short, fat' architects/designers

8. What do the logs mean?

9. Bus comparisons and "Intel's P6 'Commodity' Server Push'

10. 'conservative' GC == 'risky' GC

11. 'big endian' and 'little endian' - first usage for computer