Labels

Showing posts with label Digital. Show all posts
Showing posts with label Digital. Show all posts

Friday, May 27, 2011

Flash Converting - ADC 207

ADC 207 is the first to use Flash Converting An Advanced High Speed ​​VLSI 1.2 micron CMOS process. The process that is able to do the ADC 207 as mentioned earlier is very great and makes the ADC 207 is unique. The speed of the process of this ADC has a good linearity and have a stable temperature. ADC 207 has a lower power consumption is 250 mW. ADC is working with +5 VDC voltage source and at a frequency of 20 MHz. ADC 207 has a small sampling time is 12nS, thus making the ideal sampling results. ADC 207 has 128 features auto balanced comparators with each conversion that serves to offset temperature and dynamic effects that exist. Resistor ladder in the ADC 207 has a mid point that is connected to an external voltage source and function in the conversion of 7-bit linearity. ADC 207 has 3 levels of output that is easy to connect it with external components.


ADC 207 Architecture

flash converting



Feature ADC 207

  • 7-bit flash A / D Converter
  • Sampling frequency of 20 MHz
  • Low power consumption (250mW)
  • VCC 5 VDC
  • 1.2 micron CMOS technology
  • 7 bits with 3 levels of output gates and overflow bits
Continue Reading »

Thursday, May 26, 2011

Battery Charger based on AVR ATMega 8535

Battery Charger in general can be interpreted as a means to recharge the battery charge. Principles of good charger circuit is capable of providing resources to perform effectively charging the battery, efficient and safe. AVR-Based Battery Charger ATMega 8535 With LCD Display This is an idea that had just emerged from the author. In AVR-Based Battery Charger design ATMega 8535 With LCD Display is using AVR microcontroller processor charger with ATMega 8535, process the data viewer charger with LCD, a safety from a hot temperature with the temperature sensor LM35 and several buttons for setting the charger. And component power charger Battery Charger Based on AVR ATMega 8535 With LCD Display is a FET.

Battery Charger based on AVR ATMega 8535




Function-Based Battery Charger Part Series AVR ATMega 8535 With LCD Display
ATMega 8535 AVR microcontroller serves as the controlling process of the charger.
Button S1 - S5 as input data charger settings (setting the current, maximum temperature, peak voltage batteries)
LM35 Temperature Sensor function as heat sensors in the battery during charge.
LCD Display function to display data and display settings charger battery charger process measurement data.
FET serves as a power charger that will flow into the battery charging current.
Continue Reading »

Wednesday, May 25, 2011

AVR ATTiny To SMS Remote Controller

SMS Remote controller is a device used to control a device remotely using SMS through GSM mobile phones. Process control equipment with a series of AVR ATTiny To SMS Remote Controller can be used to control life and death of these equipment will provide information on the status of replies to our phone in return successful command execution. Yanga equipment can be controlled by a series of AVR ATTiny To SMS Remote Controller include lights, water pumps, garage doors, gates and much more. AVR series ATTiny To SMS Remote controller uses the module-47 Sony ericson GM as recipient and sender of the SMS module. Then to the SMS data processor on a series of AVR ATTiny To SMS Remote controller is using AVR microcontroller ATTiny 2313.


Series AVR ATTiny To SMS Remote Controller




AVR circuit this part ATTiny To SMS Remote Controller
AVR series ATTiny To SMS Remote controller uses the AVR attiny2313 with 4MHz clock frequency, GSM Module GM trnceiver 47 Sony ericson, SIM Card, 4 relays and an IC regulator. ATTiny AVR microcontroller 2313 can work well on the voltage 2.7 VDC - 5.5 VDC for working with the frequency at 10MHz bahwah. The set of AVR ATTiny In SMS Remote Controller To make use of this power supply from the batteries 3.3 VDC. Connection using a SIM Card SIM Card Holder which is connected to the module GM-47, AVR series ATTiny To SMS Remote Controller works with communication between AVR ATTiny and GM-47 module at 9600bps. In a series of AVR ATTiny To SMS Remote controller is equipped with LED D6 as an indicator of the data interconnect GM-47 module with cellular operators where this LED will light continuously when not apat network and will be lit by flashes when a signal from the operator.

Specifications AVR series ATTiny To SMS Remote Controller

  • 4 Relay for ON / OFF electronic devices
  • 8 input lines for reading in a normal switching
  • LED indicators signal operator
  • SMS command with password, so only the owner can operate
