Yahoo Groups archive

AVR-Chat

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

Message

Re: comms problem

2008-04-06 by enkitec

--- In AVR-Chat@yahoogroups.com, "Brian" <blue_eagle74@...> wrote:
>
> I made a program in asm that kinda works. the only problem is when my 
> mega16 xmits to hyperterminal I get weird symbols. I am working with 
> 4Mhz 4800 baud. the letters in sram are in hex format. But the 
> symbols in HT look like they are from the extended ascII table. My 
> baud rate is set at 0x51. Has anyone else have a simliar problem?
> 
> Brian
> 
> 
> ..........
> main:
> 	ldi	ZH,high(message*2)	; Load high part of byte 
> address into ZH
> 	ldi	ZL,low(message*2)	; Load low part of byte 
> address into ZL
> 	clr	r0					;
> 
> menu:
> 	lpm						; Load byte 
> from program memory into r0
> 	nop						;
> 	nop						;
> 	tst	r0					; Check if I 
> reached the end of the message
> 	breq	run				; If so, continue
> 	mov treg, r0			;xmit message
> 	rcall txcomp			;
> 	adiw	ZL,1			; Increase Z registers
> 	rcall menu				;


Wouldn't this last instruction be "rjmp menu"?

Mark Jordan

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.