Thank you for your compliment, you are right though. This code will be my first code ever written in program languace. Actually yesterday I kept trying to find the right code. I believe this is it
...
Type: Posts; User: Lettin03
Thank you for your compliment, you are right though. This code will be my first code ever written in program languace. Actually yesterday I kept trying to find the right code. I believe this is it
...
That's right, I suppose "a[i] = y" will become "y[a] = i" then? I don't see any toher options. So the code
Register[0] = *( ( unsigned char* ) ( IOBASE + 0x10 ) );Backwards will be
( int ( IOBASE +...
"a[i] = y" backwards would be "y[i] = a" I think. But my code isn't suppost to be the exact opposite cause is contains 2 arguments in stead of 1. Maybe the code must be like this
void...
matsp, judge my code above
I Think I have written the right code, but there seems to be an error
void schrijfRegister( int Register, unsigned char ddr )
{
( IOBASE + 0x10 ) = ( int ) ( unsigned char );
}Can you see what...
The code has to return the ddr value back to the register
#define IOBASE 0x4000
void schrijfRegister( Register, unsigned char* ddr )
{
(IOBASE + 0x10) = Register[0], unsigned char*;
}Is this...
Uhm I'm thinking about the same code, but = means the variable becomes. Should I use ==?
Could you show how the opposite looks like then? I cant figure it out and it's driving me crazy
How does a code, that does the exact opposite, look like?
#define IOBASE 0x4000
void schrijfRegister( unsigned char* ddr )
{
ddr[0] = *( ( unsigned char* ) ( IOBASE + 0x10 ) );
ddr[2] =...
How do you return a value back to the register. I have 2 functions, one reads the value of the register
#define IOBASE 0x4000
void leesRegister( unsigned char* Register )
{
Register[0] = *( (...
Oh yes I see, thats a bit stupid of me. It doesn't give the error anymore, thank you for watching and the advice!
My main gives compiles an error
void schrijfOutput( char nummer, char waarde );
char leesOutput( char nummer, unsigned char* ddr );
char leesRX( unsigned char* ddr );
void leesRegister( unsigned...
Oke that part I understand now, thank you for the explenation. However, don't I have to declare value? and the argument Register is unused. After compiling I get an error
E4159C: redefinition of...
Thank you very much, this is not the whole code I assume? Could you explain the code just a little bit?
(IOBASE + 0x10); especially this code above. Thank you in advance
In my code I have to read the registers that I it uses, therefore I will use this function
void leesRegister( unsigned char* Register )The microcontroller is a Fujitsu MB90F497 and the registers I...
I have an problem with my code, it has to read the registers of the microcontroller and then store it in ddr
char leesOutput( char nummer )
{
unsigned char ddr[4];
char output = 0;
/*DDR...
Well thank you very much! I will try your options
What other options are possible for me to use then?
My code compiles an error, it says:
main.c(18) E4062C: syntax error near `='
main.c(24) E4062C: syntax error near `register'
Can someone see what I am doin wrong here?