axi uart 16550 ip core使用流程
axi uart 16550
一、IP core使用流程
1.Line control register线控制寄存器写0x00000080
设置DLAB(Divisor Latch Access Bit)为1,允许写入Divisor Latch的值;
//假设UART的LCR寄存器地址是0x<some_address>
uint16_t lcr_value = 0x0080; // 设置DLAB位为1
write_to_register(0x<some_address> , lcr_value); // 写入线控制寄存器
2.写Divisor Latch用来配置波特率
3.写0x0000_001F到线控制寄存器以设置数据格式
4.启用中断
5.通过中断进行数据传输和接收
参考:https://blog.csdn.net/u011565038/article/details/138845991