Continue Reading »

Real time controller AT89C2051

Real time controller is a device used to exercise control over household perankat continuously ongoing and scheduled. The series of Real Time Controllers with microcontroller AT89C2051 which dituls in this article is a tool that can do that serve targeted. The series of Real Time Controller with Microcontroller AT89C2051 Atmel AT89C2051 uses a data processor and controller sebgai pernagkat installed. In the application directly perngkat requires a separate interface from a wide range of Real Time Controllers with this AT89C2051 microcontroller. When will connect the device with the AC power source to use interface optocoupler (MOC) or solid state relay. Devices that can be connected with the series of Real Time Controller with Microcontroller AT89C2051 include lights, water machines, fans, electronic gate. The series of Real Time Controllers with this AT89C2051 microcontroller to control a height of water level, controlling the flame lights the scheduled SCARA and censored.




Specifications Series Real Time Controller with AT89C2051 Microcontroller
The series of Real Time Controller with Microcontroller AT89C2051 uses a computer to perform serial communication settings via computer. The series of Real Time Controller with Microcontroller AT89C2051 has 6 units of output channels that can be independently controlled depending on the program induced in the tool. Output in the series of Real Time Controller with AT89C2051 microcontroller requires an interface to deal with equipment that will be in control.
Continue Reading »

Easy Downloader Circuit

Atmel microcontroller series AT89Cxx51 Easy Downloader is one of the downloader that is often used to write data to program the Atmel microcontroller AT89CXX51. Easy Downloader AT89Cxx51 ATMEL microcontroller is using the serial port as a channel of communication with the computer. Easy Downloader ATMEL Microcontroller AT89Cxx51 can be used to program Atmel AT89CXX51 in parallel. Atmel microcontroller series AT89Cxx51 Easy Downloader is quite simple to make your own because the components necessary to membutanya not complex. Atmel microcontroller series AT89Cxx51 Easy Downloader do not support the serial programming microcontrollers ISP. In the article Easy Downloader ATMEL Microcontroller AT89Cxx51 only displays images Easy Downloader Microcontroller series from Atmel AT89Cxx51 mengulasnya only and are simple.


Continue Reading »

7Segment Display 74LS247

The displayor using a 7 segment display in electronic device applications is drain port of a microcontroller or data that would point in the show, especially when the data would be displayed more than 1 digit. necessary path to control the resources of each 7 segment and the path to input data on the 7 segment. Series Display 7 Segment 4 Digit Multiplex is a way to save the port or microcontroller data path that will be displayed. Series Display 7 Segment 4 Digit Multiplex uses BCD to 7 segment decoder 74LS247 BCD to encode data from the data that will be displayed, then for each resource viewer 7 segment using the set of transistors as electronic switches. Current flowing in the viewer in a series of 7 segment Display 7 Segment 4 Digit Multiplex is in limiting use yag resistor in series pairs in each collector transistor.


Image Series Display 7 Segment 4 Digit Multiplex




Configuration circuit components 7 Segment 4 Digit Display Multiplex
The legs LT, RBI, RBO in this circuit is not connected (logic high) is meant to display data from the seven segment according to data from the microcontroller. Resistors are mounted a series of LED is used as a barrier for current flow that flows through the LED does not exceed the maximum allowable current that is equal to 20 mA.
Continue Reading »

MCS51 AT89S51 microcontroller architecture

Microcontroller architecture we need to know if we will use this MCS51 microcontroller in a control MCS51 microcontroller-based electronic devices. AT89S51 microcontroller MCS51 architecture actually almost similar to the other MCS51. MCS51 Microcontroller AT89S51 is MCS51 family of microcontrollers with 40 pins. In this article MCS51 AT89S51 microcontroller architecture can be seen, although not all.


MCS51 Microcontroller Architecture AT89S51
AT89S51 microcontroller has several features, among others, as follows:

4 K bytes Flash PEROM
The frequency of 4 Hz - 24 MHz
128 x 8 bit Internal RAM
32 channels of I / O bi-directional
2 pieces of 16-bit timer
2 external interrupt and internal interrupt 3
A pair of serial communication ports
Here is a brief description of each leg functions contained in the microcontroller AT89S51.

