Help pls..emergency abt pic program

hello everyone This is Monicca doing my final yr of engnr.I have done my project in embedded sys with pic micocontroller.I downloaded the program from net n i dnt understand anything.I have my review on thursday.So pls can anyone suggest a website for the better understandin of the program..pls I really need help.. Now this is the program.. #include #include #include

static void interrupt IntRoutine(); void Send(); short int Flg=0; int Cnt = 0,Oflow=0,Mytime=0,Adval,Hbc,Hbr; char St1[4],St2[4],St4[3];

void main() {

TRISB = 0x00; PORTB = 0x00; TRISD = 0x00; PORTD = 0x00; TRISE = 0x00; TRISC = 0xbf;

ADCON0 = 0x81; ADCON1 = 0x82;

SPBRG = 64;

TXEN = 1; SYNC = 0; BRGH = 1; SPEN = 1; CREN = 1;

DelayMs(200); DelayMs(200); DelayMs(200); DelayMs(200); DelayMs(200);

LCD_SendCmd(0x01);

LCD_SendCmd(0x80); LCD_puts("Ebc:");

LCD_SendCmd(0x88); LCD_puts("Tim:");

LCD_SendCmd(0xc3); LCD_puts("Ebr: Bpm");

T1CON = 0x00; // Enable Timer1 PEIE = 1; GIE = 1;

TMR1IF = 0; TMR1IE = 1; TMR1L = 0xaf; TMR1H = 0x3c; TMR1ON = 1;

for(;;) {

if(Oflow) { Oflow = 0; Mytime++; }

ADCON0 = 0x81; DelayUs(50); ADGO = 1; while(ADGO) continue;

Adval = (ADRESH * 256) + ADRESL;

if(Adval < 100 && Flg == 0) { Hbc++; Flg = 1; }

if(Adval > 100 && Flg == 1) { Flg = 0; }

if(Mytime > 3 && Mytime < 60) RD0 = 0;

if(Mytime >= 60) { Mytime = 0; Ebr = Ebc; if(Ebc > 15) { RD0 = 1; } Ebc = 0; }

sprintf(St1,"%3d",Ebc); LCD_SendCmd(0x84); LCD_puts(St1);

sprintf(St2,"%3d",Ebr); LCD_SendCmd(0xc8); LCD_puts(St2);

sprintf(St4,"%02d",Mytime); LCD_SendCmd(0x8c); LCD_puts(St4);

Send(); DelayMs(2);

} }

static void interrupt IntRoutine() {

if(TMR1IF) { TMR1IF = 0; Cnt++; if(Cnt >= 50) { Cnt = 0; Oflow = 1; }

TMR1ON = 0; TMR1L = 0xaf; TMR1H = 0x3c; TMR1ON = 1;

} }
Reply to
monicca86
Loading thread data ...

Tsk, tsk...are you trolling or genuinely clueless? Engineering is a profession, you know...not just memorizing dead facts. I suggest you withdraw from Engineering and take up some profession such as staffing a bureaucracy somewhere, where you're never required to know anything or come up with a practical answer on time. Your entire coursework was designed to impart to you the understanding you needed to complete the course, had you done the work.

Which Engineering school are you attending? I'd like to complain to them that they are not teaching their students any ethics, along with the technical side of the course work. There's an old saying that "technical competence is a dime-a-dozen" but someone who can manage technical projects and produce results on-time will never lack for work.

Bill

Reply to
Bill Shymanski

Is it me, or does anyone else notice the rise in "women" in engineering? Especially those that are in desperate need of last minute help. I'm sure they wouldn't try to con anyone.......

As far as the PIC program goes, if you "did your project" using a PIC, then you should have no trouble understanding that code. OTOH, if you copied the circuit and the code and now have to explain it because the prof thinks you cheated, well.....you'll get what you deserve. Final year project, and the code is that small?? I guess school has gotten easier over the years. Maybe I should give it a try and work towards getting my own "paper brain".

Reply to
Anthony Fremont

Generated by

formatting link
Location: India [City: Chennai, Tamil Nadu]

ARIN says that this IP belongs to APNIC; I'm looking it up there.

Using 30+ day old [STALE - being deleted now] cached answer (or, you can get fresh results). Hiding E-mail address (you can get results with the E-mail address).

% [whois.apnic.net node-2] % Whois data copyright terms

formatting link

inetnum: 60.254.0.0 - 60.254.127.255 netname: HATHWAY-NET descr: Hathway IP Over Cable Internet Access Service descr: Hathway IP Over Cable Internet Access Service country: IN admin-c: VM14-AP tech-c: VM14-AP status: ALLOCATED PORTABLE mnt-by: APNIC-HM mnt-lower: MAINT-IN-HATHWAY mnt-routes: MAINT-IN-HATHWAY remarks: -+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+ remarks: This object can only be updated by APNIC hostmasters. remarks: To update this object, please contact APNIC remarks: hostmasters and include your organisation's account remarks: name in the subject line. remarks: -+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+ changed: **********@apnic.net 20041217 source: APNIC

route: 60.254.96.0/24 descr: Hathway IP over Cable Internet Access origin: AS17488 notify: ******@hathway.net mnt-by: MAINT-IN-HATHWAY changed: ******@hathway.net 20050422 source: APNIC country: IN

person: Vijay Menezes nic-hdl: VM14-AP e-mail: ******@hathway.net address: Trade World, B Wing, 10th Floor, Kamla Mills Compound, address: Lower Parel, address: Mumbai 400013 phone: +91 022 56623333 fax-no: +91 022 24933355 country: IN changed: ******@hathway.net 20040419 mnt-by: MAINT-IN-HATHWAY source: APNIC

Reply to
Michael A. Terrell

How do you know the OP is a woman?

What I think we should be noticing is a much larger proportion of people being pushed into further education. I don't see any reason for a proportional rise in aptitude so I would not be surprised to find more are floundering.

Reply to
nospam

How many men do you know named Monicca? Emergency??? Puhlease...... Perhaps you missed my earlier sarcasm, I don't think it's really a woman. I think it's just another lazy student that isn't interested in electronics at all. The sad thing is that they will go on to become one of the lazy employees that show up here unable to find their ass with both hands and a flash-light.

This is in all likelyhood just one more case of someone floundering solely because of disinterest in the field. How could someone go to school for 4 years and not bother to learn the most basic things about their chosen career? It's downright pathetic.

Strange as it may sound, I'd like to be a real engineer, but I don't have the "proper credentials" to get past HR. Never mind that I can actually take a concept to completion, that is apparently not what is important in todays world. Yes I'm cynical, wouldn't you be if you couldn't get a job that "Monicca" could?

Reply to
Anthony Fremont

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.