The Godfather talking
You think I am funny guy huh?
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 18, 2024, 08:28:30 20:28


Login with username, password and session length


Pages: [1]
Print
Author Topic: req: basic programmes for 8051  (Read 7192 times)
0 Members and 1 Guest are viewing this topic.
fire
Junior Member
**
Offline Offline

Posts: 56

Thank You
-Given: 29
-Receive: 23


« on: November 05, 2007, 07:24:39 07:24 »


 plz give me the following basic programmes
1. display a strings in lcd (LCD interface)
2. Analog to Digital conversion
3. Serial communication
4. keypad scanning

 i am beginner in microcontrollers( starting with 8051)
 i expect help from others...
Logged
abbas1707
Junior Member
**
Offline Offline

Posts: 76

Thank You
-Given: 15
-Receive: 25



WWW
« Reply #1 on: November 05, 2007, 10:22:39 10:22 »

which language u r using??? if it is c ,i can help Wink Wink
Logged

A Thousand Miles Journey Starts With a Single Step
ktl
Newbie
*
Offline Offline

Posts: 32

Thank You
-Given: 7
-Receive: 18


« Reply #2 on: November 05, 2007, 10:54:09 10:54 »

i think he uses assembly.
some basic books always have that kind of examples.
Logged
pomidor
Junior Member
**
Offline Offline

Posts: 48

Thank You
-Given: 36
-Receive: 90


« Reply #3 on: November 05, 2007, 10:12:21 22:12 »

http://www.8052.com/codelib.phtml
Logged
fire
Junior Member
**
Offline Offline

Posts: 56

Thank You
-Given: 29
-Receive: 23


« Reply #4 on: November 06, 2007, 08:36:05 08:36 »

 i would like to know the program in both assembly and c language
plz help...
Logged
ktl
Newbie
*
Offline Offline

Posts: 32

Thank You
-Given: 7
-Receive: 18


« Reply #5 on: November 06, 2007, 11:22:49 11:22 »

check this..  Wink

http://www.sonsivri.com/forum/index.php?topic=6237.0
Logged
sam_des
Senior Member
****
Offline Offline

Posts: 253

Thank You
-Given: 124
-Receive: 146


« Reply #6 on: November 06, 2007, 05:24:45 17:24 »

Hello Fire,

Are you a complete beginner for micro ?
If so, it will be foolish to jump & write programs you asked for. It will be far better for you start with simple programs first like - LED blinking etc.

Also read the Original Intel 8051 handbook.It has wealth info & newer datasheets simply donot mention these points as 8051 is so well known. But 8051 architecture has some quirks you better understand now. There are couple of introductory texts on MCS-51, read them.

Just try some basic programs first.
If you get stuck, many in this forum will be glad to help.(including me Grin).

regards
sam_des
Logged

Never be afraid to do something new. Remember Amateurs built the Ark, Professionals built the Titanic !
abbas1707
Junior Member
**
Offline Offline

Posts: 76

Thank You
-Given: 15
-Receive: 25



WWW
« Reply #7 on: November 07, 2007, 03:53:37 15:53 »

yes first start with led blinking program if u r a begginer.
if u face any problem , we r here to help u.
then when u complete first step ,we will move to the next one.
in this way u will learn in a better style Grin
Logged

A Thousand Miles Journey Starts With a Single Step
kukumar
Junior Member
**
Offline Offline

Posts: 46

Thank You
-Given: 29
-Receive: 28


« Reply #8 on: November 15, 2007, 10:36:22 10:36 »

some basic programs:

http://rapidshare.com/files/69850058/Keil_C51code.rar.html

pass: kukumar
Logged
chen
Junior Member
**
Offline Offline

Posts: 59

Thank You
-Given: 2
-Receive: 5



« Reply #9 on: December 30, 2007, 05:52:00 17:52 »

hello fire...

try this book

"he 8051 Microcontroller and Embedded Systems using Assembly and C"
second edition

