Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Can't change BAUD on DE1 UART

Altera_Forum
Honored Contributor II
1,499 Views

I am using the DE1_NIOS example and have implemented a simple nios program to transfer characters to and from hyperterminal. My problem is that when I change the baud rate in SOPC builder, nothing happens - it stays at 115,200. I have also tried to change the baud in software, but still, my terminal program only works at 115,200. The ptf file setting clearly show a baud of 9600, etc...

0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
613 Views

Are you sure the pc end isn't autodetecting the baud rate? 

I don't trust hyperterminal to do anything sensible at all!
0 Kudos
Altera_Forum
Honored Contributor II
613 Views

What's your SOPC builder setting for baudrate?  

Fixed or variable? 

If the latter, maybe your program or the HAL driver forces somewhere the divisor register for a 115200 rate.
0 Kudos
Altera_Forum
Honored Contributor II
613 Views

I have used a variety of terminal applications and also tried with both baud fixed and baud variable. I can't work out why it's happening. I'll try creating my own project from scratch rather than use the DE1_NIOS project.

0 Kudos
Altera_Forum
Honored Contributor II
613 Views

The uart clock divisor is probably documented with the its register definitions (the sopc builder usually has links to these). 

So you could write your own driver instead of using the Altera HAL. But even using their HAL you can read/write the registers to find what has been set.
0 Kudos
Reply