Sign in

username:

password:



Not a member?

Search avrclub



Search tips

Subscribe to avrclub



avrclub by Keywords

AT90S2313 | AT90S8515 | ATMega | ATmega128 | ECL | FETS | IAR | Keyboard | LCD | STK50 | TMOS | UART

New!

Thinking MCU? Think TI
Visit the new
TI MCU resource center for the latest videos and documents to help support your design efforts.

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | AVRclub | Re: [AVR club] Re: interfacing prob in 8051

Atmel AVR Microcontroller discussion group.

Re: [AVR club] Re: interfacing prob in 8051 - Pablo Villaverde - May 12 18:03:41 2006

My suggestion is that you should at least try to find those resources on the
web for yourself. A lot is already available, but by looking at your message
you sound like "hey, please provide all the information for a school
project. I expect everything for free". No way!!!!

Work and learn, will you?

Regards,

Pablo

----- Original Message -----
From: "Arvin parwal"
To:
Sent: Friday, May 12, 2006 3:47 PM
Subject: [AVR club] Re: interfacing prob in 8051
> hello dear friends,
> this is Arvin Parwal,
> student of TIET,patiala.
> can any one suggest me or provide me assembly program for interfacing of
ADC,KEYPAD,LCD,in a single prog. for 8051 microcontroller
> this time i am facing problem in my prject,if anyone can suggest me
> plz reply as soon as possible.
> thanx
>
> arvin parwal
> "sayyed.m.ali zeinolabedin" wrote:
>
> hi .
> one of the most professional way is used a svpwm , that you can more
information on internet.
>
> ---------------------------------
> Get amazing travel prices for air and hotel in one click on Yahoo!
FareChase
>
> [Non-text portions of this message have been removed]
>
> SPONSORED LINKS
> Atmel avr Microcontrollers Intel microprocessors 8051
microprocessor
>
> ---------------------------------
>

______________________________
Have a look at the new TI MCU Center on EmbeddedRelated.com!


(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )


Re: [AVR club] Re: interfacing prob in 8051 - "sayyed.m.ali zeinolabedin" - May 13 10:36:59 2006

you can use these progrmam if you have any problems email
me

---------------------------------
Yahoo! Mail goes everywhere you do. Get it on your phone.
----------

RS BIT P0.7
RW BIT P0.6
E BIT P0.5
CALL LCD_SETUP

;*******************
MOV DPTR,#TABEL_LCD1
MOV R0,#16
LCD_UP1 :
MOV A,#0
MOVC A,@A+DPTR
CALL WRITE_LCD
INC DPTR
DJNZ R0,LCD_UP1
;*******************
MOV A,#1
CALL LCD_COMMAND
CALL DELAY_LCD
MOV A,#0C0H
CALL LCD_COMMAND
CALL DELAY_LCD
;*******************
MOV DPTR,#TABEL_LCD2
MOV R0,#16
LCD_UP2 :
MOV A,#0
MOVC A,@A+DPTR
CALL WRITE_LCD
INC DPTR
DJNZ R0,LCD_UP2

JMP $

;**********************************************
;**********************************************
;//////////////////////////////////////////////
LCD_SETUP : ;/
MOV A,#38H ;/
CALL LCD_COMMAND ;/
CALL DELAY_LCD ;/
;***************** ;/
MOV A,#0FH ;/
CALL LCD_COMMAND ;/
CALL DELAY_LCD ;/
;***************** ;/
MOV A,#01 ;/
CALL LCD_COMMAND ;/
CALL DELAY_LCD ;/
;***************** ;/
MOV A,#6 ;/
CALL LCD_COMMAND ;/
CALL DELAY_LCD ;/
;**************** ;/
MOV A,#80H ;/
CALL LCD_COMMAND ;/
CALL DELAY_LCD ;/
;*************** ;/
RET ;/
;********************************************;/
LCD_COMMAND : ;/
;/
;/
MOV P2,A ;/
CLR RS ;/
CLR RW ;/
SETB E ;/
CLR E ;/
RET ;/
;********************************************;/
DELAY_LCD : ;/
;/
MOV R4,#50 ;/
HERE2 : ;/
MOV R5,#255 ;/
HERE3 : ;/
DJNZ R5,HERE3 ;/
DJNZ R4,HERE2 ;/
RET ;/
;********************************************;/
DIS_LCD : ;/
MOV P2,A ;/
SETB RS ;/
CLR RW ;/
SETB E ;/
CLR E ;/
RET ;/
;/
;//////////////////////////////////////////////
;/
WRITE_LCD : ;/
CALL DIS_LCD ;/
CALL DELAY_LCD ;/
RET ;/
;//////////////////////////////////////////////
TABEL_LCD2 :
DB 'LCD PROGRAMING '
TABEL_LCD1 :
DB 'E...@YAHOO.COM'

----------

;THIS PROGRAM IS USED TO APPLAY KEYBOARD WITH MICRO 89S51

MOV DPTR,#TABLE
MOV P2,#0FFH
UP :
CLR C
MOV P2,#0FH
MOV R1,#0
MOV R2,#0
MOV A,P2
CJNE A,#00001111B,DOWN1
JMP UP
DOWN1 :
NOP
NOP
NOP
NOP
MOV A,P2
CJNE A,#00001111B,DOWN2
JMP UP

DOWN2 :
RRC A
INC R1
JB CY,DOWN2
DEC R1
MOV P2,#11110000B
MOV A,P2
CLR C
UP3 :
RLC A
INC R2
JB CY,UP3
CLR C
DEC R2
MOV B,R1
MOV A,#4
MUL AB
ADD A,R2
MOVC A,@A+DPTR
MOV P0,A
CALL DELAY_1S

JMP UP
;************************
DELAY_1S :
MOV R2,#50
HERE3 :
MOV R1,#10
HERE1 :
MOV R0,#20
HERE :
DJNZ R0,HERE
DJNZ R1,HERE1
DJNZ R2,HERE3
RET

;*************************
TABLE :

DB 01110000B ;F
DB 00001101B ;3
DB 00100101B ;2
DB 10011111B ;1
DB 01110000B ;F
DB 01000001B ;6
DB 01001001B ;5
DB 10011001B ;4
DB 01110000B ;F
DB 00001001B ;9
DB 00000001B ;8
DB 00011111B ;7
DB 00110001B ;STOP
DB 11000101B ;START
DB 00000011B ;0
DB 01100001B ;ENTER

[Non-text portions of this message have been removed]



______________________________
LaunchPad Kit for MSP430 Value Line: Complete open source tool for harnessing 16-bit performance and ultra-low power. Click for Details


(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )

Re: [AVR club] Re: interfacing prob in 8051 - Arvin parwal - May 14 11:34:14 2006

hello dear friend,
thanx for suggestion,
i will try..
thanx
bye

Pablo Villaverde wrote:
My suggestion is that you should at least try to find those resources on the
web for yourself. A lot is already available, but by looking at your message
you sound like "hey, please provide all the information for a school
project. I expect everything for free". No way!!!!

Work and learn, will you?

Regards,

Pablo

----- Original Message -----
From: "Arvin parwal"
To:
Sent: Friday, May 12, 2006 3:47 PM
Subject: [AVR club] Re: interfacing prob in 8051
> hello dear friends,
> this is Arvin Parwal,
> student of TIET,patiala.
> can any one suggest me or provide me assembly program for interfacing of
ADC,KEYPAD,LCD,in a single prog. for 8051 microcontroller
> this time i am facing problem in my prject,if anyone can suggest me
> plz reply as soon as possible.
> thanx
>
> arvin parwal
> "sayyed.m.ali zeinolabedin" wrote:
>
> hi .
> one of the most professional way is used a svpwm , that you can more
information on internet.
>
> ---------------------------------
> Get amazing travel prices for air and hotel in one click on Yahoo!
FareChase
>
> [Non-text portions of this message have been removed]
>
> SPONSORED LINKS
> Atmel avr Microcontrollers Intel microprocessors 8051
microprocessor
>
> ---------------------------------
>

______________________________
Have a look at the new TI MCU Center on EmbeddedRelated.com!


(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )

[AVR club] Re: Mr sayyed :Re: interfacing prob in 8051 - Arvin parwal - May 14 11:34:42 2006

hi Mr sayyed,
firstly thanx for sending me reply..
i will use it,
actually i want to inerface an ADC,keybord,and LCD to 8051.
if wod get any prb can i contact to you,
have anice time
thanx

yours friend=20
Arvind Parwal
=20=20
"sayyed.m.ali zeinolabedin" wrote:
you can use these progrmam if you have any problems email
me

=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
---------------------------------
Yahoo! Mail goes everywhere you do. Get it on your phone.
----------

RS BIT P0.7
RW BIT P0.6
E BIT P0.5
CALL LCD_SETUP

;*******************
MOV DPTR,#TABEL_LCD1
MOV R0,#16
LCD_UP1 :
MOV A,#0
MOVC A,@A+DPTR
CALL WRITE_LCD
INC DPTR
DJNZ R0,LCD_UP1
;*******************=20=20=20=20=20=20=20=20=20=20=20=20=20
MOV A,#1
CALL LCD_COMMAND =
=20
CALL DELAY_LCD =
=20
MOV A,#0C0H
CALL LCD_COMMAND =
=20
CALL DELAY_LCD=20=20
;*******************
MOV DPTR,#TABEL_LCD2
MOV R0,#16
LCD_UP2 :
MOV A,#0
MOVC A,@A+DPTR
CALL WRITE_LCD
INC DPTR
DJNZ R0,LCD_UP2

