|
|
|
|
|
|
|
Re:UART interrupt mode (1 viewing) (1) Guests
Favoured: 0
|
|
|
TOPIC: Re:UART interrupt mode
|
|
|
|
UART interrupt mode 2 Months, 1 Week ago
|
Karma: 1  
|
|
Hi, I have to read some data from UART of my flex board: using the EE_UART_Receive I was able to read all the data correctly. But unfortunatly I have to use interrupt instead of polling. I found a function in eeuart.h header, EE_UART1_SetCallback: is it for reading data with interrupt? If so, can someone explain me how to use it? I can't understand how it works...
Thanks to all! /Alberto
|
|
|
|
|
|
|
The administrator has disabled public write access. |
|
|
|
Re:UART interrupt mode 2 Months, 1 Week ago
|
Karma: 4  
|
|
I guess you refer to the files into the pic30_serial example...
The general idea of the callback is the following: - the driver provides all the internal details about handling the serial line. - but when a data is transmitted or received, only the application knows what to do with that data. - for that reason, the driver stores in a pointer to function an application callback, which is called upon reception or send of a byte on the serial port. The contect in which the callback is called is an ISR2, so that the application can call RTOS primitives, for example to activate a task or set an event.
but reading the code, It seems they only support Polling; also the callback are not implemented.
If you modify it adding interrupts, please send the result back to nino, so taht we can integrate it into the main build...
Ciao,
PJ
|
|
|
|
|
|
|
The administrator has disabled public write access. |
|
|
|
Re:UART interrupt mode 2 Months, 1 Week ago
|
Karma: 1  
|
|
Ok, I will try to do something. Thank you!
Ciao, /Alberto
|
|
|
|
|
|
|
The administrator has disabled public write access. |
nino (Moderator)
Moderator
Posts: 15
|
|
Re:UART interrupt mode 1 Month, 4 Weeks ago
|
Karma: 2  
|
|
It started as a polling demo, then it was extended. It was not finished yet when the kernel was released, then we had the idea of putting devices support in the board level so the demo was not ended. We hope to have the new support in the next release of the kernel.
|
|
|
|
|
|
|
The administrator has disabled public write access. |
|
|
|
Re:UART interrupt mode 1 Month, 3 Weeks ago
|
Karma: 0  
|
|
Hi, I was reading this post. I'd like to use UART in interrupt mode too. Could you explain better how to set-up the peripheral in "Interrupt mode" ?
Thank you, Pasquale.
|
|
|
|
|
|
|
The administrator has disabled public write access. |
nino (Moderator)
Moderator
Posts: 15
|
|
Re:UART interrupt mode 1 Month, 3 Weeks ago
|
Karma: 2  
|
|
The peripheral settings in the described demo are fully working and you can look at them as an example. It is the I/O management the is still an ongoing part.
|
|
|
|
|
|
|
The administrator has disabled public write access. |
|
|
|
|
|
|
|
|
 |
Evidence S.r.l. - PIVA: 01638690501
Via Carducci 64/A - Ghezzano - Pisa - Italy
|
Privacy Policy
|
 |
|
|