How do you return a value back to the register. I have 2 functions, one reads the value of the registerand the other must return the value of ddr back to the registerCode:#define IOBASE 0x4000 void leesRegister( unsigned char* Register ) { Register[0] = *( ( unsigned char* ) ( IOBASE + 0x10 ) ); Register[2] = *( ( unsigned char* ) ( IOBASE + 0x12 ) ); Register[4] = *( ( unsigned char* ) ( IOBASE + 0x14 ) ); }But what keywords do I have to use etc? just a little help can get me started.Code:void schrijfRegister( Register, ddr ) { }
Microcontroller = Fujitsu
Datasheet = MB90F4 http://www.datasheets.org.uk/preview/2236300.html