Author |
Message |
Topic: ADIS16350 Driver Creation |
Armer175
Replies: 10
Views: 11412
|
Forum: General CCS C Discussion Posted: Fri Mar 13, 2009 7:39 am Subject: ADIS16350 Driver Creation |
So I started back up this morning and I can't dulplicate the problem. Putty has been running for an hour and no false readings. I even removed the delays with no problems. The one strange thing is ... |
Topic: ADIS16350 Driver Creation |
Armer175
Replies: 10
Views: 11412
|
Forum: General CCS C Discussion Posted: Thu Mar 12, 2009 9:55 am Subject: ADIS16350 Driver Creation |
Ok I was able to get the code tested out. FvM your code worked but but the voltage was off a little bit. Plus I modified it a little.....as shown below. This gave a more accurate reading within 70m ... |
Topic: help needed on PIC16F877A !!!! |
Armer175
Replies: 3
Views: 3470
|
Forum: General CCS C Discussion Posted: Thu Mar 12, 2009 7:20 am Subject: help needed on PIC16F877A !!!! |
You need to search around the forum and then post a program you at least attempted to start by yourself. I know there are plenty of examples of A2D too.
From what I found here most of the people ... |
Topic: ADIS16350 Driver Creation |
Armer175
Replies: 10
Views: 11412
|
Forum: General CCS C Discussion Posted: Thu Mar 12, 2009 7:06 am Subject: ADIS16350 Driver Creation |
Thanks FvM and Sydney for your feedback. I will try your reading suggestion today. I only need to clear the upper 4 bits for the voltage reading since it is a 12 bit number.
My code compiled fi ... |
Topic: ADIS16350 Driver Creation |
Armer175
Replies: 10
Views: 11412
|
Forum: General CCS C Discussion Posted: Wed Mar 11, 2009 5:56 pm Subject: ADIS16350 Driver Creation |
Here is the test Program I created which had no errors when compiled. I did have lots of warnings for all the variables I havent used yet.
#include <18F8723.h>
#device adc=12
#F ... |
Topic: ADIS16350 Driver Creation |
Armer175
Replies: 10
Views: 11412
|
Forum: General CCS C Discussion Posted: Wed Mar 11, 2009 5:02 pm Subject: ADIS16350 Driver Creation |
Ok I am trying to read and write to an ADIS16350 accelerometer/gyro. I was having some problems getting the data and was advised to make a driver for it. I haven't programmed C in a long time so ple ... |
Topic: PIC18F8723 Setup |
Armer175
Replies: 10
Views: 12324
|
Forum: General CCS C Discussion Posted: Wed Mar 11, 2009 3:22 pm Subject: PIC18F8723 Setup |
Is there an advantage to using a driver file other than making the main look cleaner? I was going to create seperate functions outside the main.
I haven't programmed in C for a long time so its ... |
Topic: PIC18F8723 Setup |
Armer175
Replies: 10
Views: 12324
|
Forum: General CCS C Discussion Posted: Wed Mar 11, 2009 12:47 pm Subject: New Problem |
I am now having some problems reading from the spi device(ADIS16350)
datasheet:
http://www.analog.com/static/imported-files/data_sheets/ADIS16350_16355.pdf
I want to read in the "supply out& ... |
Topic: PIC18F8723 Setup |
Armer175
Replies: 10
Views: 12324
|
Forum: General CCS C Discussion Posted: Tue Mar 10, 2009 7:33 pm Subject: PIC18F8723 Setup |
I did connect some servos to the controller later and it was working correctly. Just goes along with what you were saying about the W/R bit. Thanks again PCM Programmer |
Topic: PIC18F8723 Setup |
Armer175
Replies: 10
Views: 12324
|
Forum: General CCS C Discussion Posted: Tue Mar 10, 2009 12:02 pm Subject: PIC18F8723 Setup |
#define SD21 0xC2 // SD21 I2C Address
int16 servo1;
int8 servo1LowByte;
int8 servo1HighByte;
int8 Speed;
void main()
{
setup_adc_ports(NO_ANALOGS|VSS_VDD);
setup_ ... |
Topic: PIC18F8723 Setup |
Armer175
Replies: 10
Views: 12324
|
Forum: General CCS C Discussion Posted: Tue Mar 10, 2009 10:33 am Subject: PIC18F8723 Setup |
Thanks works great now! |
Topic: PIC18F8723 Setup |
Armer175
Replies: 10
Views: 12324
|
Forum: General CCS C Discussion Posted: Tue Mar 10, 2009 10:07 am Subject: PIC18F8723 Setup |
OK, I am starting a new project. I will be using two different SPI device on SPI2 and I2C device(which is on SPI1 PINs). I also will be reading in data from GPS (UART1) and using UART2 as a debug o ... |
|