- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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...
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you sure the pc end isn't autodetecting the baud rate?
I don't trust hyperterminal to do anything sensible at all!- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page