Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to start coding program using c language?

Status
Not open for further replies.

dann11

Full Member level 3
Joined
Oct 22, 2015
Messages
166
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
2,742
I want to learn how to write a program in C language,. what are the things I must do? what are the information must I declare? How would I do register addressing? How should my sets of instructions be arranged? Thanks..
 

first take a good book in c programming and read it.
you will know about declaration etc.

you have asked for 'how to do register addressing?'
this is assembly level programming. dont mix it with C.

probably a 'basic/fortran' programmer ?
 
  • Like
Reactions: dann11

    dann11

    Points: 2
    Helpful Answer Positive Rating
Hi,

First select what microcontroller (-family) you want to use.
Then buy a development board with this controller. It should be one with a lot of (example) software in the net..and with a lot of discussions. (Arduino is such a thing)
Maybe you need a power supply and a programmer.
Then start with some example programs you find in the net. Maybe a simple LED blink function.
With it you can see what important defines and setup you need.
Try to modify the code and see what happens

Learning by doing is a good way. With fast results.
But be warned: Not every code you find in the internet is "good code".
From the beginning: try to comment your code. Divide it in visible sections with headlines.

But for sure this can't a void a good book.

Klaus
 
  • Like
Reactions: dann11

    dann11

    Points: 2
    Helpful Answer Positive Rating
** ALWAYS ** First step is defining what you want to achieve.

Writing code comes afterwards.

Programming should be 99% inspiration and 1% perspiration!

Brian.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top