--- In AVR-Chat@yahoogroups.com, John Samperi <samperi@...> wrote: > > At 12:49 PM 6/04/2008, you wrote: > >In studio4 my int clock is read as 3.686Khz. > > ?? You DID say 4 MHz before, which is it? Are you using > a crystal for the clock? If not you can pretty much > forget about decent and stable comms. > > How is the USART initialized? > > Are you trying to disguise you message? > > What's wrong with: > message: > .db "Press space key to continue", $0A,$0A,$0D,$00 > > Unless you are using a very old chip you may also want to try: > lpm rx,z+ > > where rx is any unused register. > > Regards > > John Samperi I am using the atmega16l. I programmed the fuse bits for internal 4Mhz. When I read the stk500 osc in studio4 it says 3.686Mhz. I have tried various baud rate setting +/- a couple from $51 to UBRRL. As far as I know, when using lpm the result is stored in r0. I am limited in info right now, just learning. When I make a program to echo what I type it works and I see what I type in HT. But trying to pull data from ram and send it to HT it doesnt work. I was thinking that sending a hex character to HT it would show in ascII format so I can read it. Brian
Message
Re: comms problem
2008-04-06 by Brian
Attachments
- No local attachments were found for this message.