1. fii_i2c0.c Related reference articles: RISC-V teaching plan fii_i2c0.c mainly implements some functions declared in fii_i2c0.h. #include <stdio.h> #include <stdint.h> #include “fii_i2c0.h” #include…
1. I2C0 module design Related reference articles: RISC-V teaching plan The structure of the RISC-V I2C0 module is shown in Figure 1. Because…
1. Introduction to I2C Related reference articles: RISC-V teaching plan PRX100-D develops the EEPROM chip of AT24C02 onboard, and the test of the…
1. fii_uart1.c Related reference articles: RISC-V teaching plan fii_uart1.c is mainly used to implement the declared UART1_IRQ_register function in fii_uart1.h #include <stdio.h> #include…
1. UART CPU implementation Related reference articles: RISC-V teaching plan The RISC-V UART1 module is the same as the physical layer of the general…
1. Introduction to UART Related reference articles: RISC-V teaching plan Before entering the RISC-V UART interrupt design, here is a brief introduction to the…
1. Engineering code Related reference articles: RISC-V teaching plan The interrupt caused by PWM is also an external interrupt, and its interrupt request…
1. Introduction to PWM Related reference articles: RISC-V teaching plan PWM (pulse-width modulation), pulse width modulation is a method of cutting the electrical…
2. Engineering code Related reference articles: RISC-V teaching plan 2.3. fii_gpio.c #include <stdio.h> #include <stdint.h> #include “fii_gpio.h” #include “platform.h” //Function to implement GPIO…
1. GPIO interrupt source Related reference articles: RISC-V teaching plan In PLIC (PLIC introduction click here ), among the external platform-level interrupt sources,…
1. PLIC software design Related reference articles: RISC-V teaching plan 1.4. plic_driver.c #include “platform.h” #include “plic.h” #include “plic_driver.h” #include “encoding.h” #include <string.h> //Initialize…
1. Interrupt source (ID) definition Related reference articles: RISC-V teaching plan The definition of the interrupt source on the address map (click here…
Reference materials: RISC-V User-Level ISA RISC-V Privileged Architecture RISC-V Address Map version FII-PRX100-D schematics SiFive Freedom Studio Manual FII-PRX100-D(ARTIX 100T,XC7A100T) Hardware Reference Guide FII RISC-V…