ASCII CODE DISPAY IN PIC16F690

Home Forums Microcontrollers PIC Microcontroller ASCII CODE DISPAY IN PIC16F690

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7550
    shankar
    Participant

    HELLO FRIEND,
    I am shankar.I dont know how to display the ascii code in lcd.can you help me.Actually i want to display the numbers from 1 t0 1000 in lcd using pic16f690.

    Thank You

    #7553
    Ligo George
    Keymaster

    Which compiler you are using???
    If you are using MikroC Pro… there is a built in function IntToStr() use it..

    If you are using other compiler… extract digit by digit… and display it…
    for eg: 45 can be displayed by following method..
    i = 45;
    DisplayCharacter((i%10)+48);
    i = i/10;
    DisplayCharacter((i%10)+48);

    Hope you got the logic..

    #7555
    Ligo George
    Keymaster

    Where 48 is the ACII corresponds to 0
    0 >> 48
    1 >> 49
    2 >> 50
    etc..

    #7564
    shankar
    Participant

    I am using the mikro c pro.i think now i get an idea about displaying the ascii codes.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
>