I'am working with at91sam7x256 and in my program the usart interrupt dosen't work correctly ! I communicatinon with atmel but it isn't fix yet.
thise is my program...pleas help me
www.4shared.com/.../usart16__2_.html
my mail :salehi.elc@gmail.com
"if i want reset the interrupt on exit from the irq_handler what work should I do ?"
That is really basic stuff - absolutely fundamental to any use of the interrupts!
Do you mean to say that you've been working on this for (over?) 2 months, and you haven't carefully studied that in the datasheet and/or "user manual" and any other documentation you can lay your hands on?!
And with all of this, how could you think it is a buge in the compiler?
NO! I read carefully the datasheet and all user manual about at91sam7x and usart and etc.
if you see my code you see that I do all thing's you say to me for reset interrupt and do that: "...any use of the interrupts!,..." but I have that bug yet...
my problem doesn't basically problem!!
because I search in all of internet and doesn't find any correct sample or example for usart interrupt!!
the all of them had bug and doesn't work correctly
OK, so go right back to basics.
Write a really simple "Hello, world" program that just transmits characters using the UART and interrupts.
When you have that working, add interrupt-driven serial receive.
And so on, step by step...
ok.. thans Mr.neil I doesn't have any problem in send and receive data (without work with interrupt) ...the all of my problem is in interrupt mode .. my usart is realy correct..my RXRDY usart interrupt in basic step doesn't work correctly !!
i doesn't want a big thing from you !!! I only want a one realy basically sample!!only one that work without any bug!!!is in all of the word exist one correct program for it??? if yes pleas send me to rationalization!! but it not exist any correct sample for it what is meaning of that??
"..but iF not exist any correct sample for it what is meaning of that??"
So post the smallest, complete example that illustrates your problem.
Just a simple example that sends & receives characters using the UART and interrupts.
ok...my program is so simple example of it..this program must return any caractere of receive. it is very simple . thank you very much.
they are the links for download it:
http://www.keil.com/forum/docs/thread16626.asp#msg84658
OR
and one thing i should say about my program is that: i want my program send every bit that receive suddenly.
and since speed of it, i used usart interrupt to do it very quickly.
i want my program send every bit that receive suddenly.
You may have read the user manual, but you failed to understand it. Your UART will generate an RX interrupt after receiving a word of various sizes and possibly a variable amount of these words, but not after detecting a bit. Why would you want that in a UART?
Dear everybody I'm friend of Ali Salehi. I think you must know what we want to do with Micro controller. We want to write a program that send a receive byte from serial port (as like a serial(RS-232) hardware loopback). I know that if i want to do that i must use micro controller serial in interrupt mode. but, we have a problem with interrupt mode. also we wrote a program for timer and used the interrupt mode but did not work correctly too.so Please don't say anything like as "that is basic problem". If you work with ARM interrupts, Please Help us. I think it is necessary to say that we run LCD & ADC & IO in ARM and worked correctly.
It is simply hard to believe that two people, that are supposed to be skilled or at least have the capacity to learn new things, are stuck on this. You too don't read or try to understand what people are saying to you, as you don't really bother to read the user manual in detail or the samples. Nobody here is going to do your homework - face it.
Ho, by the way I caught you in a little lie - did you REALLY successfully enable LCD control without interrupts? I don't think so.
I guess controlling an LCD is possible without interrupts, but the result cannot be really satisfactory!
Sorry, but I don't trust those "file sharing" sites, I'm afraid.
You should be able to Post the source of a simple program into the forum.
Be sure to read the instructions on posting code first...
One thing to note: do not use TABs to lay-out your code - use only spaces.
Depends on the hardware. I'm using an LPC3250. The LCD controller is not using interrupts. Simply a case of setting up the hardware and letting it do it's own thing. It works a treat.
Not sure about the at91sam7x256 that Tweedle Dum and Tweedle Dee are using here, but it surprises me that they can get an LCD controller going, but struggle with a USART.