dexter0904
Junior Member level 3
- Joined
- Mar 21, 2011
- Messages
- 25
- Helped
- 2
- Reputation
- 4
- Reaction score
- 2
- Trophy points
- 1,283
- Location
- Never Land
- Activity points
- 1,444
Hello Guyz...
After 48 hours of being Stuck, I decided to post my problem here and expect some experts will guide me what is wrong with me writing code or what is wrong with the mikroC_Pro_5.60... ;-)
So here is what I'm Trying to do...
Expected Results
>>Main Function<<
Hyper Terminal Commands..
1--> Displays "CH1"
2--? Displays "CH2"
3--> Displays "CH3"
e--> Call RequestPassword() Function
E--> Call RequestPassword() Function
>>RequestPassword()<<
if Password if not successfull
Displays "Incorrect Password" and return back to main Function
>>EditReadings()<<
if password is Successfull
Return back to main Function and call EditReadings() Function
The Program outpu is deviating from expected operation like..
1. The decimal point in Voltage Readings disapeares...
Some times it comes back by commenting some line..
>like UART1_Write_Text();
>Enable Interrupts();(Line Number 98)
etc
2. Some Times Program Stucks, somewhere like while(ChracterReceived==0);
and some times at some other place(most probably ISR)
Note: Channel 1,2 and 3 are not Adc Channels of PIC,
Actually Voltages of 3 Channles are sent to PIC on single line..
and can be selected from PushButtons or from sending proper commands from HyperTerminal
1. Link to Source Files and Proteus Simulation
2. Link to MikroC Pro 5.60 Portable
3. Link to Proteus 7.7 Portable
Regards,
Waqas
After 48 hours of being Stuck, I decided to post my problem here and expect some experts will guide me what is wrong with me writing code or what is wrong with the mikroC_Pro_5.60... ;-)
So here is what I'm Trying to do...
Expected Results
>>Main Function<<
Hyper Terminal Commands..
1--> Displays "CH1"
2--? Displays "CH2"
3--> Displays "CH3"
e--> Call RequestPassword() Function
E--> Call RequestPassword() Function
>>RequestPassword()<<
if Password if not successfull
Displays "Incorrect Password" and return back to main Function
>>EditReadings()<<
if password is Successfull
Return back to main Function and call EditReadings() Function
The Program outpu is deviating from expected operation like..
1. The decimal point in Voltage Readings disapeares...
Some times it comes back by commenting some line..
>like UART1_Write_Text();
>Enable Interrupts();(Line Number 98)
etc
2. Some Times Program Stucks, somewhere like while(ChracterReceived==0);
and some times at some other place(most probably ISR)
Note: Channel 1,2 and 3 are not Adc Channels of PIC,
Actually Voltages of 3 Channles are sent to PIC on single line..
and can be selected from PushButtons or from sending proper commands from HyperTerminal
1. Link to Source Files and Proteus Simulation
HTML:
http://www.4shared.com/rar/AsszAnPV/PIC16F876A_Issue.html?
HTML:
http://www.4shared.com/file/Uc_AMdQs/MikroC_PIC_560_Portable.html?
HTML:
http://www.4shared.com/rar/Mltluzre/Proteus_77_Portable.html?
Regards,
Waqas