Forum Discussion
Altera_Forum
Honored Contributor
21 years agoDirect access to pins
Hello you all! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif I've just begun playing with Nios Development Kit - Cyclone Edition. I'm using the count binary t...
Altera_Forum
Honored Contributor
21 years ago> Are these steps correct?
yes :-) > And about step 3, how do I set and reset the pin in C? Just define a pointer to the 'data' register and write the data you want. If your're using data cache, you may want to set bit 31 of the address. unsigned long *p = (unsigned long *) 0xSOMEADDR; ... for (;;) {*p = 1; *p = 0;} --Scott