Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Baud rate wrong if Baud rate regisiter allowed.

I have a NIOS processor with a UART included.

My clock speed is 24MHz which I have set in SOPC buider.

My application has uses this UART as it's stdout.

My UART has a default baud rate of 115,200. If i DONT include the baud rate register in the build i get communications at 115,200 baud no problem. i.e. i get the "hello World" message if i build a new project based on this processor.

However if i include the baud rate register and re-compile FPGA and re-build the application i find that the "hello World" message comes out at 57,600 instead of the 115,200 set in the defaults.

I don't explicitly set the baud rate register (isn't sys_init supposed to do that).

It just looks like somewhere along the line something hasn't been set up correctly.

Has anyone else seen this.

I'm currently using Quarttus 7.2 SP3 with NIOS EDS 7.2

No RepliesBe the first to reply