387Views1Replies

Author Options:

Somebody Tell me How to program A Atmel Microcontroller 8052 with C Language? Answered

Somebody Tell me How to program A Atmel Microcontroller 8052 with C++   Language? I want to design a Circuit with this that relays operate by PC

1 Replies

user
steveastrouk (author)2011-01-13

There are no C++ compilers for the 8052, but there is a free C compiler called "SDCC". Make sure you get an Atmel variant that can be programmed over a standard serial connection, like the NXP P89C51RD2.

For something as simple as relay switching, what you want can be written in a few lines of assembler.

Steve

Select as Best AnswerUndo Best Answer