1. This forum section is a read-only archive which contains old newsgroup posts. If you wish to post a query, please do so in one of our main forum sections (here). This way you will get a faster, better response from the members on Motherboard Point.

ATmega169 Puzzle

Discussion in 'Embedded' started by Joel, Mar 21, 2008.

  1. Joel

    Joel Guest

    Well a few days ago I was having trouble setting up a simple spi interface
    Whenever I would try to lower the chip select lines of my devices the 16
    would try it and then give up and reset itself.

    I finally figured out that the problem was the pin I was trying to use.
    was using PINB0 and PINB4 as chip select lines. B4 was the one giving m
    trouble so I switched it to B5 and the problem was solved. Now I'
    noticing that PINB6 does the same thing.

    What is going on here???
     
    Joel, Mar 21, 2008
    #1
    1. Advertising

  2. Joel

    Arlet Ottens Guest

    Joel wrote:
    > Well a few days ago I was having trouble setting up a simple spi interface.
    > Whenever I would try to lower the chip select lines of my devices the 169
    > would try it and then give up and reset itself.
    >
    > I finally figured out that the problem was the pin I was trying to use. I
    > was using PINB0 and PINB4 as chip select lines. B4 was the one giving me
    > trouble so I switched it to B5 and the problem was solved. Now I'm
    > noticing that PINB6 does the same thing.
    >
    > What is going on here???


    Maybe you have interrupts enabled (by accident) on those pins, and no
    valid handler ?
     
    Arlet Ottens, Mar 21, 2008
    #2
    1. Advertising

  3. Joel

    larwe Guest


    >  Whenever I would try to lower the chip select lines of my devices the 169
    > would try it and then give up and reset itself.


    Single-step; there is no reason why you shouldn't be able to use any
    GPIO as your SPI _SS. Also check that your circuit is not wired in
    some funky way whereby asserting _SS was shorting out the power
    supply.
     
    larwe, Mar 21, 2008
    #3
  4. Joel

    Joerg Guest

    larwe wrote:
    >> Whenever I would try to lower the chip select lines of my devices the 169
    >> would try it and then give up and reset itself.

    >
    > Single-step; there is no reason why you shouldn't be able to use any
    > GPIO as your SPI _SS. Also check that your circuit is not wired in
    > some funky way whereby asserting _SS was shorting out the power
    > supply.



    This may be the perfect time to leave the embedded/digital world for a
    minute, hang a scope on it and take a look.

    --
    Regards, Joerg

    http://www.analogconsultants.com/
     
    Joerg, Mar 21, 2008
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. @ndrew

    IC7-G Original ... Puzzle

    @ndrew, Jan 12, 2004, in forum: Abit
    Replies:
    15
    Views:
    437
    @ndrew
    Jan 16, 2004
  2. Phil

    Sample code for ATmega169

    Phil, Jun 27, 2003, in forum: Embedded
    Replies:
    3
    Views:
    2,054
  3. Phil

    AVR Atmega169 help

    Phil, Jan 2, 2004, in forum: Embedded
    Replies:
    10
    Views:
    637
    Dave Hansen
    Jan 6, 2004
  4. Phil

    ATmega169 rev number

    Phil, May 25, 2004, in forum: Embedded
    Replies:
    4
    Views:
    405
  5. sk

    A puzzle to puzzle you

    sk, Jul 17, 2004, in forum: Hardware
    Replies:
    3
    Views:
    352
    jamotto
    Jul 18, 2004
Loading...

Share This Page