GND (Ground) or grounding function as a negative supply or ground path.
VCC serves to route the positive power supply 5V DC to the microcontroller.
RST / Vpp is a microcontroller reset line with the transition low to high, Vpp is used as supply voltage when programming the microcontroller.
ALE / PROG, this foot is used to capture or to a low address latch (A0.. A7) to the external memory during normal operation. Receive a program pulse input during the programming of internal Flash PEROM.
PSEN Program Store Enable is the PSEN output is where the control signal or activate a program that allows an external memory (EPROM external) to the data bus during normal operation.
EA / Vpp (External Access Enable) is to direct the selection of program execution from external memory or internal memory and then starts a new external memory. Legs are also receive 12.75 V for Flash programming power supply PEROM.
XTAL1 is the input path to the amplifier oscillator on a microcontroller or external input source pulse from the microcontroller.
XTAL2 is the output path of the oscillator amplifier.
P0.1 - P0.7 is an output port / input (I / O) type bidirectional open-drain (without internal pullup). Port 0 can be configured as a bus address / data, the low (low byte) during the process of accessing the data memory and external programs.
P1.0 - P1.7 is I / O ports are equipped with two-way internal pullup. Port 1 also receives the address low during programming and verification of flash PEROM.
P2.0 - P2.7 is I / O ports equipped with two-way internal pullup. Port 2 is the high part of byte address (high byte) for taking instructions from external program memory and during programming and verification of flash PEROM.
P3.0 - P3.7 is I / O ports equipped with two-way internal pullup. Port 3 has alternative functions, including receiving the control signals along with the port 2 during programming and verification of flash PEROM.
Microcontroller AT89S51 has a data memory address space and a separate program. The separation of program memory and data memory allowing the data accessed by an 8-bit addresses, allowing you to quickly and easily stored and manipulated by an 8-bit CPU. Internal memory location 0000H to the program occupies 0FFFh, while for external memory location 1000H to occupy FFFFH. Data memory occupies a separate address space from Program Memory.
Continue Reading »

Doubler Digital Frequency

Doubler Digital Frequencycircuit includes a simple and easy to understand. Digital Frequency Doubler circuit application contained in the system electronics such as audio-producing organ, or keyboard. The function of this series Digital Frequency Doubler for multiplying two input frequencies. The process of multiplying 2 on scales in an organ in principle is like this series Digital Frequency Doubler. Example of rising to a ringing tone DO RE then electronically technique in it is by multiplying the two frequency bands such as this series Digital Frequency Doubler.


Doubler Digital Frequency
Doubler Digital Frequency
Continue Reading »

Microcontroller Interface Engineering With ADC 0804

In ADC 0804 interface techniques with microcontrollers are pin-pin control must be controlled if we want to use the ADC with the microcontroller, there is value addition refferensi voltage to be supplied in 0804 ADC interface with a microcontroller, for example, we use the 0804 ADC (8 bit), if we give refferensi voltage 2.55 volts then we will get the increase of 1 bit to change 10 mVolt. Please note that the 0804 ADC pin on the leg that is form Vref Vref / 2, so to get a 10mV resolution is necessary for setting Vref / 2 equal to 1.275 V


The interface circuit microcontroller with ADC 0804

Microcontroller Interface Engineering With ADC 0804



Mechanical interface microcontroller with ADC 0804
The steps in accessing data from the ADC 0804 by the microcontroller sebgai follows;

Enable ADC with signal 0 at the foot of Chip Select.
Give commands from conversion by providing a low pulse to the foot of the ADC Write narrow
Wait for the ADC issued a signal 0 from his leg INT
Give a moment of time delay for data from the ADC is correct
Give the read command by giving the signal 0 at the foot of ADC Read
Give a moment of time delay
Now data from the ADC is ready for use and if the microcontroller.
Continue Reading »

Choose PIC or AVR ATMEGA

PIC or AVR ATMEGA ATMega8535 PIC16F87X
Microcontroller more and more, to choose to use the PIC 16F microcontroller or AVR family ATMEGA 8535 just need googling that here. System works sama2 work on both the base 8-bit PIC or AVR ATMEGA. PIC or AVR basically the same microcontroller that has an analog input facilities in accordance with what I need. Feature owned by PIC and AVR ATMEGA too much alike. From the PIC feature on the analog input also has AVR ATMEGA. Feature ADC also owned by PIC or AVR ATMEGA even between PIC and AVR ATMEGA is sama2 have ADC with many channels all (plus mantab all). From the feature control PWM PIC and AVR ATMEGA also have. Well bener2 added mantab world with the presence of PIC microcontroller or AVR ATMEGA this, first MCS51 family still AT89C5x or AT89S5x wrote that in use. After dipikir2 should also be detailed feature between PIC and AVR ATMEGA with details.


