- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How could I set write UART speed?
I'm opening /dev/uart1 device via fopen(). SOPC builder just do not have speed option. I'm using Nios IDE 9 and Quartus 9 and Nios II dev kit EP2S60 RoHS. Soemthing via IOCTL?Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You have two possibilities to set the baudrate in UART.
Either at system generation time and you cannot modify it after, or in SOPC Builder you check "Baud rate can be changed by software (Divisor register is writable)". And you can modify the baudrate in software by writing into the divisor register. The formula between this register and the baudrate is in Quartus Handbook Volume 5 page 6-4 (http://www.altera.com/literature/hb/nios2/n2cpu_nii51010.pdf).
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page