Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: at91SAM9260 USART 16Bit Oversampling in Linux
PostPosted: Wed Dec 01, 2010 10:06 pm 
Offline

Joined: Wed Dec 01, 2010 9:53 pm
Posts: 1
Hi
We are using Atmel AT91SAM9260 processor for our development with Angstrom Linux distro.
Reading through the datasheet, i noticed it is possible to configure uart to use 16 bit oversampling instead of 8 bit. The setting is in the mode register of the uart.
My question is, what is the easiest way to set this bit in the mode register in linux? (we are using 2.6.27 kernel)
I looked through the kernel source but didn't find any reference to that register bit being used anywhere, however its defined in linux/include/linux/atmel_serial.h
#define ATMEL_US_OVER (1 << 19) /* Oversampling Mode */

I also looked at linux/drivers/serial/atmel_serial.c
and though that i can put setting this register bit in the
static void atmel_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old)

function.
Is this a proper way of doing it?
Thanx in advance


Top
 Profile  
 
 Post subject: Re: at91SAM9260 USART 16Bit Oversampling in Linux
PostPosted: Thu Dec 02, 2010 3:57 am 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 574
Wouldn't you just use it when you set up the USART baud rate?

Now it probably isn't used because 8x over-sampling of the bit window is likely quiet sufficient for most applications using crystal derived frequencies for baud rate generation.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Search for:
Jump to: