Home     Company     Products     Services     Community     Download     Store
    [Home arrow Community arrow Forum ]
Community
Community
Login Form





Lost Password?
No account yet? Register
Evidence Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:UART interrupt mode (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: Re:UART interrupt mode
#247
Alberto_82 (User)
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
Gender: Male alberto_savioli@libero.it Location: Mantova Birthdate: 1982-12-09
UART interrupt mode 2 Months, 2 Weeks 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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#248
paolo.gai (Admin)
Admin
Posts: 116
graph
User Offline Click here to see the profile of this user
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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#252
Alberto_82 (User)
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
Gender: Male alberto_savioli@libero.it Location: Mantova Birthdate: 1982-12-09
Re:UART interrupt mode 2 Months, 1 Week ago Karma: 1  
Ok, I will try to do something.
Thank you!

Ciao,
/Alberto
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#286
nino (Moderator)
Moderator
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
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.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#297
desmomito (User)
Junior Boarder
Posts: 27
graphgraph
User Offline Click here to see the profile of this user
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.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#299
nino (Moderator)
Moderator
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
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.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Evidence S.r.l. - PIVA: 01638690501
Via Carducci 64/A - Ghezzano - Pisa - Italy
Privacy Policy