PIC family Featured PIC16F87X
High performance RISC CPU
Only 35 single word instructions to learn
All single cycle instructions except for program branches the which are two cycle
Operating speed: DC - 20 MHz clock input DC - 200 ns instruction cycle
Up to 8K x 14 words of FLASH Program Memory,
Up to 368 x 8 bytes of Data Memory (RAM)
Up to 256 x 8 bytes of EEPROM Data Memory
Pinout compatible to the PIC16C73B/74B/76/77
Interrupt capability (up to 14 sources)
Eight level deep hardware stack
Direct, indirect and relative addressing modes
Power-on Reset (POR)
Power-up Timer (PWRT) and Oscillator Start-up Timer (OST)
Watchdog Timer (WDT) with its own on-chip RC oscillator for reliable operation
Programmable code protection
Power saving SLEEP mode
Selectable oscillator options
Low power, high speed CMOS FLASH / EEPROM technology
Fully static design
In-Circuit Serial Programming  (ICSP) via two pins
Single 5V In-Circuit Serial Programming capability
In-Circuit Debugging via two pins
Processor read / write access to program memory
Wide operating voltage range: 2.0V to 5.5V
High Sink / Source Current: 25 mA
Commercial, Industrial and Extended temperature ranges
Low-power consumption:
- <0.6 mA typical @ 3V, 4 MHz
- 20 μA typical @ 3V, 32 kHz
- <1 μA typical standby current

Pin Diagram
Peripheral Features:

Timer0: 8-bit timer / counter with 8-bit prescaler
Timer1: 16-bit timer / counter with prescaler, can be incremented During SLEEP via external crystal / clock
Timer2: 8-bit timer / counter with 8-bit period register, prescaler and postscaler
Two Capture, Compare, PWM modules
- Capture is 16-bit, max. resolution is 12.5 ns
- Compare is 16-bit, max. resolution is 200 ns
- PWM max. resolution is 10-bit

10-bit multi-channel Analog-to-Digital converter
Synchronous Serial Port (SSP) with SPI (Master mode) and I2C (Master / Slave)
Universal Synchronous Asynchronous Receiver
Transmitter (USART / SCI) with 9-bit address detection
Parallel Slave Port (PSP) 8-bits wide, with external RD, WR and CS controls (40/44-pin only)
Brown-out detection circuitry for Brown-out Reset (BOR)
Featured AVR ATMEGA 8535
High-performance, Low-power AVR ® 8-bit Microcontroller
Advanced RISC Architecture
- 130 Powerful Instructions - Most Single Clock Cycle Execution
- 32 x 8 General Purpose Working Registers
- Fully Static Operation
- Up to 16 MIPS throughput at 16 MHz
- On-chip 2-cycle Multiplier

Nonvolatile Program and Data Memories
- 8K Bytes of In-System Self-Programmable Flash Endurance: 10,000 Write / Erase Cycles
- Optional Boot Code Section with Independent Lock Bits

In-System Programming by On-chip Boot Program
True Read-While-Write Operation
- 512 Bytes EEPROM Endurance: 100,000 Write / Erase Cycles
- 512 Bytes Internal SRAM
- Programming Lock for Software Security

Peripheral Features
- Two 8-bit Timer / Counters with Separate Prescalers and Compare Modes
- One 16-bit Timer / Counter with Separate prescaler, Compare Mode, and Capture Mode
- Real Time Counter with Separate Oscillator
- Four PWM Channels
- 8-channel, 10-bit ADC
8 Single-ended Channels
7 Differential Channels for TQFP Package Only
2 Differential Channels with Programmable Gain at 1x, 10x, or 200x for TQFP Package Only
- Byte-oriented Two-wire Serial Interface
- Programmable Serial USART
- Master / Slave SPI Serial Interface
- Programmable Watchdog Timer with Separate On-chip Oscillator
- On-chip Analog Comparator

Special Microcontroller Features
- Power-on Reset and Programmable Brown-out Detection
- Internal calibrated RC Oscillator
- External and Internal Interrupt Sources
- Six Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down, Standby and Extended Standby

