View previous topic :: View next topic |
Author |
Message |
Kiedro
Joined: 08 Mar 2006 Posts: 81
|
Posted: Wed Jun 02, 2010 12:57 pm Post subject: Xmega serial ring buffers |
|
|
Hi all,
Is there anybody out who has written a snippet demonstrating a serial ring buffer for the Xmega? Atmel's AN1307 in principle shows how to implement a USART driver embedding access via ring buffer. Of course, the best were access following a designated Bascom command such as CONFIG SERIALINX.. and CONFIG SERIALOUTX.. where .. stands for C0, C1, D0, D1, E0, E1, F0, F1. But I am not sure about Mark's priorities.
Natalius |
|
Back to top |
|
|
AdrianJ
Joined: 16 Jan 2006 Posts: 2483 Location: Queensland
|
Posted: Wed Jun 02, 2010 11:42 pm Post subject: |
|
|
Do not Marks CONFIGSERIAL statements provide serial ring buffers on the XMega series ? They certainly work properly on the normal AVR chips. _________________ Adrian Jansen
Computer language is a framework for creativity |
|
Back to top |
|
|
Kiedro
Joined: 08 Mar 2006 Posts: 81
|
Posted: Thu Jun 03, 2010 9:47 am Post subject: |
|
|
Hi Adrian,
to my best knowledge CONFIG SERIALIN/OUT works up to the 2560/1280 with 4 USARTs. (The AR7212 makes use of it, for example). The XMegaA1 family however offers a maximum of 8 USARTs and the USART architecture is seen heavily connected to the event system and DMA by Atmel engineers. So I guess that giving access to the XMega-USART buffering calls for major changes at the compiler level also because not only CONFIG SERIAL, but also ISCHARWAITING, INKEY and more will be affected. I'm almost sure that the majority of us will prefer to see the new IDE at the next (major) revision. This is why I thought that an interim solution might be interesting for those of us who are keen to take advantage of the new features here.
Regards,
Natalius |
|
Back to top |
|
|
Joakim
Joined: 09 Jan 2007 Posts: 38
|
Posted: Thu Jul 29, 2010 12:21 pm Post subject: |
|
|
Hi
I'm also interrested in getting the serial input buffers to work on the xmega. Having problems right now with missing chars as i use multiple com ports.
Anyone investigated this and came to a solution?
/Joakim |
|
Back to top |
|
|
Joakim
Joined: 09 Jan 2007 Posts: 38
|
Posted: Fri Aug 13, 2010 5:03 pm Post subject: |
|
|
Bump!
Any news or info on buffering the COM ports on the xmega?
/Joakim |
|
Back to top |
|
|
Kiedro
Joined: 08 Mar 2006 Posts: 81
|
Posted: Fri Aug 13, 2010 7:50 pm Post subject: |
|
|
/JOAKIM
Mark will do it better than we can do. If it is not so long ahead then an interim solution is a waste of time. So let's hope. But don't press: Creative people like him will perform with maximal efficiency if there are not too many who disturb their circles...
Regards,
Natalius |
|
Back to top |
|
|
Joakim
Joined: 09 Jan 2007 Posts: 38
|
Posted: Wed Aug 18, 2010 1:18 pm Post subject: |
|
|
Not my intention to bother Mark directly that's why im sticking to the forum.
Hoping i'm not the only one trying out the Xmega so thats why i'm checking for an alternate solution/fix for the new irq-flags used on the Xmega USARTS ports.
Im sure everything will work out in the end but im pushing a project so if it's done allready then i wont need to write a buffer myself.
/Joakim |
|
Back to top |
|
|
|