Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
722 Views

NIOSII Altera Monitor C code help!!!

typedef volatile struct 

uint32_t period; 

uint32_t pulse_width; 

 

 

} PWM; 

 

 

voidmain(void){ pwm * const pled = ... 

pled->period = 5; pled->pulse_width = 4; 

asm("nop"); asm("nop"); asm("nop"); pled->pulse_width = 2;} 

For the code above. 

I would like to know what modules I need to create for the computer. For example if i need, a PIO module in SOPC called pLED or period or pulse_width or all of them.  

Thanks.
0 Kudos
0 Replies