I / O and Packages
- 32 Programmable I / O Lines
- 40-pin PDIP, 44-lead TQFP, 44-lead PLCC, and 44-pad QFN / MLF

Operating Voltages
- 2.7 - 5.5V for ATmega8535L
- 4.5 - 5.5V for ATmega8535

Speed ​​Grades
- 0 - 8 MHz for ATmega8535L
- 0-16 MHz for ATmega8535
Continue Reading »

Digital Thermometer 0-100.0°Celsius

Digital Thermometer 0-100.0 ° C is a digital thermometer that operates in mode temperature measurement in Celsius (° C). Digital Thermometer 0-100.0 ° C in this article using the form data processing microcontroller AT89C4051. Temperature sensors used in Digital Thermometer 0-100.0 ° C. This temperature sensor LM35D. Digital Thermometer 0-100.0 ° C. It uses the temperature measurement data viewer in the form of 1 line LCD viewer. Digital Thermometer 0-100.0 ° C. It can display the temperature measurement data with a resolution of 0.1 ° C.
Digital Thermometer 0-100.0 ° C

Digital Thermometer 0-100.0°Celsius




Digital Thermometer 0-100.0 ° C. These temperature sensors make use of LM35D as temperature sensing. In Digital Thermometer 0-100.0 ° C. This temperature sensor measurement data this LM35D (Level Voltage) is then converted into 4-bit binary data using the ADC CA3162. Then the 4-bit data from ADC CA3162 which is a measurement of data if the temperature is in the AT89C4951 microcontroller so that it becomes an operating principle of temperature measurement based on digital thermometers. In the final stage of the Digital Thermometer 0-100.0 ° C. These data digitla adlah appearance temperature measurement, using digital data viewer of the LCD 1 line.
Continue Reading »

Applications for the Matrix Keypad MCS51 Hexadecimal

Hexadecimal keypad matrix can be created with a microcontroller by using the parallel port MCS51. Hexadecimal keypad matrix system is working by reading the data on tiab line through each column or vice versa depending on the program. To make enough Hexadecimal keypad matrix with 1 port MCS51 microcontroller. With 1 parallel port, the microcontroller can be made Matrix Keypad Hexadecimal 4 columns and 4 lines or so-disebud with 4 × 4 matrix keypad. Hexadecimal Keypad Matrix 4 × 4 is in pernacangannya will provide data Hexadecimal 0 - F.

Parallel port for MCS51 Microcontroller Matrix Keypad
The parallel port is part of the most widely used microcontroller. Ranging from things very simple for example to turn on the LED or read button, used also to form a hexadecimal keypad, to control the stepper motor and connecting the microcontroller to the printer parallel.

In general the parallel port is said to be a means of input / output that can be used to transfer data several bits (typically 8 bits) once gus through lane (feet IC) prepared for it. The path are numbered from 0 to 7, in accordance with the serial number of bits in the accumulator that was used to trasfer data to / from the parallel port. For example, the accumulator is used to receive data from Port 0, then the line number 0 of Port 0 (usually abbreviated as P0.0) will be transferred to the accumulator bit number 0 (usually abbreviated as A.0).

Almost all microcontroller IC legs can be used as a parallel port. AT89C2051 legs 20, 15 feet can be used as a parallel port. AT89C51-footed 40 of them 32 feet can be used as a parallel port.

Nevertheless, there is also a parallel port that does not consist of an 8-lane, for example, Port 1 of AT89C2051 only consists of 7 lines, numbered ranging from P1.0 to P1.7, P1.6 but no. This sort of thing is usually caused by the IC legs are available are not sufficient to contain all relevant path parallel port is complete.

All lines on the parallel port (except Port 0) MCS51 equipped with about 50 kOhm resistance, corresponding to a path connecting Vcc resources. On chip AT89C1051, AT89C2051 and AT89C4051, Port 1 path 0 and 1 (P1.0 and P1.1) are not equipped with these detainees, as a result if both paths are used as outputs must be added detainees outside AT89C2051, which connects the pathways to a power source Vcc.

4 x 4 Matrix Keypad Hexadecimal
Matrix Keypad 4 × 4 is an arrangement of 16 buttons form the keypad as a means to enter into the microcontroller, although the number of buttons there are 16 but only require an 8-lane parallel ports, as shown in the picture below.

In the circuit in the image above, each button connects an output line (K1, K2, K3 or K4) into a line input (B1, B2, B3 or B4), as described in detail in the lower right circle images, buttons "A" connecting path to the lane B4 K1. Working from a series of keypad is fully implemented with the software.
Continue Reading »

