Author |
Message |
Topic: Smart Battery Comm. using SMBus |
mazen82
Replies: 2
Views: 12143
|
Forum: General CCS C Discussion Posted: Wed Jan 12, 2011 3:28 pm Subject: Smart Battery Comm. using SMBus |
Hi,
I am trying to communicate to a smart battery BB-2590 using the smbus.
I am using the pic18f97j60 connecting to one of the comm ports on the battery.
I have the i2c setup as:
#use i2c(Mas ... |
Topic: SNMP V3 |
mazen82
Replies: 1
Views: 3746
|
Forum: General CCS C Discussion Posted: Wed Dec 22, 2010 7:06 am Subject: SNMP V3 |
Does the CCS TCP/IP stack support snmp v3?
if not, then what do i need to do to have the v3 capability? |
Topic: SPI Help [Solved] |
mazen82
Replies: 11
Views: 10656
|
Forum: General CCS C Discussion Posted: Mon Nov 22, 2010 3:50 pm Subject: SPI Help [Solved] |
All software versions are 4.090
I took it out of the interrupt and used your suggestion by putting it in the main loop, this seems to have helped it tremendously.
thank you. |
Topic: SPI Help [Solved] |
mazen82
Replies: 11
Views: 10656
|
Forum: General CCS C Discussion Posted: Mon Nov 22, 2010 2:43 pm Subject: SPI Help [Solved] |
Sorry about the earlier post, compiler version is 4.090
here is the code:
#include "C:\Program Files\PICC\DMM\18F97J60.H"
#device ICD=TRUE
#device adc=10
#use delay(clock=25M& ... |
Topic: SPI Help [Solved] |
mazen82
Replies: 11
Views: 10656
|
Forum: General CCS C Discussion Posted: Mon Nov 22, 2010 2:25 pm Subject: SPI Help [Solved] |
the PIC is supplying the clock.
I have:
SDI
SDO
CLK
MCP_CS --- MCP3909 Chip Select
MCP_MCLR --- MCP3909 MCLR
the MCP3909 is running off a crystal (3.579MHz) for its internal timing used. The ... |
Topic: SPI Help [Solved] |
mazen82
Replies: 11
Views: 10656
|
Forum: General CCS C Discussion Posted: Mon Nov 22, 2010 1:53 pm Subject: SPI Help [Solved] |
the PIC is supplying the clock.
I have:
SDI
SDO
CLK
MCP_CS --- MCP3909 Chip Select
MCP_MCLR --- MCP3909 MCLR
the MCP3909 is running of a crystal (3.579MHz) for its internal timing used. The P ... |
Topic: SPI Help [Solved] |
mazen82
Replies: 11
Views: 10656
|
Forum: General CCS C Discussion Posted: Mon Nov 22, 2010 1:23 pm Subject: SPI Problem |
void mcp_collect()
{
MCP3909_CS = 0;
ac_v_upper_byte = spi_read2(0);
ac_v_lower_byte = spi_read2(0);
ac_i_upper_byte = spi_read2(0);
... |
Topic: SPI Help [Solved] |
mazen82
Replies: 11
Views: 10656
|
Forum: General CCS C Discussion Posted: Mon Nov 22, 2010 1:17 pm Subject: SPI Help [Solved] |
I am using a PIC 18f97j60 with digital isolators (ADUM3100 for fast switching) to talk to MCP3909.
On the PICC side, it is powered from a different source which is always on. The MCP3909 side is powe ... |
Topic: TCP Connection not established |
mazen82
Replies: 3
Views: 5387
|
Forum: General CCS C Discussion Posted: Thu Nov 05, 2009 7:20 am Subject: TCP Connection not established |
Yes, that is my intention. |
Topic: Problem SPI with Accelerometer ADIS16209 |
mazen82
Replies: 26
Views: 41707
|
Forum: General CCS C Discussion Posted: Wed Oct 28, 2009 1:23 pm Subject: Problem SPI with Accelerometer ADIS16209 |
I am using microchip's demo board: PICDEM.NET 2,
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en028217
and using the SPI port 2 from J6 on the board ... |
Topic: Problem SPI with Accelerometer ADIS16209 |
mazen82
Replies: 26
Views: 41707
|
Forum: General CCS C Discussion Posted: Wed Oct 28, 2009 8:20 am Subject: Problem SPI with Accelerometer ADIS16209 |
That makes sense using 16 clocks per chip select.
I keep trying the:
setup_spi2(SPI_MASTER|SPI_MODE_3|SPI_CLK_DIV_64);
but the software hangs up at the line:
retval = spi_read2(0);
with the cl ... |
Topic: Problem SPI with Accelerometer ADIS16209 |
mazen82
Replies: 26
Views: 41707
|
Forum: General CCS C Discussion Posted: Mon Oct 26, 2009 4:21 pm Subject: Problem SPI with Accelerometer ADIS16209 |
#include "C:\Program Files\PICC\ethernet2\18F97J60.H"
#device ICD=TRUE
#device adc=10
#use delay(clock=25M)
#fuses HS
#fuses NOIESO
#fuses NOFCMEN
#fuses PRIMAR ... |
Topic: Problem SPI with Accelerometer ADIS16209 |
mazen82
Replies: 26
Views: 41707
|
Forum: General CCS C Discussion Posted: Mon Oct 26, 2009 2:19 pm Subject: Problem SPI with Accelerometer ADIS16209 |
Yea, i added the time delays and fixed the 16 clocks per CS, i am also trying to go to DIV_64, but the software hangs up at the first spi_write2, any idea why?
where can i find what's in the funct ... |
Topic: Problem SPI with Accelerometer ADIS16209 |
mazen82
Replies: 26
Views: 41707
|
Forum: General CCS C Discussion Posted: Mon Oct 26, 2009 1:13 pm Subject: Problem SPI with Accelerometer ADIS16209 |
version is 4.090.
I tried having the SPI_CLK_DIV_64 instead of SPI_CLK_DIV_16 but i wouldnt see anything happening on the bus using the o'scope.
which makes sense because the part is by defualt ... |
Topic: Problem SPI with Accelerometer ADIS16209 |
mazen82
Replies: 26
Views: 41707
|
Forum: General CCS C Discussion Posted: Mon Oct 26, 2009 12:52 pm Subject: Problem SPI with Accelerometer ADIS16209 |
Compiler version is 4.09.
The pinout is as follows:
PIC18f97j60 ADIS16209
RD5 --> pin 2 Dout
RD4 --> pin 3 Din
... |
|