Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Recent content by RRNegi

  1. R

    [PIC] RGB LED programming using PIC18F4550

    Two device addresses. For NCP5623 it is 0X70 and For NCP5623C it is 0X72. #include <P18F4550.h> #include <delays.h> #include <i2c.h> #pragma config PLLDIV = 5 #pragma config CPUDIV = OSC1_PLL2 #pragma config USBDIV = 2 #pragma config FOSC = HS //20MHz oscillator #pragma config FCMEN = ON...
  2. R

    [PIC] RGB LED programming using PIC18F4550

    But it is only transmitting 1 byte instead of 2 every 100 ms.
  3. R

    [PIC] RGB LED programming using PIC18F4550

    #include <P18F4550.h> #include <delays.h> #include <i2c.h> #pragma config PLLDIV = 5 #pragma config CPUDIV = OSC1_PLL2 #pragma config USBDIV = 2 #pragma config FOSC = HS #pragma config FCMEN = ON #pragma config IESO = OFF #pragma config PWRT = ON #pragma config BOR = ON #pragma config BORV = 2...
  4. R

    [PIC] RGB LED programming using PIC18F4550

    I am using Mplab C18. - - - Updated - - - I have replaced the start,stop and write functions. #define NCP5623_ADDRESS 0x70 #define CHIP_SHUTDOWN 0b00000000 #define SET_MAX_LED_CURRENT 0b00100000 #define PWM_RED_LED 0b01000000 #define PWM_GREEN_LED...
  5. R

    [PIC] RGB LED programming using PIC18F4550

    I am getting errors in this code while building.
  6. R

    [PIC] RGB LED programming using PIC18F4550

    I am using NCP5623 LED driver for the RGB LED.. The code isn't working in hardware. #include <P18F4550.h> #include <delays.h> #include <i2c.h> #pragma config PLLDIV = 5 #pragma config CPUDIV = OSC1_PLL2 #pragma config USBDIV = 2 #pragma config FOSC = HS #pragma config FCMEN = ON #pragma config...
  7. R

    PIC18F Microcontroller - prescaler and postscaler in timer2 for generating PWM

    Why the code is'nt working?? #include <P18F4550.h> #include <delays.h> #include <i2c.h> #pragma config PLLDIV = 5 #pragma config CPUDIV = OSC1_PLL2 #pragma config USBDIV = 2 #pragma config FOSC = HS #pragma config FCMEN = ON #pragma config IESO = OFF #pragma config PWRT = ON #pragma config BOR...
  8. R

    PIC18F Microcontroller - prescaler and postscaler in timer2 for generating PWM

    Which type of delay function is used in the program??
  9. R

    PIC18F Microcontroller - prescaler and postscaler in timer2 for generating PWM

    OK I'll configure PPLDIV and CPUDIV and yes I have connected pullup to the MCLR pin.
  10. R

    PIC18F Microcontroller - prescaler and postscaler in timer2 for generating PWM

    #pragma config FOSC = HS // Using 20 MHz crystal with PLL #pragma config WDT = OFF // Disable Watchdog timer #pragma config MCLRE = ON // Enable MCLR Enable #pragma config LVP = OFF // Disable low voltage ICSP config bits settings
  11. R

    PIC18F Microcontroller - prescaler and postscaler in timer2 for generating PWM

    RGB is getting positive supply from the anode pins as the RGB used is common anode. All pins of RGB are getting high voltage. So the RGB LED's is not Lighting up.
  12. R

    PIC18F Microcontroller - prescaler and postscaler in timer2 for generating PWM

    Hello, The code isn't working in hardware.
  13. R

    PIC18F Microcontroller - prescaler and postscaler in timer2 for generating PWM

    Hello, Yes RB0 and RB1 are used but Where have you define these pins??I don't have to define these pins? OpenI2C(MASTER, SLEW_OFF);// Initialize I2C module This code will consider the master and slave condition?? What is the use of ADCON1 = 0x0f Not yet checked in the hardware. Thankyou.
  14. R

    PIC18F Microcontroller - prescaler and postscaler in timer2 for generating PWM

    hello, I am using the PORTB pins of PIC for the communication so which prototype should be used?? StartI2C or SWStartI2C??(Reference MplabC18 libraries 2.4 and 3.4) Thankyou.
  15. R

    PIC18F Microcontroller - prescaler and postscaler in timer2 for generating PWM

    Hello, I am gettting errors while building this program. I've gone through the mplabc18 libraries there the commands are start-StartI2C1 read-ReadI2C1 write-WriteI2C1 stop-StopI2C1 Is this the reason for errors?? - - - Updated - - - Hello, I've replaced the commands for start,write,read and...

Part and Inventory Search

Back
Top