Skip to main content

Posts

Semester Time Table 30/4/12-- Process control 3/5/12-- I I 2 5/5/12-- communication engg . 8/5/12-- MC 10/5/12-- DSP 12/5/12-- BMI
Recent posts

Programmable Function Generator in C

 Works fine.... #include<reg51.h> #include<string.h> typedef unsigned char uchar; uchar flag; uchar count=0; uchar cmd[10]; uchar sineLukup[]={    0x80,0x96,0x0ab,0x0c0,0x0d2,0x0e2,0x0ef,                       0x0f8,0x0fe,0x0ff,0x0fe,0x0f8,0x0ef,0x0e2,                        0x0d2,0x0c0,0x0ab,0x096,0x80,0x6a,0x54,                        0x40,0x2e,0x1e,0x11,0x08,0x02,0x00,0x02,                     0x08,0x11,0x1e,0x2e,0x40,0x54,0x6a,0x80}; code uchar rIDN[] = "PROGRAMMABLE FUCNTION GENERATOR"; code uchar rVER[] = "version 1.1"; code uchar rMODSET[] = "MODE SET SUCCESSFUL"; code uchar rCMDERR[]="CMDERR"; void sendResp(uchar *val,uc...

MEI Record Print Out

Download MEI Record notes here: http://www.mediafire.com/file/2ac46zrwwr22ts2/MEI.zip This archive contains Front Panel and Block Diagram of first 5 experiments of MEI lab. (in Word (doc) format) Note:  5th exp (ie) firmware for programmable digital voltmeter contains no images,  just algorithm and source code

Function Generator Firmware

*** PROGRAMMABLE FUNCTION GENERATOR  *** Download as Archive // reset vector address = 0000h // org 0000h ljmp main // ***** INTERRUPT SERVICE ROUTINES ******// // Serial ISR -> called when a byte is received serially (RI sets) // receives Query from user, compares it with queries stored in ROM (stringCmp) // stringCmp -> responds to the query // RETI -> returns to where it is called org 0023h serialIsr:   JB TI,serialIsrExit   LCALL recQuery   LCALL stringCmp   CLR RI serialIsrExit: RETI   // ******* END OF ISR ******** // org 0100h //******* MAIN *******// // initialize r4 ( waveform type ) // enable global and local(serial) interrupts // initialize serial // generate wave ( type of wave is known from r4 ) main: mov r4,#00 mainLoop:   setb ea setb es lcall initSerial lcall generateWave sjmp mainLoop // ***********  SUBROUTINES ************// // initialization...