avr-gcc-list
[Top][All Lists]
Advanced

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

RE: [avr-gcc-list] SPI2X in SPSR more explanation


From: E. Weddington
Subject: RE: [avr-gcc-list] SPI2X in SPSR more explanation
Date: Thu, 14 Oct 2004 06:18:47 -0600

On 14 Oct 2004 at 10:23, Marc Wetzel wrote:

> Maybe you need to set the SPI into Mastermode first?
>
> Regards
> /Marc
>

If you look below in the first message, you'll see that the OP said it was 
already in Master
mode.





> -----Original Message-----
> From: address@hidden [mailto:address@hidden
> On Behalf Of krystian.hirsch
> Sent: Thursday, October 14, 2004 9:02 AM
> To: E. Weddington
> Cc: address@hidden
> Subject: AW: [avr-gcc-list] SPI2X in SPSR more explanation
>
>
>
> OK I am working with JTAG ICE (real HW) and self made mega16 board.
> I can not set this bit neither from code e.g. :
> SPSR|=0x01;
> nor
> SPSR|=(1<<SPI2X);
> nor equivalent
>
> Unlike for other bits in I/O workspace window, clicking on this bit is for
> no avail too. After next debugging step (or refreshment acitivies) it keeps
> to be reset to 0. So it is µC issue or AVRStudio issue rather than gcc
> issue.
>
> Krystian Hirsch
>


Well, since you're doing this in AVR Studio, it sounds like an AVR Studio 
problem. I would
suggest that you try this with real hardware, and send a message to Atmel about 
this issue.



> -----Ursprüngliche Nachricht-----
> Von: E. Weddington [mailto:address@hidden
>
> Gesendet: Mittwoch, 13. Oktober 2004 22:06
> An: Hirsch, Krystian
> Cc: address@hidden
> Betreff: Re: [avr-gcc-list] SPI2X in SPSR
>
> krystian.hirsch wrote:
>
> >Hi group,
> >
> >
> >
> >
> >I cannot set the SPI2X bit within the SPSR (it should double the speed
> >of the SPI) on the mega16 using AVRStudio 4.0.
> >
> >
> >The SPI is already set up as Master.
> >
> >Anyone got to the cause or have explanation?
> >
>
> >
>
> What exactly do you mean by "I cannot set the SPI2X bit"? Are you using
>
> the AVR Studio 4.x simulator?
>
> You'll have to provide more details.
>



reply via email to

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