Author |
Message |
Topic: PWM for PIC18F45K20 |
elder
Replies: 4
Views: 8965
|
Forum: General CCS C Discussion Posted: Fri Aug 01, 2008 9:56 am Subject: PWM for PIC18F45K20 |
No longer a CCS problem so they prob won't want the other problem talked about here. I can tell you I just checked and ICD2 debug works on my 18F25K20 which is pretty much the same chip as yours. I'm ... |
Topic: PWM for PIC18F45K20 |
elder
Replies: 4
Views: 8965
|
Forum: General CCS C Discussion Posted: Fri Aug 01, 2008 9:16 am Subject: PWM for PIC18F45K20 |
OK, firstly for anyone who hasn't used a 'K' series PIC, he is talking about a zener on MCLR because the 'K' series require <9V on MCLR during programming.
Now, Pin B3 is not the default pin fo ... |
Topic: A little bit on optimisation |
elder
Replies: 3
Views: 38966
|
Forum: Code Library Posted: Tue May 06, 2008 6:47 am Subject: A little bit on optimisation |
Another alternative is to use write_bank() command and force the starting address of the array using #byte to begin at the start of a ram bank.
Not as good in your case obviously, but this retains ... |
Topic: Migrating to better PIC, concerned about CCS support |
elder
Replies: 6
Views: 7179
|
Forum: General CCS C Discussion Posted: Fri Feb 08, 2008 5:17 am Subject: Migrating to better PIC, concerned about CCS support |
forgot to log on :/
thanks guys
I take it the 18F CCS compiler is just as reliable for the (newer I think..) 18FxxJ series as other 18F parts? |
Topic: PIC16F690.. trying to code PWM auto shutdown on CCP1 |
elder
Replies: 1
Views: 4293
|
Forum: General CCS C Discussion Posted: Tue Nov 27, 2007 9:14 pm Subject: PIC16F690.. trying to code PWM auto shutdown on CCP1 |
OK problem solved by doing the register bits myself... heres the change in case anyone comes searching down the track...
I replaced this line from the above code:
setup_ccp1(CCP_PWM | CCP_SH ... |
Topic: PIC16F690.. trying to code PWM auto shutdown on CCP1 |
elder
Replies: 1
Views: 4293
|
Forum: General CCS C Discussion Posted: Tue Nov 27, 2007 8:19 pm Subject: PIC16F690.. trying to code PWM auto shutdown on CCP1 |
Hi guys, I'm trying to use the PWM feature on pic16f690 where the comparator module can be configured as feedback to shutdown the PWM.
Here is my test code...
-LED toggles as I change the voltage ... |
Topic: need an effecient buffer ('array') implementation (16F648A) |
elder
Replies: 5
Views: 9071
|
Forum: General CCS C Discussion Posted: Sat Jun 04, 2005 9:35 pm Subject: need an effecient buffer ('array') implementation (16F648A) |
thanks very much guys, thanks for the example PCM programmer thats exactly the type of thing i was hoping to do. |
Topic: need an effecient buffer ('array') implementation (16F648A) |
elder
Replies: 5
Views: 9071
|
Forum: General CCS C Discussion Posted: Sat Jun 04, 2005 2:28 am Subject: need an effecient buffer ('array') implementation (16F648A) |
forgot to sign in :/
Just thought i'd add why i'm doing this. My project is a basic IrDA protocol stack microcontroller. So its an infrared connectivity solution that any micrcontroller can communi ... |
Topic: help with interupt giving unexpected results (PIC = 16F648A) |
elder
Replies: 9
Views: 15045
|
Forum: General CCS C Discussion Posted: Mon Mar 28, 2005 7:24 pm Subject: help with interupt giving unexpected results (PIC = 16F648A) |
lol i found the problem, in getIrdaByte() u'll see i don't initialise ch to 0. Strangely the ch initialised as 0b00001000 when using the interupt method, but initialised as 0b00000000 when using the p ... |
Topic: help with interupt giving unexpected results (PIC = 16F648A) |
elder
Replies: 9
Views: 15045
|
Forum: General CCS C Discussion Posted: Mon Mar 28, 2005 6:56 pm Subject: help with interupt giving unexpected results (PIC = 16F648A) |
Thanks for that
I've spent another few hours on it, polling routine works all the way up to 200+ instruction delay, as i'd expect.
Now in disbelief that my code could possibly be giving me this ... |
Topic: help with interupt giving unexpected results (PIC = 16F648A) |
elder
Replies: 9
Views: 15045
|
Forum: General CCS C Discussion Posted: Mon Mar 28, 2005 2:53 am Subject: help with interupt giving unexpected results (PIC = 16F648A) |
no ideas?
Tommorow i'll to set up my detected() function to delay the same i'd expect from the interupt, this is around 20-25 instructions right? |
Topic: help with interupt giving unexpected results (PIC = 16F648A) |
elder
Replies: 9
Views: 15045
|
Forum: General CCS C Discussion Posted: Sat Mar 26, 2005 4:59 pm Subject: help with interupt giving unexpected results (PIC = 16F648A) |
11.0592mhz
timer1 is on a div by 8, so 104us calculates to 36 increments of timer1 i think it was. But i've tried increments around 36 to see the effect (which is why it was at 32 when i posted the c ... |
Topic: help with interupt giving unexpected results (PIC = 16F648A) |
elder
Replies: 9
Views: 15045
|
Forum: General CCS C Discussion Posted: Thu Mar 24, 2005 3:25 am Subject: help with interupt giving unexpected results (PIC = 16F648A) |
Well all has been going well up untill now, i am having problems now that i'm trying to use an interupt.
I'll explain what i'm doing first:
-I am receiving infrared data. It is IrDA encoded ('1 ... |
Topic: help getting started (16F648A) |
elder
Replies: 11
Views: 24126
|
Forum: General CCS C Discussion Posted: Thu Mar 17, 2005 6:38 pm Subject: help getting started (16F648A) |
Thanks heaps! LEDs are flashing |
Topic: help getting started (16F648A) |
elder
Replies: 11
Views: 24126
|
Forum: General CCS C Discussion Posted: Thu Mar 17, 2005 6:06 pm Subject: help getting started (16F648A) |
it says 2 - 5.5 voltage range, i'll be using 3V, but i have tried at 5V too |
|