Author |
Message |
Topic: trouble getting 16 bits from timer0 and timer1 |
tatokash
Replies: 11
Views: 11394
|
Forum: General CCS C Discussion Posted: Mon Sep 10, 2007 6:36 am Subject: trouble getting 16 bits from timer0 and timer1 |
All,
Clearing that bit helped in all three scenarios. I guess I had assumed the compiler would do that automatically if I used the built in functions. Doh!
Ttelmah, how do I tell if the die ... |
Topic: trouble getting 16 bits from timer0 and timer1 |
tatokash
Replies: 11
Views: 11394
|
Forum: General CCS C Discussion Posted: Fri Sep 07, 2007 1:02 pm Subject: trouble getting 16 bits from timer0 and timer1 |
Sorry.
If I could get away without the USB stuff it'd be shorter.
Any thoughts? |
Topic: trouble getting 16 bits from timer0 and timer1 |
tatokash
Replies: 11
Views: 11394
|
Forum: General CCS C Discussion Posted: Fri Sep 07, 2007 12:24 pm Subject: trouble getting 16 bits from timer0 and timer1 |
Compiler version is 4.040.
I have managed to get timer 0 to work. Still not sure why timer 1 doesn't work.
The end result will eventually be a DC servo controller. Timers 0 and 1 are the e ... |
Topic: trouble getting 16 bits from timer0 and timer1 |
tatokash
Replies: 11
Views: 11394
|
Forum: General CCS C Discussion Posted: Thu Sep 06, 2007 1:36 pm Subject: trouble getting 16 bits from timer0 and timer1 |
With PCWH v. 4.04, I'm having trouble putting the full 16 bits from Timer 1 into a string using sprintf. Processor is a PIC18F2550. I'm trying to pass the string via USB packet to a PC.
int ... |
Topic: PIC18F2550 USB and clock configuration |
tatokash
Replies: 2
Views: 9521
|
Forum: General CCS C Discussion Posted: Tue Aug 28, 2007 12:22 pm Subject: PIC18F2550 USB and clock configuration |
One more time... with feeling.
Why does this not work with a 12MHz crystal:
#fuses HSPLL,NOWDT,NOPROTECT,NOLVP,NODEBUG,USBDIV,PLL3,CPUDIV1,VREGEN,NOBROWNOUT,MCLR
But this works with a 20MHz c ... |
Topic: I2C routine giving FF's or lockin UP? |
tatokash
Replies: 6
Views: 7676
|
Forum: General CCS C Discussion Posted: Wed Aug 08, 2007 9:30 am Subject: Re: I2C routine giving FF's or lockin UP? |
In a past project I used the watch dog timer to recover from the I2C lockup that occurs int the PIC16F818/F819.
I used interrupts to catch an SSP interrupt and looked for I2C events. I checked th ... |
|