Author |
Message |
Topic: Having trouble using PIC16F1828 to communicate with ADS1255. |
olet96
Replies: 45
Views: 71616
|
Forum: General CCS C Discussion Posted: Fri Jul 18, 2014 10:11 am Subject: Having trouble using PIC16F1828 to communicate with ADS1255. |
Demedeiros and I realized our data that we thought was simply a spike or noise is actually the data going into the negative side since we are displaying the 24-bit data in a 32-bit form the first byte ... |
Topic: Having trouble using PIC16F1828 to communicate with ADS1255. |
olet96
Replies: 45
Views: 71616
|
Forum: General CCS C Discussion Posted: Fri Jul 18, 2014 8:45 am Subject: Having trouble using PIC16F1828 to communicate with ADS1255. |
This morning I tried removing the long wires I had coming off of the AIN0 and AIN1 inputs and soldered a resistor lead across the inputs and noticed my output went very close to zero, however I'm stil ... |
Topic: Having trouble using PIC16F1828 to communicate with ADS1255. |
olet96
Replies: 45
Views: 71616
|
Forum: General CCS C Discussion Posted: Fri Jul 18, 2014 8:02 am Subject: Having trouble using PIC16F1828 to communicate with ADS1255. |
Im using a LT1461bcs8-2.5#PBF which is a 2.5 volt regulator. |
Topic: Having trouble using PIC16F1828 to communicate with ADS1255. |
olet96
Replies: 45
Views: 71616
|
Forum: General CCS C Discussion Posted: Thu Jul 17, 2014 8:06 am Subject: Having trouble using PIC16F1828 to communicate with ADS1255. |
That seemed to work much better it didnt go completely to zero but its very very close to zero. |
Topic: Having trouble using PIC16F1828 to communicate with ADS1255. |
olet96
Replies: 45
Views: 71616
|
Forum: General CCS C Discussion Posted: Wed Jul 16, 2014 1:46 pm Subject: Having trouble using PIC16F1828 to communicate with ADS1255. |
I have changed all the
spi_xfer(ADS, 0, 1); to spi_xfer(ADS, 0, 8);
I also read out all of the registers to ensure there wasnt any problems there and tied AIN0 to AIN1 which sho ... |
Topic: Having trouble using PIC16F1828 to communicate with ADS1255. |
olet96
Replies: 45
Views: 71616
|
Forum: General CCS C Discussion Posted: Tue Jul 15, 2014 3:39 pm Subject: Having trouble using PIC16F1828 to communicate with ADS1255. |
So yesterday I had been trying to get the 24 complementary 2's converted to a signed 32 bit number and had noticed while looking at the RAW DATA that I wasn't getting what I expected to in hex with th ... |
Topic: Having trouble using PIC16F1828 to communicate with ADS1255. |
olet96
Replies: 45
Views: 71616
|
Forum: General CCS C Discussion Posted: Mon Jul 14, 2014 7:51 am Subject: Having trouble using PIC16F1828 to communicate with ADS1255. |
Here is some of the data we are getting from the PIC with 2.5v on the input of the ADC.
Data is: 0x00BFB9F7:
... |
Topic: Having trouble using PIC16F1828 to communicate with ADS1255. |
olet96
Replies: 45
Views: 71616
|
Forum: General CCS C Discussion Posted: Fri Jul 11, 2014 11:52 pm Subject: Having trouble using PIC16F1828 to communicate with ADS1255. |
Sorry I just noticed your reply and im no longer at the shop until Monday morning however I will be sure to post some of the data then. |
Topic: Having trouble using PIC16F1828 to communicate with ADS1255. |
olet96
Replies: 45
Views: 71616
|
Forum: General CCS C Discussion Posted: Fri Jul 11, 2014 2:26 pm Subject: Having trouble using PIC16F1828 to communicate with ADS1255. |
So we discovered that the code was dropping off the last byte of data by using a logic analyzer to look at the SPI bus. We were able to read each of the three bytes of data individually ( 8 bits at a ... |
Topic: Having trouble using PIC16F1828 to communicate with ADS1255. |
olet96
Replies: 45
Views: 71616
|
Forum: General CCS C Discussion Posted: Fri Jul 11, 2014 1:10 pm Subject: Having trouble using PIC16F1828 to communicate with ADS1255. |
Out of curiosity I tried writing to a different register (0x03)DRATE and was able to write a 0x55 and a 0xAA and return a 0x55 and 0xAA. So my thought is that when I'm writing to register (0x04)GPIO I ... |
Topic: Having trouble using PIC16F1828 to communicate with ADS1255. |
olet96
Replies: 45
Views: 71616
|
Forum: General CCS C Discussion Posted: Fri Jul 11, 2014 12:22 pm Subject: Having trouble using PIC16F1828 to communicate with ADS1255. |
I pieced together the read and write register codes from Ttelmah's original code to right to and then read back from registers on the ADC. However when im sending 0x55 and 0xAA to register 0x04 (GPIO) ... |
Topic: Having trouble using PIC16F1828 to communicate with ADS1255. |
olet96
Replies: 45
Views: 71616
|
Forum: General CCS C Discussion Posted: Thu Jul 10, 2014 10:22 am Subject: Having trouble using PIC16F1828 to communicate with ADS1255. |
Version 5.026 |
Topic: Having trouble using PIC16F1828 to communicate with ADS1255. |
olet96
Replies: 45
Views: 71616
|
Forum: General CCS C Discussion Posted: Thu Jul 10, 2014 9:42 am Subject: Having trouble using PIC16F1828 to communicate with ADS1255. |
I have changed my PIC VDD to 3.3v and also eliminated the Wheatstone Bridge by removing R4 and R5 and soldered wires to the inputs of the chip. I then was able to apply 0v and +3.3v to AIN0 and AIN1. ... |
Topic: Having trouble using PIC16F1828 to communicate with ADS1255. |
olet96
Replies: 45
Views: 71616
|
Forum: General CCS C Discussion Posted: Wed Jul 09, 2014 2:45 pm Subject: Having trouble using PIC16F1828 to communicate with ADS1255. |
The VDD on the PIC is 5 volts and the ADC SPI is 5 volt tolerant. As far as the data I was looking at in the serial monitor goes I was printing the result data not the result2 data and when I was refe ... |
Topic: Having trouble using PIC16F1828 to communicate with ADS1255. |
olet96
Replies: 45
Views: 71616
|
Forum: General CCS C Discussion Posted: Wed Jul 09, 2014 1:21 pm Subject: Having trouble using PIC16F1828 to communicate with ADS1255. |
Okay so I did an experiment using four different resistor values in place of my strain gauge to test the system and recorded all of the data in an excel sheet and when I ran the program I found the sa ... |
|