JMP $=20=20=20=20=20=20=20=20

;**********************************************
;**********************************************
;//////////////////////////////////////////////
LCD_SETUP : ;/
MOV A,#38H ;/
CALL LCD_COMMAND ;/
CALL DELAY_LCD ;/
;***************** ;/
MOV A,#0FH =
;/
CALL LCD_COMMAND ;/
CALL DELAY_LCD ;/
;***************** ;/
MOV A,#01 ;/
CALL LCD_COMMAND ;/
CALL DELAY_LCD ;/
;***************** ;/
MOV A,#6 ;/
CALL LCD_COMMAND ;/
CALL DELAY_LCD ;/
;**************** ;/
MOV A,#80H ;/
CALL LCD_COMMAND ;/
CALL DELAY_LCD ;/
;*************** ;/
RET ;/
;********************************************;/
LCD_COMMAND : ;/
;/
;/
MOV P2,A ;/
CLR RS ;/
CLR RW ;/
SETB E ;/
CLR E ;/
RET ;/
;********************************************;/
DELAY_LCD : ;/
;/
MOV R4,#50 ;/
HERE2 : ;/
MOV R5,#255 ;/
HERE3 : ;/
DJNZ R5,HERE3 ;/
DJNZ R4,HERE2 ;/
RET ;/
;********************************************;/
DIS_LCD : ;/
MOV P2,A ;/
SETB RS ;/
CLR RW ;/
SETB E ;/
CLR E ;/
RET ;/
;/
;//////////////////////////////////////////////
;/
WRITE_LCD : ;/=20=20
CALL DIS_LCD ;/
CALL DELAY_LCD ;/
RET ;/
;//////////////////////////////////////////////=20=20=20=20=20=20
TABEL_LCD2 :
DB 'LCD PROGRAMING '=20=20=20=20=20=20
TABEL_LCD1 :
DB 'E...@YAHOO.COM'
=20=20=20=20=20=20
=20=20=20=20=20=20=20=20=20=20=20=20

----------

;THIS PROGRAM IS USED TO APPLAY KEYBOARD WITH MICRO 89S51

MOV DPTR,#TABLE
MOV P2,#0FFH
UP :
CLR C
MOV P2,#0FH
MOV R1,#0
MOV R2,#0
MOV A,P2
CJNE A,#00001111B,DOWN1
JMP UP
DOWN1 :
NOP
NOP
NOP
NOP=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
MOV A,P2
CJNE A,#00001111B,DOWN2
JMP UP
=20=20=20=20=20=20=20=20=20=20=20=20
DOWN2 :
RRC A
INC R1
JB CY,DOWN2
DEC R1
MOV P2,#11110000B
MOV A,P2
CLR C
UP3 :
RLC A
INC R2
JB CY,UP3=20=20=20
CLR C
DEC R2
MOV B,R1
MOV A,#4
MUL AB
ADD A,R2
MOVC A,@A+DPTR
MOV P0,A
CALL DELAY_1S =
=20
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
JMP UP
;************************
DELAY_1S :
MOV R2,#50
HERE3 :
MOV R1,#10
HERE1 :
MOV R0,#20
HERE :
DJNZ R0,HERE
DJNZ R1,HERE1
DJNZ R2,HERE3
RET=20=20=20=20=20=20=20=20=20=20=20=20

;*************************
TABLE :
=20=20=20=20=20=20=20=20=20=20=20=20
DB 01110000B ;F
DB 00001101B ;3
DB 00100101B ;2
DB 10011111B ;1
DB 01110000B ;F
DB 01000001B ;6
DB 01001001B ;5
DB 10011001B ;4
DB 01110000B ;F
DB 00001001B ;9
DB 00000001B ;8
DB 00011111B ;7
DB 00110001B ;STOP
DB 11000101B ;START
DB 00000011B ;0
DB 01100001B ;ENTER
=20=20=20=20=20=20
=20=20=20=20=20=20
=20=20=20=20=20=20=20=20=20=20=20=20
=
=20
[Non-text portions of this message have been removed]

SPONSORED LINKS=20
Atmel avr Microcontrollers Intel microprocessors 8051 micro=
processor=20
=20=20=20=20
---------------------------------

=20
______________________________
Have a look at the new TI MCU Center on EmbeddedRelated.com!


(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )