Search This Blog

Thursday, September 1, 2011

Atmel Product Based 8051 Architecture



Flash ISP single Core
The Atmel® AT89LP family takes 8051 microcontroller power to a new level. These high performance 8-bit microcontrollers execute most instructions in a single clock cycle, compared to 12 clock cycles in the classic 8051 CPU. At the same MIPS throughput as the classic 8051, existing applications can use a much lower clock frequency, enabling power consumption reduction by up to 80 percent. Application performance can be boosted up to 20 MIPS throughput 12 times faster than the traditional 8051 core.
For example AT89LP214, AT89LP215, AT89LP216 etc, etc.

Flash ISP (In system Programmable)
Atmel offers a variety of high performance Flash 8051 microcontrollers featuring in-system programming (ISP). Their integrated Flash memory can be programmed either in parallel mode or in serial mode with the appropriate parallel/ISP software, respectively.
They feature a wide range of internal RAM configurations, plus rich features such as interrupt controllers and timer/counters. Select models feature an A/D converter, Boot Flash memory, and Programmable Counter Arrays. Their highly efficient design can help reduce system power consumption by bringing the clock frequency down to any value — even DC — without loss of data.
Software-selectable modes of reduced activity and an 8 bit clock prescaler can further control power consumption.
The rich functionality and efficiency of Atmel 8051 Flash ISP microcontrollers make them ideal for applications that need A/D conversion, pulse width modulation, high speed I/O and counting capabilities such as industrial control, consumer goods, alarms, motor control, and more.
For example AT89C5115, AT89LS , AT89S series.
Flash Reprogrammable
Atmel offers several 8051 reprogrammable Flash microcontrollers that can support a variety of embedded applications. For example, the AT89C4051 is a low-voltage, high-performance CMOS 8-bit microcontroller with 4K bytes of Flash programmable and erasable read-only memory. The device is manufactured using Atmel's high-density nonvolatile memory technology and is compatible with the industry-standard MCS-51 instruction set.
For Example AT89C2051, AT89C5051 etc.

CAN Networking MCU'S
Introduced in 1986, Controller Area Network (CAN) technology was originally intended for automotive engine control communication. It has rapidly gained popularity to support a wide range of growing applications, including medical devices, avionics, factory and industrial automation, and maritime environments.
Atmel is well positioned to support CAN networking with a broad portfolio of 8051 microcontroller flash technology, together with extensive experience in CAN networking.
For example, the AT89C51CC01, AT89C51CC02, AT89C51CC03 deliver 5 MIPS at 5V, and 16KBytes to 64KBytes Flash. They can support a wide range of slave applications such as proximity sensor, DeviceNet I/O, textile machine I/O, and many other applications.
For low voltage applications, the following controllers maintain up to 3.3MIPS down to 2.7 volts.
The AT89C51CC02 with 16Kbytes Flash and 0.5Kbytes RAM + a simple 4 message objects CAN engine packaged into a Small Pin Count package is excellent for low end applications where a minimum DeviceNet or CANopen slave stacks are used. It is an ideal low cost product for a CAN controller push-button.
The AT89C51CC01 features 32Kbytes Flash and 1.2 Kbytes RAM, and is well-positioned for slave applications. It offers 2 Kbytes of Boot flash, with at least 3 MIPS remaining for the application on top of a CANopen or DeviceNet stack. The chip features an 8 channel 10 bit A/D converter, 3 timers, a 5-channel high speed input/output timer units, and 32 I/Os. Its 15 message objects and the 1.2Kbytes RAM make the chip suitable for complex I/O systems.
The AT89C51CC03 provides 64Kbytes Flash for application programs and 2Kbytes RAM for a larger object Dictionary. The built-in SPI port also assists communication with other devices. It features 15 message objects as well as 2Kbytes Bootloader and 2Kbytes EEPROM.
USB MCU'S
Built for today's increasingly connected applications, Atmel 8051 USB microcontrollers offer powerful interface options that are ideal for devices like Flash recorders, cameras, and cell phones. The AT89C5131A, a popular device in this series, offers an efficient combination of features and performance. It combines 32K bytes of Flash memory, 1.2K bytes RAM, 1K EEPROM, 7 USB Endpoints, TWI, SPI, UART, and Programmable Counter Array (PCA).
The AT89C5132 is a mass storage device controlling data exchange between various Flash modules, HDD and CD-ROM. It includes 64K Bytes of Flash memory and allows In-System Programming through an embedded 4K Bytes of Boot Flash Memory.
This versatile device provides all the necessary features for man-machine interface including, timers, keyboard port, serial or parallel interface (USB, SPI, IDE), ADC input, I2S output, and all external memory interface (NAND or NOR Flash, SmartMedia, MultiMedia, and DataFlash cards).
LIGHTING MCU'S
Optimized for lighting control applications, the Atmel AT83EB5114 is a high performance version of the 80C51 8-bit microcontroller in a low pin count package. It has all the features of the standard 80C51 with 4 Kbytes program memory, 256 bytes of internal RAM, a 7-source, 4-level interrupt system, an on-chip oscillator, and two timers/counters. The AT83EB5114 includes a serial two-wire interface EEPROM housed together with the microcontroller die in the same package.
ROMLESS
Atmel offers a powerful ROMless 8051 microcontroller suitable for existing ROMless applications that require a combination of performance, flexibility, and power efficiency. The AT80C51RD2 microcontroller retains all features of the Atmel 80C52, with 256 bytes of internal RAM, a 7- source 4-level interrupt controller, and three timer/counters.
To enhance system performance, this ROMless microcontroller features a programmable counter array, an XRAM of 1024 bytes, a hardware watchdog timer, and a keyboard interface. It also includes a versatile serial channel that facilitates multiprocessor communication (EUART), and a speed improvement mechanism (X2 mode).

