Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Xmega serial ring buffers

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
Kiedro

Bascom Member



Joined: 08 Mar 2006
Posts: 81

germany.gif
PostPosted: Wed Jun 02, 2010 12:57 pm    Post subject: Xmega serial ring buffers Reply with quote

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
View user's profile
AdrianJ

Bascom Expert



Joined: 16 Jan 2006
Posts: 2483
Location: Queensland

australia.gif
PostPosted: Wed Jun 02, 2010 11:42 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
Kiedro

Bascom Member



Joined: 08 Mar 2006
Posts: 81

germany.gif
PostPosted: Thu Jun 03, 2010 9:47 am    Post subject: Reply with quote

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
View user's profile
Joakim

Bascom Member



Joined: 09 Jan 2007
Posts: 38

sweden.gif
PostPosted: Thu Jul 29, 2010 12:21 pm    Post subject: Reply with quote

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
View user's profile
Joakim

Bascom Member



Joined: 09 Jan 2007
Posts: 38

sweden.gif
PostPosted: Fri Aug 13, 2010 5:03 pm    Post subject: Reply with quote

Bump!
Any news or info on buffering the COM ports on the xmega?

/Joakim
Back to top
View user's profile
Kiedro

Bascom Member



Joined: 08 Mar 2006
Posts: 81

germany.gif
PostPosted: Fri Aug 13, 2010 7:50 pm    Post subject: Reply with quote

/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
View user's profile
Joakim

Bascom Member



Joined: 09 Jan 2007
Posts: 38

sweden.gif
PostPosted: Wed Aug 18, 2010 1:18 pm    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum