Certain value chosen is delayed or sustained for a time period to form the square wave. Here in the code, we use two delay elements one for the rising part of the wave and the other delay element to reach zero i.e decrement. Program to interface DAC using 8255 and generate square waveform The following is the assembly language using DAC to interface with 8255 and generate a square wave on CRO. Program to interface DAC using 8255 and generate square waveform Following is the Assembly language program for a real time clock Code: LCALL 061D AGAIN MOV DPTR, #2845 REPEAT DEC82 Decrement DPL MOVX MOV R3,A MOV R5,#02 LCALL 059E MOV A,20 LCALL 2006 MOVA,82 CJNE A,#42 REPEAT (ED) MOVA,#OD OD = ASCII FOR ENTER LCALL 2006 LJMP AGAIN ( 6003 ) To change the RTC 2844-hrs 2843-minutes 2842-seconds 0 comments Labels: 8086, Assembly Language, c program, real time clock OCT 21, 2008
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |