Author |
Message |
Topic: need help with crystal Fuses setting for 18f26k22 |
zeeshan ahmed
Replies: 1
Views: 4008
|
Forum: General CCS C Discussion Posted: Thu Feb 16, 2012 2:08 am Subject: Problem Solved |
I use the fuse NOPLLEN ... And the problem solved.  |
Topic: need help with crystal Fuses setting for 18f26k22 |
zeeshan ahmed
Replies: 1
Views: 4008
|
Forum: General CCS C Discussion Posted: Thu Feb 16, 2012 1:27 am Subject: need help with crystal Fuses setting for 18f26k22 |
Hi all,
I am stuck in a problem, I think problem arised due to wrong fuse setting or wrong crystal oscillator. I want to use 20Mhz or 25 Mhz crystal oscillator. When i compiled the program, and teste ... |
Topic: Problem in reading two channels in MAX1416 adc |
zeeshan ahmed
Replies: 7
Views: 14339
|
Forum: General CCS C Discussion Posted: Wed Jan 04, 2012 11:40 pm Subject: Wrong data |
Thanks alot PCM Programmer and Temtronic for the reply.
I modified the above program as you suggested, but still the result is not correct, e.g. if Voltage on channel1 analog pin is 3.3 V, then ADC s ... |
Topic: Problem in reading two channels in MAX1416 adc |
zeeshan ahmed
Replies: 7
Views: 14339
|
Forum: General CCS C Discussion Posted: Tue Jan 03, 2012 2:19 am Subject: Problem is still there |
Thank U PCM Programmer and Temtronic,
here is the datasheet of adc
http://datasheets.maxim-ic.com/en/ds/MAX1415-MAX1416.pdf
I have modified the program, i just removed the ISR, below is the sim ... |
Topic: Problem in reading two channels in MAX1416 adc |
zeeshan ahmed
Replies: 7
Views: 14339
|
Forum: General CCS C Discussion Posted: Sat Dec 31, 2011 2:06 am Subject: Problem in reading two channels in MAX1416 adc |
Hi all, Happy new year,
In continuation of previous thread
http://www.ccsinfo.com/forum/viewtopic.php?t=46768
Now i am able to read Channel 1 data successfully,
I am using the following code
... |
Topic: need help regarding SPI ADC and PIC. |
zeeshan ahmed
Replies: 12
Views: 17531
|
Forum: General CCS C Discussion Posted: Wed Nov 23, 2011 12:27 am Subject: Problem Solved |
Many Thanks "Ttelmah"
Controlling the CS line solved the problem. Now I am able to read data through ADC. I also reversed the variables. I am bit banging the spi port to get the data in.
... |
Topic: need help regarding SPI ADC and PIC. |
zeeshan ahmed
Replies: 12
Views: 17531
|
Forum: General CCS C Discussion Posted: Sat Nov 19, 2011 1:47 am Subject: Still facing problem |
Thank You Ttelmah...
I did what you told me. But the problem is still there.
I noticed one thing that, whenever I try to read 8 bit register e.g clock register, controller works perfect, ... |
Topic: need help regarding SPI ADC and PIC. |
zeeshan ahmed
Replies: 12
Views: 17531
|
Forum: General CCS C Discussion Posted: Fri Nov 18, 2011 5:05 am Subject: need help regarding SPI ADC and PIC. |
Thanks Ttelmah ...
I have done all the basic tests. PIC is doing Good. I found no problem in hardware. Serial Port test & I/O operation of Spi port is also successful. |
Topic: need help regarding SPI ADC and PIC. |
zeeshan ahmed
Replies: 12
Views: 17531
|
Forum: General CCS C Discussion Posted: Fri Nov 18, 2011 4:58 am Subject: need help regarding SPI ADC and PIC. |
I found another problem. I observed using an O scope, that ADC'c Dout line remains in High impedance state all the time. While ADC's CS pin is tied to ground.
Secondly Drdy line continously toggli ... |
Topic: need help regarding SPI ADC and PIC. |
zeeshan ahmed
Replies: 12
Views: 17531
|
Forum: General CCS C Discussion Posted: Thu Nov 17, 2011 11:16 am Subject: SPI Clock problem |
Thanks Ttelmah for your time.
I made the changes in the code suggested by you.
The problem is still there, still i am getting zero. I checked the data and clock lines with an O scope. but there ... |
Topic: need help regarding SPI ADC and PIC. |
zeeshan ahmed
Replies: 12
Views: 17531
|
Forum: General CCS C Discussion Posted: Thu Nov 17, 2011 2:36 am Subject: need help regarding SPI ADC and PIC. |
Hi all, I am new to CCS, I want help regarding interfacing and programming SPI ADC (MAX1416) . I am using pic18f252 micro. CCS version is 4.124
this is what i am doing to configure adc.
#includ ... |
Topic: Help needed regarding #define function/directive |
zeeshan ahmed
Replies: 2
Views: 6054
|
Forum: General CCS C Discussion Posted: Tue Sep 06, 2011 5:59 am Subject: Help needed regarding #define function/directive |
Many thanks for your suggestions, and enlightening me about #define directive, now the code is working correctly
Again thanks for your time. |
Topic: Help needed regarding #define function/directive |
zeeshan ahmed
Replies: 2
Views: 6054
|
Forum: General CCS C Discussion Posted: Mon Sep 05, 2011 5:17 am Subject: Help needed regarding #define function/directive |
Greetings,
Hi all, I am working on a project, here i got a problem in #define function.
Compiler is giving warning message i.e: "Duplicate defines".
Because of this i think my code is not ... |
Topic: Help needed regarding AT commands Response |
zeeshan ahmed
Replies: 6
Views: 11257
|
Forum: General CCS C Discussion Posted: Sat Jun 04, 2011 5:22 am Subject: Help needed regarding AT commands Response |
Hi all,
I am working on a project , in which i have to use GSM MODEM, i have successfully tested GSM MODEM with PIC18f252 and its working OK. Now WHAT I WANT TO DO IS TO COMPARE AT COMMAND'S RESPONSE ... |
Topic: need help with i2c communication |
zeeshan ahmed
Replies: 1
Views: 7013
|
Forum: General CCS C Discussion Posted: Thu Mar 31, 2011 4:16 am Subject: need help with i2c communication |
Greetings,
I'm working on i2c communication between 2 PIC (18f252), one is master other is slave. My problem is that when I send 2 or more data bytes from master, the slave pic receives only last byt ... |
|