Search Engine

Ccs i2c

Add Question

Are you looking for?:
i2c ccs , i2c use ccs , i2c ccs , i2c ccs
44 Threads found on Ccs i2c
i am using pic 18f4620 with ccs complier. i am constantly writing a count value in ds1307 ram (i2c 400khz), then i am running a timer interrupt for erery 500ms it will call a isr in the isr function i am togging a led. my doubt is will there be any issue in ds1307 ram count writing if interrupt comes, i am using software i2c only.
Hello everyone . I tried to use dspic30f3012 with i2c on ccs program and all's right. Now I'm trying to use the dspic with i2c on Mplabx. I used the mplabx with xc16 and this is the code : #include<i2c.h> void main(void ) { unsigned int config2, config1; unsigned char *wrptr; unsigned char tx_data (...)
using ccs compllier if i enable i2c then only i am getting this issue
in my pic microcontoller 18f4620 i am connecting ds3231 rtc if i use the hard ware i2c it is working fine . if i change to soft i2c and and intrupt the main power 4 - 5 times one of the instance time in ds3231 changes how to solve this issue. can i add low pass rc filter on scl and sda lines? my pull up resistor is 2.2k i2c speed is (...)
i connected a ds3231 rtc to pic 18f4620 if i use soft i2c ( ccs complier) the rtc is working good if i switch off and on the main power for 3 are 4 times one time the day or time changes how to solve this problem. the soft i2c settings are : #include <18F4620.h> #device ADC=16 #FUSES NOWDT //No Watch Dog (...)
Here I am posting mikroC PRO PIC code for multiple i2c LCDs. With this you can have a device like DS1307 of i2c bus and also 8 i2c PCF8574T based LCDs. I didn't post this in my previous thread in DIY section because its title had ccs C Project but this is mikroC PRO PIC project. I have used these i2c (...)
This is Multiple i2c LCD code. It is written using ccs C Compiler version 5.044. This si tested in Proteus and also EasyPIC v7 development board with 2 x 20x4 LCDs. LCDs should be HD44780 or compatible. I have used i2c LCDs and i2c LCD modules from Banggood. I will soon post mikroC PRO PIC and AVR versions of the code (...)
the s1307 rtc has 56x8 ram. please send sample program for writing and reading in ram. i am using pic ccs complier kindly send sample program are algorithim
Hello everybody,can you please help me to think on the implementation of a digital clock with PIC16F877A and PCF8583? I am new in i2c programming in ccs c ;please help.
In the past I have used ccs C Compiler that has built in functions for just about anything that we might want to do. These include: RS232 I/O, SPI two wire I/O, Discrete I/O, Parallel port, i2c I/O, Processor controls, Bit/Byte Manipulation, Standard C Math, Voltage Ref, A/D Conversion, Standard C char / String, Timers, Standard C memory, Capture
Hi for all, can somebody share some working C code (mikroC or ccs C or any...) for i2c communication between one PIC16F887 like master PIC and one PIC16F887 like slave pic? thanks in advance and best regards
Did you notice the 25640 driver code shipped with ccs C?
I see some differences to ccs example code respectively compiler manual suggestion given with i2c_isr_state(): - address isn't read for state == 0x80 (read address received) - there are extra i2c_read() calls for state > 0x80 I must confess however that I didn't yet implement i2c slave functionality with (...)
i want to use tmp100 temperature sensor with 24F16KA102 in ccs picc by using software i2c. i am confused about acknowledgment in i2c. Second how can i convert data in to decimal. i need only decimal . here is sample code #use i2c(Master,scl=PIN_b4,sda=PIN_B6,SLOW) i2c_start(); (...)
I'm reading the 16 bit ADC value and displaying in LCD using MCP3421. When i use inbuilt i2c functions in ccs, everything works good. But I'm trying to use the registers and displaying the value. Below program shows how i configured. But in the display, it shows different value what i expect. Please help #include "18F2520.h" #include "f252
hi I have got minIMU 9v2 sensor whicg=h is combination of accelerometer, magnetometer, gyroscope, i dont no how to interface with pic controller. any one help me to write coding for pic using ccs compiler to interface this sensor with pic using i2c.. regards
Hello team, I'm trying to communicate two devices using i2c protocol in assembly: PIC16f877A and AD5301. I have simulated my assembly code in proteus 7.9 sp1 and it works fine but physically does not. I thought it was my pcb but it isn't: I proved another program in ccs C language in the same pcb and componentes and it works very well, th
Is anyone how know how to receive data from sht25 sensor to a dspic33 microcontroller using i2c protocol.(i used ccs compiler.) and then sent this data over rs232 ??????? Thanks in advance. I try the following code : #include <33FJ128GP708.h> #FUSES NOWDT #FUSES HS #FUSES NOPROTECT #FUSES NOJTAG #FUSES NODEBUG #FUSES NOIE
Hi I am trying to interface external memory 24c02 in proteus 7.7. But can't figure out what is the problem. Objective is to Write some data on memory, then retrieve it and display on LCD. Do i need to add this line in file #use i2c(Master,sda=PIN_C4,scl=PIN_C3) schematic h
Hi, I am using PIC 16F887 and ccs-C compiler(version 4.093) plugin in MPLAB IDE I have dumped the code in hardware and i2c is working. now , i do not know at what speed the i2c communication is taking place ? can u help? Master code: #include <16f887.h> #device ADC=10 #use delay(clock=16000000) #fuses HS, NOWDT, NOPROT