Author |
Message |
Topic: [partly solved] 2C slave example. Read consecutive bytes. |
jmann
Replies: 9
Views: 18695
|
Forum: General CCS C Discussion Posted: Wed Apr 03, 2013 9:01 am Subject: [partly solved] 2C slave example. Read consecutive bytes. |
The moderator believes your new question to be still on this topic and duly locked the new thread.
I did not understand your 'new' question at all.
Can you kindly re-phrase and post again.
Mi ... |
Topic: I think I'm missing an I2C interrupt (slave)*** Locked - Dup |
jmann
Replies: 0
Views: 2996
|
Forum: General CCS C Discussion Posted: Tue Apr 02, 2013 7:41 am Subject: I think I'm missing an I2C interrupt (slave)*** Locked - Dup |
In a previous thread, I asked about the proper form of the I2C slave
++++++++++++++++++++++++++
Locked.
Reason: Duplicate thread on same i2c slave topic.
No posting of new thread every day ... |
Topic: [partly solved] 2C slave example. Read consecutive bytes. |
jmann
Replies: 9
Views: 18695
|
Forum: General CCS C Discussion Posted: Mon Apr 01, 2013 9:45 pm Subject: [partly solved] 2C slave example. Read consecutive bytes. |
This forum became worthless over the past ten years. I'm removing my useful code example. |
Topic: [partly solved] 2C slave example. Read consecutive bytes. |
jmann
Replies: 9
Views: 18695
|
Forum: General CCS C Discussion Posted: Sat Mar 23, 2013 7:46 am Subject: [partly solved] 2C slave example. Read consecutive bytes. |
Simplifying #use i2c(slave,sda=PIN_C4,scl=PIN_C3, address=0x30, FORCE_HW)
// create bits for the status items for I2C
#byte SSPSTAT = 0x214 // register address specific to processor
# ... |
Topic: [partly solved] 2C slave example. Read consecutive bytes. |
jmann
Replies: 9
Views: 18695
|
Forum: General CCS C Discussion Posted: Sat Mar 23, 2013 6:56 am Subject: [partly solved] 2C slave example. Read consecutive bytes. |
if(state >= 0x80) //Master is requesting data
{
i2c_write(buffer[address++]);
}
picture of a frame: http://www.80 ... |
Topic: [partly solved] 2C slave example. Read consecutive bytes. |
jmann
Replies: 9
Views: 18695
|
Forum: General CCS C Discussion Posted: Fri Mar 22, 2013 9:50 pm Subject: [partly solved] 2C slave example. Read consecutive bytes. |
In the example code for I2C slave, only one byte is read per I2C frame.
ex #INT_SSP
void ssp_interupt ()
{
BYTE incoming, state;
state = i2c_isr_state();
if ... |
Topic: Microchip i2c EEProm Chips |
jmann
Replies: 6
Views: 71585
|
Forum: Code Library Posted: Fri Mar 19, 2010 11:21 am Subject: Microchip i2c EEProm Chips |
LIMITS
// ->Data cannot be accesses through the 0x7FFF-0x8000 point. That is that
// all write/read data must be contained within 0x0000-0x07FFF or
// 0x8000-0xFFFF.
// ->Data is not ... |
Topic: Wireless Encoder (good for one-way link using cheap radios) |
jmann
Replies: 14
Views: 118202
|
Forum: Code Library Posted: Tue Nov 10, 2009 10:10 am Subject: Re: need example please |
I'm new to PIC programming and have little knowledge.
Thanks.
Read the data sheet for the PIC in its entirety and understand the programming, register, and control architecture. Untill you know ... |
Topic: Wireless Encoder (good for one-way link using cheap radios) |
jmann
Replies: 14
Views: 118202
|
Forum: Code Library Posted: Thu Oct 08, 2009 8:30 pm Subject: Wireless Encoder (good for one-way link using cheap radios) |
Hey buds, its been a while and this code has generated lots of questions. Let me see what I can address here.
First of all, I need to remind you that you need to have a good idea of what goes on in ... |
Topic: Timer based Real Time Clock (RTC) |
jmann
Replies: 57
Views: 557380
|
Forum: Code Library Posted: Sat Jun 24, 2006 10:01 pm Subject: Timer based Real Time Clock (RTC) |
That's cool!
The first assignment in my embedded system design class was just like this. |
Topic: using wizard to start a project and using PLL on the OSC |
jmann
Replies: 3
Views: 5586
|
Forum: General CCS C Discussion Posted: Thu Jun 22, 2006 9:37 pm Subject: using wizard to start a project and using PLL on the OSC |
So, I will be using 4x PLL on a 10 MHz crystal to get 40MHz. The question is: does the new project wizard take this x4 factor into account or am I supposed to type "40,000,000" into the frequency box ... |
Topic: MPlab compiling wrong file |
jmann
Replies: 1
Views: 4091
|
Forum: General CCS C Discussion Posted: Wed Aug 31, 2005 7:22 pm Subject: MPlab compiling wrong file |
I think this is a simple question:
I use MPlab version 7.x with the CCS compiler. So I have a project set up with all of my source files and header files. The problem is that when I click complile, ... |
Topic: Microchip i2c EEProm Chips |
jmann
Replies: 6
Views: 71585
|
Forum: Code Library Posted: Sun Apr 17, 2005 9:15 pm Subject: Microchip i2c EEProm Chips |
This is the driver I wrote for a 512 Mbit (64 Kbyte) microchip i2c EEProm. to be best of my simple testing, it works, as I have used it for a few simple tasks. the chip I used had a 64 byte buffer.
... |
Topic: Char Stars not passing to functions |
jmann
Replies: 7
Views: 9558
|
Forum: General CCS C Discussion Posted: Sat Apr 16, 2005 9:27 am Subject: Char Stars not passing to functions |
but a pointer is a pointer, right?
then wouild this work?:
int16 send_in(char* data, int16 len)
{
char k;
signed int16 size;
int32 wr_ptr, ack_ptr;
int16 address;
... |
Topic: Char Stars not passing to functions |
jmann
Replies: 7
Views: 9558
|
Forum: General CCS C Discussion Posted: Fri Apr 15, 2005 4:09 am Subject: Char Stars not passing to functions |
when send-in calls writenetwork, data should have the value of 0x015F (the location of wr_ptr), however it gets the value 0x0020.
compiler Version 3.207 target chip 18F452
(also, I know that e ... |
|