Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: AT91M40800 USART
PostPosted: Sun Feb 06, 2005 9:46 pm 
Offline

Joined: Sun Feb 06, 2005 9:01 pm
Posts: 2
Hi

I have got serious problem with AT91M40800 USART. The problem is, I think, with USART configuration. I'm sending a one character from my computer RS232. Then USART generates interrupt and that is it. He stoppes at instruction: while(!US_CSR1_bit.rxrdy); He does not recive any character? What is wrong?

My configuration is:

__US_MR1 = 0x000008C0; //no Parity, Eihgt bits

__US_IER1 = 0x00000001;
__US_IDR1 = 0xFFFFFFFE;

__US_BRGR1 = 40000000 / 9600/ 16;

__US_RPR1 = 0x00000814;
__US_RCR1 = 0x0000000F; // USART RECEIVER BUFOR SIZE


__AIC_SMR3 = 0x00000026; EDGE TRIGGERED
__AIC_SVR3 = 0x01001FFF;

__AIC_SMR16 = 0x00000005;
__AIC_SVR16 = 0x01002FFF;

__AIC_IECR = 0x00010008; // USART1 & IRQ0 ENABLED
__AIC_IDCR = 0xFFFEFFF7;
__AIC_ICCR = 0x00010008;
__AIC_ISCR = 0x00000000;

__US_CR1 = 0x000000A0; // Disable receiver, disable transmitter.
__US_CR1 = 0x0000010C; // Reset status bits, reset rx/tx.
__US_CR1 = 0x00000010; // Enable receiver

I dont know what to do. I have tryed everything.

best regards
Michal Kowalczyk


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 11, 2005 2:10 am 
Offline

Joined: Sat Nov 13, 2004 12:16 pm
Posts: 11
try www.toadhaul.org/arm.php


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 11, 2005 7:12 pm 
Offline
User avatar

Joined: Fri Feb 13, 2004 7:53 pm
Posts: 329
Be sure that the clock of the usart is turned ON.

Else, check our software examples on our website

http://www.atmel.com/dyn/products/tools ... ol_id=2717

This for the EB40A with the R40008 CPU, but the usart is the same.

Bye


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: