free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Go to page  [1] 2 3 ... 26 27 28
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
sks
Fri Sep 19 2008, 02:26AM
 User Offline
Registered Member #9477
Joined: Thu Jul 31 2008, 07:51AM

Posts: 160
Thanked 0 times in 0 posts
thank u very much mr pundalik a.k.a. pdi33. u have given me a great pleasure to mail and guide me to use the site. i love electronics, i always experiment with new technology as right now i am working in media designing pipe line for post production studios in orissa. whenever i find time i do make myself busy with electronics. that give me energy. i may be old physically but i am very young mentally. god bless u all people. i am very happy to say u all r helping other people by guiding properly without anything, that's a great & noble idea.
any way i am working on a object counter project. i can make the counter Hardware using discrete ics but i want it on uc as it can be don with less components. i can write code for a single digit counter using a switch as input , 7seg display as display. i don't know how it can covert to multiple digits, i want the device should count up to 9999 , all the display should be multiplexed. a switch can be used as input in every press of the switch the counter has to increment by 1, when it reaches 9999 it has to stop. then restart again by another sw press. i am sorry fora lengthy mail .thanks all again
s.k.sahoo



Back to top


1nafar
Fri Sep 19 2008, 05:00AM
 User Offline
Registered Member #10613
Joined: Sat Sep 13 2008, 07:33AM

Posts: 20
Thanked 4 times in 4 posts
hi
you can download the project from link
i write this code with bascom8051 and change to asm for you
http://www.2shared.com/file/3955362/782373c3/project.html
can you download from 2shared?
bay


i am amateur in english language
I beg your pardon
Back to top



This post has been thanked 1 time
 sks 
Ajay
Fri Sep 19 2008, 11:08AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 4042
Thanked 753 times in 712 posts
Hi sks, welcome to website We all try to do our best. And Hope you learn a lot from here

Please keep 1nafar's code as reference, i suggest you to try it on your own so that it helps you better way. If you have any doubt doesnt matter small or big simply post here.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top



This post has been thanked 2 times
 sks , Amit singh 
pdi33
Fri Sep 19 2008, 11:36AM

 User Offline
Registered Member #1329
Joined: Mon Jun 04 2007, 09:28AM

Posts: 770
Thanked 185 times in 180 posts
btw, i checked the simulation file of nafar and it seems to be a time counter(timer) instead of object counter. So u will have to do a little modifications i the ciruit provided by him especially about intrducing the opto coupler part as u had referred to it in the chat box description ( if remember correctly).
for the optocoupler, i suggest u use the simplest one which is the TL817 4pin opto.
u can refer in the download section for 7 segment interfacing circuit ( u will require multiplexed one for ur project .)
try finalising the circuit first before starting coding.
good luck,
regards,


P.S.: another important aspect for object counting (if u r going to use it in a practical application in future) is the storage of the last count on power failure so that u can continue from the last count onwards. Please confirm whether that condition is required for ur apliction and i can suggest u a solution for it.



[ Edited Fri Sep 19 2008, 11:39AM ]

* inspired to develop,developing to inspire *
Back to top



This post has been thanked 1 time
 sks 
sks
Fri Sep 19 2008, 11:07PM
 User Offline
Registered Member #9477
Joined: Thu Jul 31 2008, 07:51AM

Posts: 160
Thanked 0 times in 0 posts
Thanks Ajay, i have inafar's project file there was Proteus project file along with codes written in basic ,hex file and a list file etc . i have simulated that in Proteus, it is a time counter. ok whatever it may be i had followed his source code in the list file but sorry to say i couldn't follow completely as it doesn't have comments. as i have said i am new to uc i will love to know in details like how u people write algorithms and the codes. please guide. thanks again
s.k.s

Back to top


sks
Fri Sep 19 2008, 11:36PM
 User Offline
Registered Member #9477
Joined: Thu Jul 31 2008, 07:51AM

Posts: 160
Thanked 0 times in 0 posts
Hi Mr pdi33, thank u for ur reply, comments, and queries. yes Inafar's project is a time counter i had simulated in Proteus i can modify the circuit and post. u have said correctly i have to store data in external memory if power fails or for other reasons. i think a 24c04 will solve the problem i don't know what u suggest. actually it is a practical project i will use a 4*4 matrix key pad to input the required base value. when i start the hardware all 4 display has to be in off mode , i may enter any value like 0000, 34 or 100 in hex keypad which has to be displayed after that i have to press an enter key which will be a part of hex keypad to start the counter it has to count above the entered value and stops at 9999. Mr Ajay has advised me to follow Inafar's code but i could not follow his code, i want to learn pl help me from ALGO to CODE writing. i know it may be a hard task for u but if u can pl guide me young man. i don't know what u do, do u have time or not. pl reply. thank again
sks

Back to top


sks
Sat Sep 20 2008, 02:09AM
 User Offline
Registered Member #9477
Joined: Thu Jul 31 2008, 07:51AM

Posts: 160
Thanked 0 times in 0 posts
Hi Mr ajay, sorry to disturb u people, but i want to learn programming. i have followed the code of Mr Inafar but it is hard to understand on part fully.
let us go slowly, i have some questions
1: if we write ORG 00H is it reset all and goes to starting of all locations or starting of only memory location ?
2: if we write ORG 0BH is it reset time counter0 ?
3: i don't follow this ORG 33H, 36H is it starting of (general purpose) scratch pad location of internal RAM?
4: in line x004b he has written mov 20h,#0 is it decimal 0 will be loaded at bit addressable location of RAM
I don't know uc language correctly i am trying to learn, i write very small codes. i have never used interrupt or counter of 8051, some people write delay routine using timer but i write delay routine using LOOP technique.
i will appreciate if u help me to complete this project. thanking you once again. i am sorry but i want to learn
sks

Back to top


sks
Sat Sep 20 2008, 02:21AM
 User Offline
Registered Member #9477
Joined: Thu Jul 31 2008, 07:51AM

Posts: 160
Thanked 0 times in 0 posts
Hi Mr 1nafar, thank u for ur help. i am glad to know u have taken pain to disassemble the code and mail me to help me out. god bless u people, but i could not follow completely as there are no comments and subroutine names i don't know what u call it (x0036). if u want to help me pl send me the ALGORITHM of ur code by which i will try to understand it. u have used direct bit addressable method and used interrupts i am not used to it as i am starting learning recently. thanks again
sks

Back to top


Arun Kumar V
Sat Sep 20 2008, 10:48AM

 User Offline
Registered Member #426
Joined: Sun Jan 28 2007, 11:50PM

Posts: 522
Thanked 219 times in 186 posts

hello SKS,

we respect your interest and appreciate your Zeal to learn Micros. please don't be in a hurry, my advice would be to first get hold of a good micro book like Kenneth Ayala or mazidi and soak you self into the basics of code building, try some small projects to familiarize with concepts and then move on to more complex projects.

Arun
Back to top



This post has been thanked 1 time
 sks 
ExperimenterUK
Sat Sep 20 2008, 02:17PM
 User Offline
Registered Member #9602
Joined: Tue Aug 05 2008, 04:15PM

Posts: 204
Thanked 38 times in 37 posts
Hello sks

As Arun says the best place to start is with a good book,
(or several good books) and simple experiments.

Trying to understand someone else's code, without good commenting
is very hard.
I wouldn't bother, you'll just get a headache

Good luck anyway.



[ Edited Sat Sep 20 2008, 02:20PM ]

Learning all the time
Back to top



This post has been thanked 1 time
 sks 
Go to page  [1] 2 3 ... 26 27 28  

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems