Skip to main content

Posts

Showing posts with the label Electronics

Basic microcontroller programs all in one file

BASIC MICROCONTROLLER PROGRAMS    There total 11 microcontroller programs are given one by one also provided  text document file for download at the end. 1.move block of data within internal RAM org 000h mov r0,#30h mov r1,#40h mov r2,#3 start: mov a,@r0 mov@r1,a inc r0 inc r1 djnz r2,start here: sjmp here end 2.packed to unpacked org 000h mov r1,#18h mov a,r1 anl a,#0fh mov r2,a mov a,r1 anl a,#0f0h swap a mov r3,a end 3. unpacked to packed org 000h mov r1,#1h mov r2,#8h mov a,r1 swap a add a,r2 here:sjmp here end 4. bcd to ascii code un_bcd equ 40h asci equ 41h org 000h mov a,#30h orl a,un_bcd mov asci,a here: sjmp here end 5. ascii to bcd asci equ 40h un_bcd equ 41h org 0h mov a,asci anl a,#0fh mov un_bcd,a here :sjmp here 6. evaluate simple arthmatic #include<reg51.h> void main() { unsigned char y; y=(((5*2)-(4+1))/3)%2; while(1); } 7.Addition three 8bit no. res equ 44h org 000h mov r0,#40h mov r2,#3 clr a mov r7,a start:add a,@r0 da a jnc next inc r7 next:inc r0 mov res,a d

Microcontroller Intruduction doc/pdf download

Microcontroller     A microcontroller is a small, low-cost and self contained computer-on-a-chip that can be used as an embedded system. A few microcontrollers may utilize four-bit expressions and work at clock rate frequencies, which usually include: ·          An 8 or 16 bit microprocessor. ·          A little measure of RAM. ·          Programmable ROM and flash memory. ·          Parallel and serial I/O. ·          Timers and signal generators ·          Analog to Digital and Digital to Analog conversion Microcontrollers usually must have low-power requirements since many devices they control are battery-operated. Microcontrollers are used in many consumer electronics, car engines, computer peripherals and test or measurement equipment. And these are well suited for long lasting battery applications. The dominant part of microcontrollers being used now a days are implanted in other apparatus. How are Microcontrollers Classified? The microcontrollers are characterized regarding bus-

8051 Microcontroller assignment doc file download

8051 microcontrollers Available as word document for downloading at the end of the post   8051 microcontrollers This microcontroller is also called as “System on a chip” because it has all the features on a single chip. The Block Diagram of 8051 Microcontroller is as shown in Figure                                   Image  credit : EngineersGarage It use two different kinds of memory such as UV- EPROM, Flash and NV-RAM. Hence 8051 will not be seen in the part number even though it is the most popular member of the 8051 family AT89C51 (Variant of 8051 microcontroller) from Atmel Corporation 1 (‘C’ in the part number indicates  CMOS ). The flash memory can erase the contents within seconds which is best for fast growth. Therefore, 8751 is replaced by AT89C51 to eradicate the waiting time required to erase the contents and hence expedite the development time. To build up a microcontroller based system using AT89C51, it is essential to have ROM burner that supports flash memory. Note tha