by
Muhammad Ali Mazidi
Janice Gillispie Mazidi
Rolin D. McKinlay

you will get everything you need in this book from a led blinking program to lcd, a/d, serial and keypad programs in both assembly and C

chen...
Logged
verde321
Junior Member
**
Offline Offline

Posts: 93

Thank You
-Given: 79
-Receive: 40



« Reply #10 on: December 30, 2007, 08:46:43 20:46 »

Fire, if you're begginer, I think that a good start point is use basic compiler Bascom 8051, for example; for display a message on 2X16 LCD using 8051 microcontrollers the routine is very simple:

Config Lcdpin = Pin , Db4 = P1.4 , Db5 = P1.5 , Db6 = P1.6 , Db7 = P1.7 , E = P1.3 , Rs = P1.2 'Pines to use
Config Lcd = 16 * 2     'Type of LCD:  2 lines for 16 characters

Cls                                                           'clear the LCD display
Locate 1 , 6                                              'Set cursor on first line and 6th position
Lcd "Hello"                                                'Message to display
Locate 2 , 3                                             'Set cursor on second line and 3th position
Lcd "sonsivri.com"                                     'Message to display
end                                                       'End of program

You can simulate the circuit using proteus.

Proteus and Bascom 8051 software are in this great forum for download it.

Best regards.

 Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy
Logged
MAXPAYNE
Hero Member
*****
Offline Offline

Posts: 693

Thank You
-Given: 492
-Receive: 359


It's a little funny......


« Reply #11 on: January 02, 2008, 05:39:52 05:39 »

hello fire...

try this book

"he 8051 Microcontroller and Embedded Systems using Assembly and C"
second edition

by
Muhammad Ali Mazidi
Janice Gillispie Mazidi
Rolin D. McKinlay

you will get everything you need in this book from a led blinking program to lcd, a/d, serial and keypad programs in both assembly and C

chen...

If someone have this book please upload. I got only first 4 chapters......
Logged

Whats the Craziest Project u have done lately...?
sndey85
Inactive

Offline Offline

Posts: 5

Thank You
-Given: 6
-Receive: 0


« Reply #12 on: October 12, 2010, 06:28:31 18:28 »

hello fire...

try this book

"The 8051 Microcontroller and Embedded Systems using Assembly and C"
second edition

by
Muhammad Ali Mazidi
Janice Gillispie Mazidi
Rolin D. McKinlay

you will get everything you need in this book from a led blinking program to lcd, a/d, serial and keypad programs in both assembly and C

chen...

Could you please help me to find this book. Upload it to rapidshare if possible.
Thanks Smiley
Logged
tokyo_emb
Junior Member
**
Offline Offline

Posts: 90

Thank You
-Given: 144
-Receive: 44


« Reply #13 on: January 22, 2011, 05:58:14 17:58 »

The 8051 Microcontroller and Embedded Systems Using Assembly and C-2nd-ed
here is the link
http://rapidshare.com/files/443975765/The_8051_Microcontroller_2nd-ed.rar

    this book is really good with details for biggeners
Logged
forter
Active Member
***
Offline Offline

Posts: 136

Thank You
-Given: 991
-Receive: 26


« Reply #14 on: January 25, 2011, 05:45:57 05:45 »

Hi, tokyo_emb!
Your link is not working,
Logged
tokyo_emb
Junior Member
**
Offline Offline

Posts: 90

Thank You
-Given: 144
-Receive: 44


« Reply #15 on: January 25, 2011, 03:11:51 15:11 »

this is wired that rapid deleted it in a short time....here it is uploaded again.....

http://rapidshare.com/files/444471611/The_8051_Microcontroller_and_Embedded_Systems_Using_Assembly_and_C-2nd-ed.rar
Logged
nikhilele
Junior Member
**
Offline Offline

Posts: 83

Thank You
-Given: 2
-Receive: 22


WWW
« Reply #16 on: July 25, 2011, 09:31:28 21:31 »

www.8052.com has almost all codes
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC