Yahoo Groups archive

AVR-Chat

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

Message

Re: mega16 UBRRH/UCSRC

2004-04-09 by Dan

Is that what a shadow register is?  I noticed that earlier but wasn't 
certain what it was.  Thanks for your help

~Dan

--- In AVR-Chat@yahoogroups.com, "Kathy Quinlan" <kat-yahoo@k...> 
wrote:
> Read the AVR Studio 4 Bug and Help File, I think this is listed in 
there
> as a thing they are working on.
> 
> 
> Regards,
> 
> Kat.
> 
> > -----Original Message-----
> > From: Dan [mailto:danh48176@y...] 
> > Sent: Saturday, 10 April 2004 6:03 AM
> > To: AVR-Chat@yahoogroups.com
> > Subject: [AVR-Chat] mega16 UBRRH/UCSRC
> > 
> > 
> > Hello,
> > 
> > I'm trying to write a program that implements the UART on my 
ATmega16 
> > and allow it to communicate with my PC.  In configuring the two 
> > registers UBRRH and UCSRC, I have run into difficulty.  I 
understand 
> > that these two registers share the same address space and that 
the 
> > first bit determines which register is written to.  However, when 
I 
> > run the simulator in AVRStudio 4, both registers are written no 
> > matter what that bit is.  Here is the code snippet and what 
happens 
> > in comments:
> > 
> > ldi temp, 0b10001100
> > out UCSRC, temp     ;UBRRH = xxxx1100, UCSRC = 10001100
> > ldi temp, 0b00000000
> > out UBRRH, temp     ;UBRRH = xxxx0000, UCSRC = 00000000
> > 
> > Is this just an issue with the simulator in AVRStudio or am I 
really 
> > making a mistake somewhere?  I do not have an STK500 because I'm 
in 
> > college (read: poor), so I have no way of knowing what the AVR is 
> > really doing.
> > 
> > Any help is greatly appreciated.
> > Thanks,
> > 
> > ~Dan
> > 
> > P.S. - is there a way to directly input text in Hyperterminal?  
What 
> > are some Hyperterminal alternatives?
> > 
> > 
> > 
> >  
> > Yahoo! Groups Links
> > 
> > 
> > 
> >  
> > 
> > ---
> > Incoming mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.642 / Virus Database: 410 - Release Date: 24/03/2004
> >  
> > 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.642 / Virus Database: 410 - Release Date: 24/03/2004

Attachments

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.