[工学]SOPC_Nios外设及其编程.pptVIP

  • 5
  • 0
  • 约9.3千字
  • 约 77页
  • 2018-03-09 发布于浙江
  • 举报
[工学]SOPC_Nios外设及其编程

第六章 Nios外设及其编程 主要内容 PIO 串口UART 定时器编程 SDRAM控制器内核 CFI控制器内核 DMA内核 System ID内核 6.1 PIO(Parallel I/O) #include system.h #include altera_avalon_pio_regs.h #include alt_types.h int main (void) __attribute__ ((weak, alias (alt_main))); int alt_main (void) { unsigned char led = 0; unsigned int i; while (1) { led = 0; IOWR_ALTERA_AVALON_PIO_DATA(LED_PIO_BASE, led); i = 0; while (i500000) i++; led = 1; IOWR_ALTERA_AVALON_PIO_DATA(LED_PIO_BASE, led); i = 0; while (i500000) i++; } return 0; } 6.2 串口UART #include stdio.h #include string.h #include io.h #include s

文档评论(0)

1亿VIP精品文档

相关文档