Thread: H8/300H Embedded C Programming

  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    6

    Post H8/300H Embedded C Programming

    please help. i'm really lost with this one. can someone help me with this? do you know anything about programming in C and embed it on a chip. thanks.

  2. #2
    Bios Raider biosninja's Avatar
    Join Date
    Jul 2002
    Location
    South Africa
    Posts
    765
    Hmmm... I think you will need to go assembly for this one....
    A friend of mine works with stuff like that... he uses assembly language for the hardware ad fava for th moitoring software
    The knack of flying is learning to throw yourself at the ground and miss.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Do you have a development board with this processor on it - if so, from who?

    Do you have a C compiler for it - if so, which one?

    Do you already know how to program in C in a desktop environment? If not, then embedded C programming really isn't a good place to start.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    GCC can compile code for that processor.

  5. #5
    Registered User
    Join Date
    Jun 2006
    Posts
    6
    Quote Originally Posted by Salem
    Do you have a development board with this processor on it - if so, from who?

    Do you have a C compiler for it - if so, which one?

    Do you already know how to program in C in a desktop environment? If not, then embedded C programming really isn't a good place to start.
    i already have gcc (the compiler for this type)
    i already know how to program in C.
    i already have the board with H8 processor, i just have to connect it with my PC.

    and by the way, i have made a program already showing the infamous "HELLO WORLD" on the LCD attacehed with the board.

    anyway, now, i am trying to write one which will relay message thru LAN.

    thanks.

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > i have made a program already showing the infamous "HELLO WORLD"
    Excellent, then you've already solved many of the issues needed to make programs.

    Now, what is your REAL question?

    > do you know anything about programming in C and embed it on a chip
    Pretty much the same as on a PC, exept for
    - there's no OS
    - there's less RAM
    - it's not as quick
    - .....
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    Registered User
    Join Date
    Jun 2006
    Posts
    6
    Quote Originally Posted by Salem
    > i have made a program already showing the infamous "HELLO WORLD"
    Excellent, then you've already solved many of the issues needed to make programs.

    Now, what is your REAL question?

    > do you know anything about programming in C and embed it on a chip
    Pretty much the same as on a PC, exept for
    - there's no OS
    - there's less RAM
    - it's not as quick
    - .....
    sorry, he he he. what i want to ask if you know how to do a program that"will relay message thru LAN.

    tnx.

  8. #8
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Does your board have a LAN interface?
    Did it come with any libaries?
    Do those libraries support anything looking like the traditional BSD socket interface?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  9. #9
    Registered User
    Join Date
    Jun 2006
    Posts
    6
    Quote Originally Posted by Salem
    Does your board have a LAN interface?
    Did it come with any libaries?
    Do those libraries support anything looking like the traditional BSD socket interface?
    thanks for giving time to my questions....
    the board have LAN interface, and yes, it comes with libraries and about your last wuestion, i dont know.

  10. #10
    Registered User
    Join Date
    Jun 2006
    Posts
    6
    hi again. i would like to add that im using an H8 board and this link provides some help i got... http://translate.google.com/translat...lr%3D%26sa%3DG

    thanks a lot

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading and writing to an embedded file
    By HLMetroid in forum C# Programming
    Replies: 4
    Last Post: 01-02-2009, 12:03 AM
  2. Question on embedded systems
    By ssharish2005 in forum C Programming
    Replies: 3
    Last Post: 08-12-2007, 02:28 PM
  3. embedded c++
    By fizz_uk83 in forum C++ Programming
    Replies: 4
    Last Post: 08-13-2003, 08:09 AM
  4. Embedded C
    By Sheep in forum C Programming
    Replies: 3
    Last Post: 03-27-2002, 06:37 PM