Search Results - microcontroller

Home Forums Search Search Results for 'microcontroller'

Viewing 15 results - 1 through 15 (of 127 total)
  • Author
    Search Results
  • #15888
    BaseMell
    Participant

    Hi..in my case I found that the microcontroller is powered by +5V. I had to change the Power Rail Voltage to +3.3V.
    I changed the voltage from the “Design->Configure Power rails” menu entry. From the drop down list, I picked VCC/VDD and changed the voltage from 5 to 3.3. Now it works correctly.

    #15885
    Ligo George
    Keymaster

    Hi,

    Try this : https://electrosome.com/interfacing-eeprom-pic-microcontroller/

    Anurag
    Participant

    How can i communicate between 2 microcontrollers ( PIC16F18855 and PIC18F45K20 ) through UART ( in MPLAB Using MCC ). Where i should be able to send an array of data from PIC16 to PIC18 and vice versa

    • This topic was modified 6 years, 12 months ago by Ligo George.
    #13917
    Maria Tanja
    Participant

    Hello,

    How to use interrupts to LED ON/OFF using push button. Am using 16Bit PICMicrocontroller dsPIC33. Please suggest how to write code..

     

    if (PORTBbits.RB5 == 1)

    {

    LATEbits.LATE6 = 1;

    }

     

     

     

    if (PORTBbits.RB5 == 1)

    {

    IFS1bits.CNIF = 1;

    IFS1bits.INT2IF = 1;

    IFS1bits.INT2IF = 1;

    IFS1bits.INT2IF = 0;

     

    }

    by using this code only switched ON….

     

    #13910
    viki2000
    Participant

    Hi,

    I was checking your nice tutorial from here:

    https://electrosome.com/i2c-pic-microcontroller-mplab-xc8/
    <div class=”post-message ” dir=”auto” data-role=”message”>
    <div>

    I decided to try it with PIC18F4550 to PIC18F4550 and I went in troubles.
    I have tested your Proteus project with PIC16F877A and works fine.
    Then I decided to replace PIC16F877A with PIC18F4550.
    I have an error and maybe you can take a look and give some hints. The error comes from Slave code.
    I made the changing from PIC16F877A to PIC18F4550 in 2 steps.
    In the first step I have changed only the Master with PIC18F4550 and the Slave was still PIC16F877A.
    Everything worked fine here. In my case the Master only reads from Salve and display the switches result on LEDs.
    Here is the screenshots and XC8 code, the Master C code and “pro2.zip” with Proteus + MPLABX full XC8 code for Master and Slave:
    https://goo.gl/uTijwg
    This project works fine.

    In the second step I have changed also the Slave with PIC18F4550.
    Here is the screenshots and XC8 code, the Master and the Slave C code and “pro3.zip” with Proteus + MPLABX full XC8 code for Master and Slave:
    https://goo.gl/dnGDMQ

    Here I have a problem and for sure comes from Slave XC8 code.
    When I compile it says “variable “_z” is not used” and “portion of expression has no effect” where z is used.
    Could you please help to debug the problem?

    </div>
    </div>

    Muzhaffar Shah
    Participant

    Greetings,
    I have a few question to ask regarding my circuit in Proteus 8.6. I’ve constructed a circuit that posted in this link –> https://electrosome.com/switch-pic-microcontroller-hi-tech-c/ . I also built the program using the Hitech C compiler using Mplab software. And then, when I try to run the simulation in the Proteus using the hex file I built in Mplab, it didn’t even say error or something like that, instead, the led in the circuit itself won’t light up (no error message in Proteus while I run the simulation). I already tried to reinstall all my programming and other software (mplab, proteus, hitech c). But, it doesn’t work. What should I do? This is really stressing me out. This website is the only one where I can study more about Embedded Programming.
    p/s: Pictures are included in this forum for reference.

    Thank you.

    #13783
    Usuie
    Participant

    Hello I need help in putting an LCD display to my microcontroller. I am new to microcontrollers and I am trying to learn.

    I have a PIC18f4455. Below you have the schematic.

    I need help in how to put an LCD display 16×2 to my PIC18f4455.

     

    #13740
    Ligo George
    Keymaster

    Here you can see a sample project done using ASK modules. Same is applicable to FSK also, just by replacing the module.

    #13739
    Ligo George
    Keymaster

    FSK RF modules are similar to ASK. FSK modules use Frequency Shift Keying while ASK is Amplitude Shift Keying.

    So you can use the same circuit of ASK modules. You can refer this article, Wireless RF Transmitter and Receiver using ASK Modules.

    I hope that you already know about ASK modules and its usage. These FSK modules are commonly used for replacing traditional ASK modules for better noise immunity and performance.

    It is very easy to integrate with a microcontroller. If you check the circuit you can see that the inputs (to HT12E) and outputs (HT12D) are digital. So you can connect it to any microcontroller and do normal IO operations.

    #13736
    [email protected]
    Participant

    I have purchased this item. I need to know how to program this item through microcontroller.

    Ligo George
    Keymaster
    #13703
    eshwar
    Participant

    Hi,

    I am working with PIC24EP512GU810 Microcontroller and LG128642 GLCD. First time i am working with GLCD.i gave the hardware connections as follows.

    DB0 to DB7 : RD7 to RD14.

    CS2 : RD1

    CS1 : RD2

    RST : RD0

    E : RD4

    i gave all signals to port D.now my problem is when i need to send data or command to data bus it effects the control signals.how can i send the data or commands to individual bits of port D which are connected to databus.

     

    Thanks

    Eshwar..

    #13702
    Admtsn58
    Participant

    I am sending 32 bytes from master microcontroller using your I2C library. How can I do that ? Your library handles only single byte of information.

    ////SLAVE CODE DATA READ //
    if(!SSPSTATbits.D_nA && !SSPSTATbits.R_nW)
    {
      z = SSPBUF;//Address Read
      while(!BF);
      d=SSPBUF;      //data Read
      SSPCONbits.CKP = 1;
      inputflag=1;
    }
    
    Ligo George
    Keymaster

    Grounds of both circuits (RX to TX and TX to RX) should be same for UART to work. In your case you are using ZigBee transceiver, so ground of ZigBee power should be same as microcontroller power.

    yamabonadine
    Participant

    Convert an analog audio signal to digital with a PIC and send the data through serial to a blutooth Module HC05 or HC06
    I want to convert an analog audio signal to digital signal and send it to serial input in blutooth Module. How can I do this?
    Microcontroller used: PIC18f452
    regard

Viewing 15 results - 1 through 15 (of 127 total)
>