problem with LCD; mikroc-pic

Status
Not open for further replies.
Did you compile the code using mikroC? Send your hex file.

The problem is caused by this code

Code:
if(ss_select&&copy_set!=0)
 {

  intcon=0xA0;
  if(io)
  {
   intcon=0x00;
   rly1=1;
   one=0;
   rly2=1;
   ten=0;
   led=1;
 
Last edited:

i attached the hex file. for testing purpose i changed the Min to sec in smh value.....check this?

- - - Updated - - -

but the code is run only io is in 1 condition.initially io is in 0... then how it will cause the output
 

Attachments

  • 0-99min hex final.ZIP
    1.9 KB · Views: 52

Check with this hex file.
 

Attachments

  • timer.rar
    1.8 KB · Views: 52
Reactions: mailus

    mailus

    Points: 2
    Helpful Answer Positive Rating
interesting my problem solved,,,,,great
but the user input"00"shows as"/0".

- - - Updated - - -

point my problem please.
 

Check in proteus. Is it displaying 00?

add these lines after OPTION_REG = 0x07;

Code:
ss_select = 0;
copy_set = 0;
 
Reactions: mailus

    mailus

    Points: 2
    Helpful Answer Positive Rating
yes, proteus shows "00". but in real time it shows "/0"

- - - Updated - - -

why it is followed by option_reg=0x07; what's the reason.

- - - Updated - - -

i corrected the code.my problem solved,,,, i found reason for my problem....thank you very much internetuser2k12. whenever i need help i will contact you....
 


what was the problem?
 

The display /0 problem solved. assign the one and ten value to zero after copy-set value assigned.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…