Author |
Message |
Topic: Enable & Disable RS232 at runtime |
mfeinstein
Replies: 7
Views: 12375
|
Forum: General CCS C Discussion Posted: Thu Mar 21, 2013 9:32 pm Subject: Enable & Disable RS232 at runtime |
I am using a PIC18F2550 and this only works for me if I call a 'setup_uart(1);' after a 'setup_uart(0);'.
If I try like Ttelmah said, just placing a 'setup_uart(baud_rate_you_want);' it never turns ... |
Topic: Extended set extension and Indexed Addressing |
mfeinstein
Replies: 6
Views: 10170
|
Forum: General CCS C Discussion Posted: Thu Nov 15, 2012 9:35 am Subject: Extended set extension and Indexed Addressing |
Oh..now it makes sense ;)
Thanks Ttelmah |
Topic: Extended set extension and Indexed Addressing |
mfeinstein
Replies: 6
Views: 10170
|
Forum: General CCS C Discussion Posted: Wed Nov 14, 2012 9:21 pm Subject: Extended set extension and Indexed Addressing |
So why they give you the option to enable it, if the compiler doesnt support it? |
Topic: Extended set extension and Indexed Addressing |
mfeinstein
Replies: 6
Views: 10170
|
Forum: General CCS C Discussion Posted: Wed Nov 14, 2012 8:33 pm Subject: Extended set extension and Indexed Addressing |
Sorry PCM Programmer, I did not understand your answer...could you make it more clear please? |
Topic: Extended set extension and Indexed Addressing |
mfeinstein
Replies: 6
Views: 10170
|
Forum: General CCS C Discussion Posted: Wed Nov 14, 2012 7:30 pm Subject: Extended set extension and Indexed Addressing |
Hi,
I am wondering, are there any "pros and cons" regarding the "Extended set extension and Indexed Addressing"?
What are the reasons to leave it enabled or disabled?
Thanks! |
Topic: PIC Postscaler |
mfeinstein
Replies: 2
Views: 6286
|
Forum: General CCS C Discussion Posted: Thu Oct 04, 2012 6:56 pm Subject: PIC Postscaler |
I think I got myself the answer...if you are reading the timer and thus want more resolution in your timer, you can keep a good resolution and still only interrupt later, having this way a "simul ... |
Topic: PIC Postscaler |
mfeinstein
Replies: 2
Views: 6286
|
Forum: General CCS C Discussion Posted: Thu Oct 04, 2012 6:48 pm Subject: PIC Postscaler |
Hi guys, I am not understanding very well the difference between the Prescaler and the Postscaler, at the end, they seem to be the same thing for me.
For example, if I have a 2:1 Prescaler and a 2:1 ... |
Topic: How to clear completely an interrupt?? |
mfeinstein
Replies: 7
Views: 17848
|
Forum: General CCS C Discussion Posted: Fri Sep 07, 2012 1:02 pm Subject: How to clear completely an interrupt?? |
Ok! Thanks guys! |
Topic: How to clear completely an interrupt?? |
mfeinstein
Replies: 7
Views: 17848
|
Forum: General CCS C Discussion Posted: Fri Sep 07, 2012 2:00 am Subject: How to clear completely an interrupt?? |
Ttelmah, so I am assuming that a call like clear_interrupt(INT_TIMER0|INT_TIMER1|INT_TIMER2); wouldn't be valid also right?
When you say that "you must clear the hardware event" it's also v ... |
Topic: How to clear completely an interrupt?? |
mfeinstein
Replies: 7
Views: 17848
|
Forum: General CCS C Discussion Posted: Thu Sep 06, 2012 7:35 pm Subject: How to clear completely an interrupt?? |
Ttelmah, I am dealing with the case you specified as:
"The first, would be if you are 'enabling' an interrupt, which may have already triggered in the past, and you don't want the handler cal ... |
Topic: PIC18F2550 - Timer1 Interrupt causing error in Timer0 |
mfeinstein
Replies: 26
Views: 35467
|
Forum: General CCS C Discussion Posted: Thu Sep 06, 2012 11:25 am Subject: PIC18F2550 - Timer1 Interrupt causing error in Timer0 |
Guys, problem solved! Ttelmah was completely right and FvM gave me the final answer: The answer why you see a 250 ms interrupt lock instead of 1000 ms in your code. It's due to the fact that the compi ... |
Topic: PIC18F2550 - Timer1 Interrupt causing error in Timer0 |
mfeinstein
Replies: 26
Views: 35467
|
Forum: General CCS C Discussion Posted: Tue Sep 04, 2012 10:01 pm Subject: PIC18F2550 - Timer1 Interrupt causing error in Timer0 |
jeremiah, I dont "wish" to be rude, but it is kind of offensive to read stuff as "unless you supply the correct information.", " Your setup looks funky", "You're not ... |
Topic: PIC18F2550 - Timer1 Interrupt causing error in Timer0 |
mfeinstein
Replies: 26
Views: 35467
|
Forum: General CCS C Discussion Posted: Tue Sep 04, 2012 9:31 pm Subject: PIC18F2550 - Timer1 Interrupt causing error in Timer0 |
Sorry...I was in a hurry and thought about clock instead...
in any case, the crystal is written in the code as "20MHz oscillator input"...and I am sorry to be rude but "keeping track&q ... |
Topic: PIC18F2550 - Timer1 Interrupt causing error in Timer0 |
mfeinstein
Replies: 26
Views: 35467
|
Forum: General CCS C Discussion Posted: Tue Sep 04, 2012 9:09 pm Subject: PIC18F2550 - Timer1 Interrupt causing error in Timer0 |
jeremiah,
I am sure my FUSES are all right...the delays work fine, so does the timers (when there are no reentracy functions of course)...and I am using USB.
I get the 20MHz and divide it by 5 get ... |
Topic: PIC18F2550 - Timer1 Interrupt causing error in Timer0 |
mfeinstein
Replies: 26
Views: 35467
|
Forum: General CCS C Discussion Posted: Tue Sep 04, 2012 7:07 pm Subject: PIC18F2550 - Timer1 Interrupt causing error in Timer0 |
jeremiah...48MHz for sure...go to the datasheet and look at the oscillator part...in order to use the PLL to achieve 48MHz you have to assure 4MHz before ;) |
|