Saturday, August 27, 2011

WAP for 8051 to transfer letter 'A' serially continuously


START : MOV A, #'A' ; ASSIGN A WITH SERIAL DATA
; P1.1 IS USED
MOV R7, #08H ; COUNTER OF 8 AS ACCUMULATOR OF 8 BIT
BACK : RRC A ; ROTATE BITS THROUGH CY
MOV P1.1, C ; TRANSFER CONTENTS OF CARRY TO PORT PIN
DJNZ R7, BACK ;
SJMP START ;
END

A Switch is connected to P1.7. WAp to check status of switch and perform the following


; A Switch is connected to P1.7.  WAp to check status of switch and ;perform the following
; 1 if switch = 0, send letter 'N' to P2
; 2 if switch = 1, send letter 'Y' to P2


START : JNB P1.7, ONN ;
MOV P2, #'y' ;
SJMP START ;
ONN :   MOV P2, #'n' ;
SJMP START ;
END

WAP in 8051 to perform the following


; WAP to perform the following
; 1. keep monitoring P1.2 until it becomes high
; 2. when P1.2 becomes high write value 45h on P0
; 3. Sent a high to low pulse to P2.3


HERE : JNB P1.2, HERE ;
MOV P0, #45H ;
SETB P2.3 ;
CLRB P2.3 ;
SJMP HERE ;
END

WAP in 8051 to sort a block of data in ascending or descending order


; PROGRAM STARTS HERE


MOV R6, #07H ; EXTERNAL COUNTER
START : MOV R7, #07H ; INTERNAL COUNTER
MOV R0, #30H ; INTERNAL MEMORY ADDRESS
MOV A, #00H ; CLEAR ACCUMULATOR
; CY = 0 A>VAL
; CY = 1 A<VAL
BACK :   MOV A, @R0 ;
INC R0 ;
CJNE A, @R0, CARRY ;
SJMP DECREMENTC ;
CARRY : JC DECREMENTC ;
MOV B, @R0 ;
MOV @R0, A ;
DEC R0 ;
MOV A, B ;
MOV @R0, A ;
DECREMENTC : INC R0 ;
DJNZ R7, BACK ;
DJNZ R6, START ;
END

WAP in 8051 to transfer block of data from internal memory location to external memory location


