Discussion in "New Ideas regarding projects" started by    rohitsuresh    Dec 16, 2009.
Mon Dec 21 2009, 07:12 pm
#11
Ajay Sir and Experimenter UK sir, kindly tell me after reviewing the pdf whether you will allow me to post this project in this website as soon as i complete it. That is by February( I am a slow learner)??

Am going to be out of Chennai for a couple of days. Going to visit my granny in the village in Kerala. But am carrying my books and my laptop along. Since, its a village i am not sure whether i will get an internet connection to log on. I will be back by January 3rd with a lot of doubts!!!

To Dave Sir,Ajay Sir and Experimenter UK sir,
Thank you for the reply. Am new to this site. Just started getting the hang of it. The doubts that newbies like me may sound stupid or obvious to experts like you people. To be frank, I've never seen such kind of dedication offered by experts to a newbie. Thanks a lot Sirs!!


P.S: I have just finished learning how to create a software debounce. So more annoying doubts coming up sirs.

Mon Dec 21 2009, 10:15 pm
#12
Actually it is Ajay's site, so it is his decision.
I expect that, if your project works, he will be happy to
add it to the site.

I looked at your proposal, but it seems to be an outline idea
so I am not sure exactly what it does.

Keep in mind that this device must be *simple* to use.
Don't expect the user to be pressing different buttons or
understanding codes.
All messages will have to be *very* clear.
Perhaps voice messages.. such as "Take your pill now".
Wed Dec 23 2009, 05:18 pm
#13
ee... ac

phil not you... its our site come on

anyways.. I will glad to host your project rohit. Just tell me when you finish with it

Good Luck!
Sun Jan 03 2010, 07:36 am
#14
Dear Sir,
Am back from vacation.

Please tell me some link where i can get PPI interfacing and its C Coding
Mon Jan 04 2010, 04:44 pm
#15
what is PPI w
and we do not provide codes we provide help.
Fri Jan 08 2010, 08:41 am
#16
Ajay Sir,
I have found what i was asking for in the examples section. Thank you for that upload
Mon Jan 11 2010, 03:29 pm
#17
Sir, I want to write a clock program for my pill dispenser project rather than going for the chip from dallas. I wrote the following program . but i am unable to debug it in KEIL.

I want to check the performance analyser window in uvision for this program to see wheter my clock's timing is right.

Ajay Sir,

I am a beginner so kindly bear the mistakes in the code. If time permits, please point out the mistakes so that i can correct it.

#include <reg52.h>
void DELAY_HARDWARE_One_day(void);
void DELAY_HARDWARE_One_hour(void);
void DELAY_HARDWARE_One_minute(void);
void DELAY_HARDWARE_One_Second(void);
void DELAY_HARDWARE_50ms(void);
unsigned char hour=00;
unsigned char minute=00;
unsigned char second=00;


void main(void)
{

while(1)
{
DELAY_HARDWARE_One_Second();
}
}
void DELAY_HARDWARE_One_Second(void)
{
unsigned int i;

for (i = 0; i < 20; i++)
{
DELAY_HARDWARE_50ms();
}
}
void DELAY_HARDWARE_One_minute(void)
{
unsigned int j;
for (j = 0; j < 60; j++)
{
DELAY_HARDWARE_One_Second();
second=j;
}
}
void DELAY_HARDWARE_One_hour(void)
{
unisigned int k;
for (k = 0; k < 60; k++)
{
DELAY_HARDWARE_One_minute();
minute=k;
}
}

void DELAY_HARDWARE_One_day(void)
{
unisigned int l;
for (l = 0; l < 24; l++)
{
DELAY_HARDWARE_One_hour();
hour=l;
}
}

void DELAY_HARDWARE_50ms(void)
{
TMOD &= 0xF0; // Clear all T0 bits (T1 left unchanged)
TMOD |= 0x01; // Set required T0 bits 00000001(T1 left unchanged)
ET0 = 0; // No interupts
TH0 = 0x3C; // Timer 0 initial value (High Byte)
TL0 = 0xB0; // Timer 0 initial value (Low Byte)
TF0 = 0; // Clear overflow flag
TR0 = 1; // Start timer 0
while (TF0 == 0); // Loop until Timer 0 overflows (TF0 == 1)
TR0 = 0; // Stop Timer 0
}
Mon Jan 11 2010, 03:31 pm
#18
Sir, also what is the "&" and "|" symbol in TMOD for???
Mon Jan 11 2010, 03:43 pm
#19
Sir, in the code, i put the spelling as unisigned int rather than unsigned, still when i try to debug, it says cannot open file
Tue Jan 12 2010, 12:42 am
#20
Your series of delays is not the way to do it.

Setup your timer to interrupt once every 50mS.
Write an interrupt handler that increments a count
eg milliSecondsCount, once per interrupt.

When milliSecondsCount ==20, reset it 0 and increment secondsCount.
When secondsCount==60 reset it 0 and increment minutesCount.

You get the idea

declare all counts Volatile.
Your main routine can check the counts as part of its loop.


also what is the "&" and "|" symbol in TMOD for


"&" and "|" stand for 'AND' and 'OR'.. names used for LOGICAL functions.
You will need to look up and understand such ideas to be able to program
properly.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

MildredWoumb
Wed May 15 2024, 04:07 am
NaKrutkADamb
Wed May 15 2024, 12:03 am
MichaelGot
Tue May 14 2024, 04:08 pm
FrankTrelm
Tue May 14 2024, 10:39 am
BillyTum
Tue May 14 2024, 09:08 am
Loganbag
Tue May 14 2024, 04:05 am
MichaelMog
Tue May 14 2024, 03:58 am
ThomasGaxaW
Mon May 13 2024, 05:33 pm