(a) Explain the frame format of 1'C with suitable diagram
(b) Write a C language program to generate square waveform of 5KHz on pin Pls of
89C51
(c) If the content of ACC =0 * 02 and PI = 0 F3. State the result after execution of
following statements independently:
D) result - ACC & PI
i) result = ACCIPI
iii) result = ACC API
iv) result-P1
(d) Compare between assembly language program with an embedded 'C' program with
reference to following points:
i) Execution time
ii) Time for coding
iii) Hex file size
iv) Debugging
Answers
Answered by
0
(d) Comparison between assembly language program and an embedded 'C' program
i) Execution time - Assembly language program requires less execution time than embedded 'C' program which requires more time.
ii) Time for coding - Assembly language program requires more time for coding while embedded 'C' program requires less time.
iii) Hex file size - Assembly language program requires less size and embedded 'C' program requires more size.
iv) Debugging - Debugging is not easy in assembly language program where as in embedded 'C' program, it is easy.
- In contrary like most high-level programming languages, which are usually transferable across various systems, assembly language is a low-level programming language for a CPU or other controllable device that is particular to a specific computer architecture.
- Embedded C is the popular programming language in the software industry for creating electronic devices. Every processor in an electronic system is linked to embedded software.
- Embedded C programming is essential for the processor to perform specific functions. In our daily lives, we use a variety of electronic devices such as cameras, washing machines, cell phones, laptop computers, and so on.
Similar questions