-
Ordering information
Call us or mail us for inquiries & availability: info@mtronixtech.com
-
Search projects by Price
-
Project Categories
- Robots and Robotics
- GSM based Projects
- GPS based Projects
- RFID based Projects
- Energy Saving
- Wireless Communication
- DTMF based projects
- SMS based projects
- RF Remote
- Mobile Controlled
- Power Saver
- Sensor based Projects
- Alcohol Sensor
- heartbeat Sensor
- Humidity Sensor
- Infrared Sensor
- Level Sensor
- Light Sensor
- LPG Gas Sensor
- Moisture Sensor
- Temperature Sensor
- Vibration Sensor
- Weight Sensor
-
Search projects by Application
Project Videos:
Landrover Robot Operated by Cellphone
Industrial Automation using Cellphone
Password based door locking
Automatic room light controller
Temperature controlled fan
Electronic voting machine
Search by Components
89c51 89s51 89s52 89v51RD2 555 ADC0808 ADC0809 AT24c16 AT24c64 AT89s52 Battery BC547 Bulb Buzzer Darlington Pair DC motor Decoder EEPROM Fan GPS GSM IR LED Keypad L239D LCD Display LDR LED LM35 LM358 Matrix keypad MAX232 Motor Driver MQ6 PC Interface Relay RFID Card RFID Reader RFID Tags Sim300 sim900 SR86 SR87 Stepper Motor SYHS220 TSOP1738
Digital to Analog converter - DAC interfacing with 8051
Sample code for Digital to Analog converter - DAC interfacing with 8051.
Following code can be using for 8051 and 8052 ICs like: 89c51, 89c52, 89s51, 89s52, 89c2051.
;========================================================= ; Downloaded from www.projectsof8051.com ; MicroTronics Technologies ;========================================================= ORG 0000h mov P2,#00H repeat: call squarwave ; generate square wave call triwave ; generate triangular wave call stairwave ; generate staircase wave jmp repeat squarwave: mov P2,#FFH call delay2sec mov P2,#00H call delay2sec ret triwave: mov R7,#00H triwave1: mov P2,R7 inc R7 cjne R7,#FFH,triwave1 mov R7,#FFH triwave2: mov P2,R7 djnz R7,triwave2 ret stairwave: mov P2,#00H call delay2sec mov P2,#20H call delay2sec mov P2,#40H call delay2sec mov P2,#80H call delay2sec ret delay1sec: mov r0,#10 del2: mov r1,#250 del1: mov r2,#250 djnz r2,$ djnz r1,del1 djnz r0,del2 ret delay2sec: mov r0,#20 del22: mov r1,#250 del21: mov r2,#250 djnz r2,$ djnz r1,del21 djnz r0,del22 ret END ;========================================================= ; Downloaded from www.projectsof8051.com ; MicroTronics Technologies ;=========================================================