Programming Learning MCS51

Learning Programming MCS51 becomes mandatory we learn if we want to use the MCS51. In the first part of this Learning Programming MCS51 we will learn together about the basic programming language MCS51 microcontroller. Where to program MCS51 outline there are 2 core parts of pemrogramanya language is "Words Work" and "Object". In the article Programming MCS51 this first part we will study first the "verb" is a command group Peng-copies of data, the command group arithmetic and logic command group.


Reference to DATA IN PROGRAMMING MCS51
Data can be in many different places, thus known a few ways to describe the data (in English often referred to as 'Addressing Mode'), among others, as follows:

The mention of constant data (immediate addressing mode): MOV A, # $ 20. Constant data is data that was in the instructions. Examples of this instruction has the data meaning a constant $ 20 (as a constant data marked with '#') on-copy it into the accumulator A. What needs to be properly addressed in this order is the number $ 20 is part of the instruction.
Reference to data directly (direct addressing mode), this method is used to refer to data residing in memory by calling the memory number where the data are: MOV A, $ 30. Examples of these instructions have the meaning of data in the memory number $ 30 in-copy it to the accumulators.
At first glance these same instructions to the instruction constant data above, the difference above instructions using the '#' which marks the $ 20 is a data constant, whereas in this instruction because there was no sign '#' then $ 30 is a number from memory.

The mention of indirect data (indirect addressing mode), this method is used to refer to data residing in memory, if memory data storage is changing its location so that the memory number is not called directly but in-'titip' her into another register : MOV A, @ R0.
In this instruction versatile R0 register is used to record the number of memory, so that this instruction has a memory meaning that the number recorded in the contents of R0-copy it into the accumulator A.

Sign '@' is used to mark the memory number stored in R0.

Compare this with the instruction memory number directly mention above, in this instruction first memory numbers are stored in R0 and R0 appoint a role which memory is used, so that if the value of R0 change the designated memory will also be changed as well.

In this instruction registers R0 functioning multipurpose container for the address register (indirect address register), other than all-purpose registers R0 R1 can also be used as a container for the address register.

Reference to data in the register (register addressing mode): MOV A, R5. This instruction has the meaning of data in all-purpose register R5 is copy it into the accumulator A. This instruction makes all-purpose registers R0 to R7 as a place to store data that is very practical that it works very fast.
The data referred to in the discussion above all in the data memory (including all-purpose registers are also located in data memory). In writing the program, often required standard table that is stored along with the program. Tables of this kind is really a data residing in program memory!
For this purpose, MCS51 have any mention of data in memory means programs conducted by indirect (indirect addressing code mode): MOVC A, @ A + DPTR.

Notice in this MOV instruction is replaced with MOVC, the additional letter C is meant to distinguish that this instruction is used in the program memory. (MOV without the letter C means that the instruction used in the data memory).

Sign '@' is used to mark A + DPTR is used to indicate the number of contents in-memory copy it to the accumulator A, in this case the value stored in the DPTR (Data Pointer Register - 2 bytes) plus the value stored in accumulators A (1 byte) is used to refer to the program memory numbers.

'Verb' in AT89Cx051
Overall AT89Cx051 have as many as 255 kinds of instruction, which was formed by combining the 'verb' and objects. "The verb 'is the group discussed the following:

PENG GROUP-COPY-DATA AN MCS51
Basic code for this group are MOV, abbreviation of MOVE, which means to move, though more correct to say this command have meaning copying the data. This can be explained the following: after the instruction MOV A, R7 done, accumulators A and all-purpose register R7 contains the same data, originally stored in R7.

MOV command is distinguished according to the type of memory AT89Cx051. This command is on the memory data is written into MOV, for example:


MOV A, $ 20

MOV A, @ R1

MOV A, P1

MOV P3, A

To use the program memory, this command is written into MOVC, there are only 2 types of wear MOVC instructions, namely:


MOVC A, @ A + DPTR; DPTR as register indirect

MOVC A, @ A + PC, PC as the register indirect


In addition, there is also known MOVX command, the command that is used for external data memory (X singkatakan from External). This command is only available to the MCS51 family members who have an external data memory, for example AT89C51 and so forth, and certainly not known by the group that tidam AT89Cx051 have external data memory. There are only 6 kinds of wear MOVX instruction, these instructions are:


