Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Prototypitis

2005-03-01 by Dave VanHorn

Well, it's still got me.

USART1 continuously hits me with a TXD int, even though it's not enabled.


.org 0
	rjmp	RESET		;
	rjmp	EX_INT0	;
	rjmp	EX_INT1	;
	rjmp	EX_INT2	;
	rjmp	EX_INT3	;
	rjmp	EX_INT4	;
	rjmp	EX_INT5	;
	rjmp	EX_INT6	;
	rjmp	EX_INT7	;
	rjmp	T2_COMP	;
	rjmp	T2_OVF	;
	rjmp	T1_CAPT	;
	rjmp	T1_COMPA	;
	rjmp	T1_COMPB	;
	rjmp	T1_OVF	;
	rjmp	T0_COMP	;
	rjmp	T0_OVF	;
	rjmp	SPI_STC	;
	rjmp	USART0_RX	;
	rjmp	USART0_UDRE	;
	rjmp	USART0_TX	;
	rjmp	ADC_Ready	;
	rjmp	EE_Ready	;
	rjmp	AN_COMP	;
	rjmp	T1_COMPC	;
	rjmp	T3_CAPT	;
	rjmp	T3_COMPA	;
	rjmp	T3_COMPB	;
	rjmp	T3_COMPC	;
	rjmp	T3_OVF	;
	rjmp	USART1_RX	;
	rjmp	USART1_UDRE	;
	rjmp	USART1_TX	; <---- I keep coming here.
	rjmp	TWI		;
	rjmp	SPM_READY	;

According to the ICE, I really am writing 00h to these registers, and they 
are still zero (except UCSR1A) when the int happens.  Uart not enabled for 
TX or RX, and UDR1 never written to, I just don't see why I'm getting 
hammered like this.
It ACTS like a UDRE, which is even worse. (ints all the time, after every 
instruction!)

;
;**********
;UART1 not used in this application
;**********
;
	sts		UCSR1A,ZERO		;
	sts		UCSR1B,ZERO		;
	sts		UCSR1C,ZERO		;
	sts		UBRR1H,ZERO		;
	sts		UBRR1L,ZERO		;
;

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.