Search Results - mikroc

Home Forums Search Search Results for 'mikroc'

Viewing 7 results - 31 through 37 (of 37 total)
  • Author
    Search Results
  • #9030
    biswaIITH
    Participant

    Can we compile the above hitech c code in mikroc 6.4 …thanksss

    #8961

    In reply to: port extender

    Ligo George
    Keymaster

    MCP23017 will not work with MikroC Port Expanding Library..  You need to develop your own library functions..
    This link might help you :

    http://www.mikroe.com/forum/viewtopic.php?f=97&t=56536

    You can connect SCL and SDA to PIN 34 and 33 respectively. Please refer the datasheet of 18F4550.

    #7560
    Ligo George
    Keymaster

    Sorry, I don’t get what you are saying…
    Try this link, it might help you..
    Using Push Button Switch with PIC Microcontroller – MikroC
    Using Push Button Switch with PIC Microcontroller – Hi Tech C

    #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..

    #7547
    rahulo0
    Participant

    Thanks Ligo
    can you please program it in mikroc and send the codes ?

    #7540
    rahulo0
    Participant

    Hello There,

    I am trying to send a message from pc to pic16f877a and want to display it on lcd. But problem is that no matter the message length that i am sending from pc ,i am able to receive and display only 2 characters on lcd. I am sending you the code. Looking forward for a reply. By the way i am using mikroC for writing the code.

    Thank you,
    rahul

    /*/ LCD module connections*/
    sbit LCD_RS at RB7_bit;
    sbit LCD_EN at RB6_bit;
    sbit LCD_D4 at RB5_bit;
    sbit LCD_D5 at RB4_bit;
    sbit LCD_D6 at RB3_bit;
    sbit LCD_D7 at RB2_bit;

    sbit LCD_RS_Direction at TRISB7_bit;
    sbit LCD_EN_Direction at TRISB6_bit;
    sbit LCD_D4_Direction at TRISB5_bit;
    sbit LCD_D5_Direction at TRISB4_bit;
    sbit LCD_D6_Direction at TRISB3_bit;
    sbit LCD_D7_Direction at TRISB2_bit;
    // End LCD module connections
    unsigned char uart_rd;
    int i;
    void main() {

    uart1_init(9600);
    delay_ms(100);
    Lcd_Init(); // Initialize Lcd

    Lcd_Cmd(_LCD_CLEAR); // Clear display
    Lcd_Cmd(_LCD_CURSOR_OFF);
    while(1){
    if(uart1_data_ready()==1){
    delay_ms(100);
    uart_rd=uart1_read();
    lcd_chr_cp(uart_rd);
    }

    }
    }

    #7387
    Ligo George
    Keymaster

    Connect a pin of the microcontroller to a piezoelectric speaker or an ordinary speaker (voltage and current ratings should be considered while connecting an ordinary speaker). Then you can generate a tone of particular frequency by making the pin high and low in that frequency.

    MikroC Pro for PIC Microcontrollers provides built in library routines for tone generation…………

Viewing 7 results - 31 through 37 (of 37 total)
>