MOVX A, @ DPTR

MOVX A, @ R0

MOVX A, @ R1

MOVX @ DPTR, A

MOVX @ R0, A

MOVX @ R1, A



GROUP ARIMATIK (ADD, ADDC, SubB, DA, MUL and DIV)
ADD and ADDC command

The contents of accumulators A plus the number 1 byte, the sum will be collected back in the accumulator. In this operation Carry bit (C flag in the PSW - Program Status Word) serves as a reservoir overflow of the sum. If the sum of the abundance (a value greater than 255) will carry bit value '1 ', if not Carry bit value '0'. ADDC same with ADD, only in bits Carry ADDC value in the previous process involved summed together.

Numbers 1 byte is added to the accumulator, can be derived from a constant, from the all-purpose register, memory data from memory number is called directly or indirectly, as shown in the following example:

ADD A, R0; register versatile

ADD A, # $ 23; a constant

ADD A, @ R0; no memory indirect

ADD A, P1; no direct memory (port 1)




ORDERS IN PROGRAMMING SubB MCS51
The contents of Accumulator A less the number 1 byte follows with Carry bit value, the reduction will be accommodated again in the accumulators. Carry bits in this operation also serves as a reservoir overflow of the reduction. If the reduction is abundant (score less than 0) bits Carry would be worth '1 ', if not Carry bit value '0'.

SubB A, R0; A = A - R0 - C

SubB A, # $ 23; A = A - $ 23

SubB A, @ R1

SubB A, P0


DA command

DA command (Decimal Adjust) is used after the command ADD, ADDC, or SubB, used to convert 8-bit binary value stored in the accumulator into 2 pieces decimal number, each consisting of 4-bit binary value.

MUL AB ORDERS IN PROGRAMMING MCS51
8-bit binary number in accumulator A is multiplied by an 8-bit binary number in register B. The result of multiplication of binary 16-bit, 8 bit binary number that greater weight be accommodated in the register B, while the other 8 bits are accommodated in the smaller weight accumulator A.

OV bit in the PSW (Program Status Word) is used to mark the result of multiplying the existing value in register B. OV bit will be worth '0 'if register B is worth $ 00, if not worth OV bit '1'.

MOV A, # 10

MOV B, # 20

MUL AB

DIV AB ORDERS IN PROGRAMMING MCS51
8-bit binary number in accumulator A is divided by an 8-bit binary number in register B. The result of the division of 8-bit binary numbers stored in the accumulator, while the rest of the division of 8-bit binary number stored in register B.

OV bit in the PSW (Program Status Word) is used to mark the value before the division that exists in the register B. OV bit will be worth '1 'if register B originally worth $ 00.

GROUP LOGIC (ANL, ORL and XRL) IN PROGRAMMING MCS51
This command group used to perform logic operations MCS51 microcontroller, logic operations can be done is the AND operation (operation code ANL), OR operation (operation code ORL) and the Exclusive-OR operation (XRL operation code).

The data used in this operation can be data that is in the accumulator or data that are in-memory data, this is a little different with arithmetic operations that must be actively melihatkan accumulators.

Operating results are accommodated in the first data source.

AND logic operation is widely used to me '0' a few specific bits of an 8-bit binary number, the way to forming an 8-bit binary numbers as a data-ANL constant in a number of origin. Bit-'0' want in a represented by '0 'in constant data, while other bits given the value '1', eg
Instructions ANL P1, #% 01111110 will result in bit 0 and bit 7 of Port 1 (P1) value '0 'while the other bits remain unchanged in value.

OR logic operation is widely used to me '1' a few specific bits of an 8-bit binary number, the way to forming an 8-bit binary numbers as constant data in a number-ORL origin. Bit-'1' want in a represented by '1 'in constant data, while other bits given the value '0', eg
Instructions ORL A, #% 01111110 will result in bit 1 to bit 6 of the accumulator value '1 'while other bits remain unchanged in value.

Exclusive-OR logic operation is widely used to reverse the value (complement) some particular bits of an 8-bit binary number, the way to forming an 8-bit binary numbers as constant data in a number-XRL origin. Bit you want behind-the value represented by '1 'in constant data, while other bits are the value '0', eg
Instructions XRL A, #% 01111110 will result in bit 1 to bit 6 of the accumulator turned value, while other bits remain unchanged in value.
Continue Reading »

