Author |
Message |
Topic: Could use help figuring this one out. |
plehman
Replies: 6
Views: 8991
|
Forum: General CCS C Discussion Posted: Mon Jan 09, 2006 6:20 am Subject: Could use help figuring this one out. |
3.221 |
Topic: Could use help figuring this one out. |
plehman
Replies: 6
Views: 8991
|
Forum: General CCS C Discussion Posted: Fri Jan 06, 2006 12:45 pm Subject: Could use help figuring this one out. |
Sorry.
Remove the T2_INTERNAL constant. The correct setup_timer_2() calls should be :
setup_timer_2(T2_DISABLED|T2_DIV_BY_1,29,1);
and
setup_timer_2(T2_DIV_BY_1,29,1); |
Topic: Could use help figuring this one out. |
plehman
Replies: 6
Views: 8991
|
Forum: General CCS C Discussion Posted: Fri Jan 06, 2006 8:29 am Subject: Could use help figuring this one out. |
I'm trying to get the PWMs working with Timer4 on a PIC18F6720 instead of Timer2. Here's my problem...
If I use the following code snippet, I cannot get PWM5 to run
setup_timer_0(RTCC_INTE ... |
Topic: LCD_PUTC command |
plehman
Replies: 2
Views: 9615
|
Forum: General CCS C Discussion Posted: Sun Mar 14, 2004 9:30 pm Subject: LCD_PUTC command |
To make the cursor show up on HD44780 or compatible LCD modules, I used
lcd_send_byte(0, 0x0F); // Send Command to Show Cursor
To hide the cursor, use the following:
lcd_send_by ... |
Topic: spi_question |
plehman
Replies: 7
Views: 16152
|
Forum: General CCS C Discussion Posted: Tue Mar 09, 2004 9:46 pm Subject: spi_question |
Not quite sure what a character syntax error is, but the definitions you made for the channels in binary look a little off. I was under the impression that binary numbers were written like 0b11010101 ... |
Topic: Turning on and off RS-232 Transmit Pin with #use |
plehman
Replies: 2
Views: 11749
|
Forum: General CCS C Discussion Posted: Sat Mar 06, 2004 7:26 am Subject: Turning on and off RS-232 Transmit Pin with #use |
Thanks for responding.
It tried what you said, by adding those lines, and putting a tx_on() before my transmission routine and tx_break() at the end of the routine as well as in main(), but it didn ... |
Topic: Turning on and off RS-232 Transmit Pin with #use |
plehman
Replies: 2
Views: 11749
|
Forum: General CCS C Discussion Posted: Fri Mar 05, 2004 6:43 pm Subject: Turning on and off RS-232 Transmit Pin with #use |
I have a big problem that hopefuly someone here can help with. I am using the 3.185 compiler targetting a PIC18F452. In the main header file for my application, I have the following line:
#use rs ... |
Topic: IEEE to Microchip 32-bit Float Conversion; vice-versa: How? |
plehman
Replies: 8
Views: 27967
|
Forum: General CCS C Discussion Posted: Wed Feb 25, 2004 9:21 pm Subject: Here's how I did it |
In case you don't know, the only real difference between IEEE-754 and the Microchip floating point numbers is where the sign bit resides. Here is some code I wrote to do the conversion, though it [spam] ... |
Topic: General clock, timing, and interval question |
plehman
Replies: 4
Views: 12893
|
Forum: General CCS C Discussion Posted: Tue Feb 24, 2004 11:54 am Subject: General clock, timing, and interval question |
It might help to know what type of timing error you can tolerate. If you are reading every hour for 1000 hours, then a couple of seconds either way may not make a difference. If that's the key, you ... |
Topic: float to int32 typecasting |
plehman
Replies: 2
Views: 13541
|
Forum: General CCS C Discussion Posted: Sun Feb 22, 2004 2:51 pm Subject: float to int32 typecasting |
I finally seem to have found a solution to my problem. It seems if I add a typecast for RawValue to a float in the third line from the end, the calculation for Correct.fValue. This line would then l ... |
Topic: Max3100 Programming |
plehman
Replies: 4
Views: 14718
|
Forum: General CCS C Discussion Posted: Sat Feb 21, 2004 10:48 am Subject: Max3100 Programming |
If I understand correctly, you want to configure the MAX3100. I've used the MAX3110 before (close to the same part).
Note that spi_write() only uses 8-bit ints, so you need multiple writes to get ... |
Topic: float to int32 typecasting |
plehman
Replies: 2
Views: 13541
|
Forum: General CCS C Discussion Posted: Wed Feb 18, 2004 4:57 pm Subject: float to int32 typecasting |
Hello,
I am using the 3.185 compiler, and have run into a small problem with a function I have written. The problematic function, called correct_adc_value(), is given below:
int32 correct_adc_v ... |
|