Andes Workshop

It is currently Fri Mar 29, 2024 7:47 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: ADP-XC5, how to change CPU frequency and baud rate?
PostPosted: Mon Dec 23, 2013 11:59 am 
Offline

Joined: Wed Apr 13, 2011 7:44 pm
Posts: 23
In XC5 board, how to change CPU frequency and baud rate?

The default oscillator is 20MHz, and COM port baud rate is 38400.

If you want to change current CPU frequency, the only way is to change oscillator.
The baud rate setting is dependent on oscillator.
User can change baud rate by setting ATFUART010 Baud Rate Divisor Latch LSB (DLL) register (default value is 24=0x18).
In AndeSight demo project, you may change it in uart_init() function of uart.c file. Note that this function is under CFG_LLINIT define.
/* DLL = 0x18 */
outw(UART_BASE + 0x00, 0x18);

For example: N705
Attachment:
xc5_freq.png
xc5_freq.png [ 6.61 KiB | Viewed 10810 times ]


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 8 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group