Search:

Type: Posts; User: Lettin03

Search: Search took 0.00 seconds.

  1. Replies
    20
    Views
    3,061

    Thank you for your compliment, you are right...

    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
    ...
  2. Replies
    20
    Views
    3,061

    That's right, I suppose "a[i] = y" will become...

    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 +...
  3. Replies
    20
    Views
    3,061

    "a[i] = y" backwards would be "y[i] = a" I think....

    "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...
  4. Replies
    20
    Views
    3,061

    matsp, judge my code above

    matsp, judge my code above
  5. Replies
    20
    Views
    3,061

    I Think I have written the right code, but there...

    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...
  6. Replies
    20
    Views
    3,061

    The code has to return the ddr value back to the...

    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...
  7. Replies
    20
    Views
    3,061

    Uhm I'm thinking about the same code, but = means...

    Uhm I'm thinking about the same code, but = means the variable becomes. Should I use ==?
  8. Replies
    20
    Views
    3,061

    Could you show how the opposite looks like then?...

    Could you show how the opposite looks like then? I cant figure it out and it's driving me crazy
  9. Replies
    20
    Views
    3,061

    How does a code, that does the exact opposite,...

    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] =...
  10. Replies
    20
    Views
    3,061

    Return value to Register

    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] = *( (...
  11. Replies
    3
    Views
    1,247

    Oh yes I see, thats a bit stupid of me. It...

    Oh yes I see, thats a bit stupid of me. It doesn't give the error anymore, thank you for watching and the advice!
  12. Replies
    3
    Views
    1,247

    Parameter error in Main

    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...
  13. Replies
    5
    Views
    13,936

    Oke that part I understand now, thank you for the...

    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...
  14. Replies
    5
    Views
    13,936

    Thank you very much, this is not the whole code I...

    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
  15. Replies
    5
    Views
    13,936

    Read register in C

    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...
  16. Replies
    2
    Views
    1,574

    Register variable

    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...
  17. Replies
    4
    Views
    1,439

    Well thank you very much! I will try your options

    Well thank you very much! I will try your options
  18. Replies
    4
    Views
    1,439

    What other options are possible for me to use...

    What other options are possible for me to use then?
  19. Replies
    4
    Views
    1,439

    ERROR Register = 0

    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?
Results 1 to 19 of 22