Tuesday, May 24, 2011

4-Digit Digital Stopwatch

Stop Watch Digital in this article are manufactured using a source clock of timer IC 555 and to process the timing performance using the IC 74C926. IC 74C926 is a 4-digit counter with output latches are installed internally to the output viewer 7 segment and for the output driver NPN transistor to control the viewer 7 segment common cathode. penampilanan engineering data by the IC 74C926 done multiplexing to 4 pieces a viewer in control 7 segment through NPN transistor. The beating of the Stop Watch Digital built using a 555 timer IC dseting has output that can be set to tap the Stop Watch Digital is to count time 0.1 seconds and 1 second.

Digital Stop Watch

4-Digit Digital Stopwatch




Work System Stop Watch Digital
First time series Digital Stop Watch will be used to do reset the Stop Watch Digital by pressing the S3 (Reset switch) so layaf will display data 0000. Then to start doing the counting is done by pressing the S2 (button start / stop) and to stop the Stop Watch Digital counting process is done by pressing the S2 (button start / stop) on the Stop Watch Digital. Then to choose the time of counting on a series Digital Stop Watch is provided by 2 votes counting time 0.1 seconds and 1 second to choose from dengang S1 in the Stop Watch Digital.
Continue Reading »

Monday, May 2, 2011

Low Cost Digital Volume Control Amplifier

TDA8551 Mini Digital Volume Control Amplifier
Amplifier with digital volume control can we create a predictably simple because the article Mini BTL Amplifier with Digital Volume Control This series is made ​​only with 1 IC TDA8551. The series of Mini BTL Amplifier with Digital Volume Control is a power amplifier with BTL type 1Watt. Techniques for adjusting the volume in this series has been provided with a pin point control that is controlled by providing an input voltage VCC and GND. The series of Mini BTL Amplifier with Digital Volume Control selector also features mute, standby and operating.

The series of Mini BTL Amplifier with Digital Volume Control is quite simple and small enough to make an amplifier for room or to headphones. Hopefully useful and can provide ideas for making digital amplifier with volume control.
Continue Reading »

Sunday, May 1, 2011

10Hz - 60Mhz Frequency Meter

The frequency meter can be used to measure the frequency of 10 Hz-60Mhz. The frequency meter has a level of precision or resolution of 10Hz. The frequency meter can be used to measure the frequency of the oscillator, transmitter, frequency generator, cristal, and others during the working frequency trsebut devices in the range 10 Hz - 60MHz. Circuit frequency meter using PIC 16F628A dibagun and with the viewer of the LCD 16 × 2. Frequency meter circuit is working with the working frequency of 4MHz crystal. The series is an electronic frequency meter is quite simple to make. The following picture of the frequency meter circuit.

10Hz - 60Mhz Frequency Meter

The series of frequency meters above basically works with the source voltage 5VDC. In this series of 7805 voltage regulator has been installed, so it can be operated with a voltage of 5 - 15VDC.
Continue Reading »

PIC Volt and Amere Meter Circuits

Volt meter and ampere meter with PIC can be used to measure voltage and current at the same time. The series of volt meter and ampere meter with PIC uses a PIC16F876A as a data processor voltage and current are measured. This circuit uses a LCD viewer 16 × 2, which is used for displaying data voltage and current measurements. In the article volt meter and ampere meter with PIC is to be discussed is limited to devices faucet only. For more details can be seen from the image sequence volt meter and ampere meter with PIC below.


In the circuit volt meter and ampere meter with PIC above used 3 pieces of buttons for setting Calibration measurement data. The circuit is basically working with the source voltage 5VDC.
Continue Reading »

Digital Volt Meter Circuit

Digital volt meter circuit is simple and not much use of additional components. Volt meter circuit uses IC L7107 as a main actor. L7107 IC is an Analog to Digital Converter (ADC) which has been equipped with the viewer seven segment driver 3 1 / 2 digits. IC L7107 in the application of digital volt meter is in it has been equipped with an internal voltage reference circuit, analog switches, sequential control logic, and LED display driver. This digital meter volt circuit can be operated with a working voltage 5VDC. A full suite of digital volt meter can be seen in the following figure.

Digital Volt Meter Circuit

To set or Calibration to 0 Volt. done by adjusting the VR 2KOhm. then to test the display can be done by pressing the test switch, where to normal conditions when the switch is pressed then all the display lights up.
Continue Reading »