; PROGRAMM STARTS HERE
MOV R0, #30H ; STORE MEMORY LOCATION
MOV A, #00H ; CLEAR ACCUMULATOR
MOV R7, #07H ; COUNTER
MOV DPTR, #0200H; EXTERNAL ADDRESS
BACK :  MOV A, @R0 ; MOVE FROM INTERNAL TO ACCUMULATOR
MOVX @DPTR, A ; MOVE FROM ACCUMULATOR TO EXTERNAL ADDRESS
INC R0 ; INCREMENT INTERNAL ADDRESS
INC DPTR ; INCREMENT EXTERNAL ADDRESS
DJNZ R7, BACK ; COUNT THE LOOP
END

WAP in 8051 to add block of data stored in internal/external memory location


; FOR INTERNAL MEMORY
MOV R0, #30H ; STORE INTERNAL MEMORY ADDRESS IN RO
MOV A, #00H ; CLEAR ACCUMULATOR
MOV R7, #07H ; COUNTER REGISTER
BACK : ADD A,@R0 ;
INC R0 ; NEXT VALUE
DJNZ R7, BACK ;
END




; FOR EXTERNAL MEMORY
MOV DPTR, #0200H; STORE EXTERNAL MEMORY ADDRESS IN R0
MOV A, #00H ; CLEAR ACCUMULATOR
MOV R7, #00H ; SUM REGISTER
MOV R6, #07 ; COUNTER REGISTER
BACK : MOVX A, @DPTR ;
ADD A, R7 ;
MOV R7, A ;
INC DPTR ;
DJNZ R6, BACK ;
END

Saturday, August 13, 2011

GENERALIZATION OF FARADAYS EXPERIMENTS WITH CONCENTRIC SPHERES

The results of Faraday experiments with concentric spheres can be summed up as an experimental law by stating that the electric flux passing through any imaginary sphere placed between two conducting sphere is equal to the charge enclosed within the surface of imaginary sphere. This enclosed charge is distributed either on the surface of the imaginary sphere or is located at a point at the center of the imaginary sphere.


However since 1 C of charge produces 1 C of electric flux, the inner conductor might just well have been a cube or a pot shaped conductor, but still the charge on the outer sphere will be the same. Of Course the flux density would change from its symmetrical distribution to an unknown configuration, but +Q C on any inner conductor will induced a –Q C of charge on surrounding sphere. Going a step further replacing outer sphere with a cylindrical conductor and inner sphere with a pot shaped conductor with charge Q. Producing Flux = Q C the induced charge in the cylindrical conductor will be –Q C. How Fascinating right??


This generalization lead to many developments one of them is discussed later in the next post. All the experiments performed by faraday on electromagnetism is a must read for every engineer. He gave us modern electromagnetics which is used almost in every hardware. I would try to post all his experiments, conclusions and generalization details on the site but self reading is the best reading.


The post here under category Electromagnetics is taken from my college blog. They are updated here first by me then brought to this site again by me.

Assume that the lower three bits of P1 are connected to three switches. Write a program to send the following ASCII characters to P2 based on the status of the switches.


;
; SWITCH STATUS AS FOLLOWS
; 000 ‘0’
; 001 ‘1’
; 010 ‘2’
; 011 ‘3’
; 100 ‘4’
; 101 ‘5’
; 110 ‘6’
; 111 ‘7’
;
;
; WE WILL DEFINE BYTE LATER IN THE PROGRAM 


ORG 0000H ;
MOV DPTR, 300H ;
MOV A, P1 ; GET STATUS OF P1
ANL A, 07H ; MASK ALL BUT LOWER 3 BITS
MOV A, @A+DPTR  ; GET CORRESPONDING VALUE
MOV P2, A ; MOVE VALUE TO P2 DISPLAY IT




ORG 0300H  ;
DB '0','1','2','3','4','5','6','7';
END

Single bit operation with Carry


Instruction
Function
SETB C
Make CY = 1
CLR C
Clear CY bit
CPL C
Complement CY bit
MOV b, C
Copy carry status to bit
MOV C, b
Copy bit location status to carry
JNC TARGET
Jump to target when CY = 0
JC TARGET
Jump to target when CY = 1
ANL C, bit
AND CY with bit and save it on CY
ANL C, /bit
AND CY with inverted bit and save it on CY
ORL C, bit
OR CY with bit and save it on CY
ORL C, /bit
OR CY with inverted bit and save it on CY