Author |
Message |
Topic: Trouble Driving NHD LCD Display |
ccowley
Replies: 7
Views: 14443
|
Forum: General CCS C Discussion Posted: Tue May 12, 2015 9:17 am Subject: Some good test code. |
Thanks for the reply, sorry I haven't gotten back to this sooner. I did end up going with the built in I2C and it worked well. Below is some working test code for anyone else that might be trying to s ... |
Topic: Trouble Driving NHD LCD Display |
ccowley
Replies: 7
Views: 14443
|
Forum: General CCS C Discussion Posted: Fri May 01, 2015 3:13 pm Subject: Could you post your successful code? |
Hi Brian,
I see in your post that you were able to get this display working! I and another guy have been playing around with the unit, but it seems to lock up after it sets table 1 (0x39). Did you ... |
Topic: Quick INT_RDA question |
ccowley
Replies: 3
Views: 6083
|
Forum: General CCS C Discussion Posted: Fri Oct 17, 2014 8:45 am Subject: Quick INT_RDA question |
Ahhh, thank you! I saw that in the 24HJ128GP504.h file, but I wasn't sure that was how it worked. Thanks for the clarification. I'm not sure why the Wizard didn't include that when the use of both por ... |
Topic: Quick INT_RDA question |
ccowley
Replies: 3
Views: 6083
|
Forum: General CCS C Discussion Posted: Fri Oct 17, 2014 7:53 am Subject: Quick INT_RDA question |
If you have a microcontroller (24EP512GU810 in this case) with two hardware uarts in operation, do they both receive data through #int_rda interupt? It looks that way to me, but I was wondering if tha ... |
Topic: ADC always reads 0 on PIC24EP512GU810 |
ccowley
Replies: 17
Views: 27653
|
Forum: General CCS C Discussion Posted: Fri Oct 03, 2014 12:30 pm Subject: Solved |
It is finally working!! Thanks to all who helped guide me!!
The final clue was Ttelmah's #device ADC=xx. AFter looking through the manual I found that #device ADC=10 changed the values in AD1CON1 t ... |
Topic: ADC always reads 0 on PIC24EP512GU810 |
ccowley
Replies: 17
Views: 27653
|
Forum: General CCS C Discussion Posted: Fri Oct 03, 2014 11:32 am Subject: ADC always reads 0 on PIC24EP512GU810 |
Yeah, that is one of the first things I did. I have confirmed I have 3.0 volts on the input pin of the microcontroller. |
Topic: ADC always reads 0 on PIC24EP512GU810 |
ccowley
Replies: 17
Views: 27653
|
Forum: General CCS C Discussion Posted: Fri Oct 03, 2014 10:35 am Subject: ADC always reads 0 on PIC24EP512GU810 |
Hi Ttelmah,
Thanks for great expanation of what the commands are doing! I really appreciate the help!
I have tried the settings you suggest and it still doesn't work. This morning I read the set ... |
Topic: ADC always reads 0 on PIC24EP512GU810 |
ccowley
Replies: 17
Views: 27653
|
Forum: General CCS C Discussion Posted: Thu Oct 02, 2014 4:02 pm Subject: ADC always reads 0 on PIC24EP512GU810 |
Hi Jeremiah,
I tried changing it to 20 and it is still not working.
Thanks for the suggestion! |
Topic: ADC always reads 0 on PIC24EP512GU810 |
ccowley
Replies: 17
Views: 27653
|
Forum: General CCS C Discussion Posted: Thu Oct 02, 2014 2:10 pm Subject: ADC always reads 0 on PIC24EP512GU810 |
Hi Jon,
Thanks for the info. I have seen mention of the channel, but since the Wizard didn't include it I didn't think I needed it. I tried channel 0 and that didn't work, so it looks like it's tim ... |
Topic: ADC always reads 0 on PIC24EP512GU810 |
ccowley
Replies: 17
Views: 27653
|
Forum: General CCS C Discussion Posted: Thu Oct 02, 2014 1:16 pm Subject: ADC always reads 0 on PIC24EP512GU810 |
Thanks for trying PCM!
I will keep trying to mess with it. I have wasted a couple of days trying to get this silly thing to read something, but just haven't got it yet. I have read ADC's on 8 bit ... |
Topic: ADC always reads 0 on PIC24EP512GU810 |
ccowley
Replies: 17
Views: 27653
|
Forum: General CCS C Discussion Posted: Thu Oct 02, 2014 12:50 pm Subject: ADC always reads 0 on PIC24EP512GU810 |
Thanks for input! I really appreciate it!
My initialization code now looks like this:
//********************** ADC ***********************************************
setup_adc_ports(sAN20 ... |
Topic: ADC always reads 0 on PIC24EP512GU810 |
ccowley
Replies: 17
Views: 27653
|
Forum: General CCS C Discussion Posted: Thu Oct 02, 2014 11:44 am Subject: ADC always reads 0 on PIC24EP512GU810 |
Well thanks for calling me "stupid" for asking a question! I certainly am in this area, which is why I'm asking the question.
First you tell me my program is incomplete and then t ... |
Topic: ADC always reads 0 on PIC24EP512GU810 |
ccowley
Replies: 17
Views: 27653
|
Forum: General CCS C Discussion Posted: Thu Oct 02, 2014 10:03 am Subject: ADC always reads 0 on PIC24EP512GU810 |
Hi,
I can't get the ADC working on this chip. I have searched for similar situations, but couldn't find a solution that helped me. Any help would be greatly appreciated.
I am using PCWHD Comiler ... |
Topic: Timer1 interrupt problem on 2424EP512GU810 |
ccowley
Replies: 3
Views: 5754
|
Forum: General CCS C Discussion Posted: Thu Jan 23, 2014 9:56 am Subject: Timer1 interrupt problem on 2424EP512GU810 |
Thank you! I had stared at and compared back and forth between the old 8 bit and the new code and for some reason I was not seeing it. You were right, it was the enable_interrupts(INT_TIMER1) I was ov ... |
Topic: Timer1 interrupt problem on 2424EP512GU810 |
ccowley
Replies: 3
Views: 5754
|
Forum: General CCS C Discussion Posted: Wed Jan 22, 2014 8:20 pm Subject: Timer1 interrupt problem on 2424EP512GU810 |
Does anyone know what I might be doing wrong? I can't seem to get the timer1 interrupt to do anything. My code receives data from a serial device I've called TAD. It also sends to it the main loop, bu ... |
|