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.
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...
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...
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.
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.
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.
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.