Author |
Message |
Topic: Can not start target PIC16F690 |
Trent___
Replies: 3
Views: 10093
|
Forum: General CCS C Discussion Posted: Fri Mar 14, 2008 12:05 pm Subject: Can not start target PIC16F690 |
I fell for it aswell.
The dev board Microchip have which offer's the Debug has some strange behaviour's too.
If you can use something else with debug ability do it. |
Topic: Translating ASM code to CCS code |
Trent___
Replies: 6
Views: 11019
|
Forum: General CCS C Discussion Posted: Fri Mar 14, 2008 12:00 pm Subject: Translating ASM code to CCS code |
I would love to but.........
Its not a five min job.
Might be best to stay with the ASM.
The errors you are getting are due to missing definitions.
What compiler are you using, and what fi ... |
Topic: Comparator PIC16F636 |
Trent___
Replies: 9
Views: 9012
|
Forum: General CCS C Discussion Posted: Tue Feb 26, 2008 4:46 am Subject: Comparator PIC16F636 |
This was more as test code so I could see something happening externally.
I have tried with the helper functions in CCS and directly addressing the registers. C1OUT does not change regardless of th ... |
Topic: Debugger Issue 4.065 and above. |
Trent___
Replies: 2
Views: 3588
|
Forum: General CCS C Discussion Posted: Sat Feb 23, 2008 6:25 am Subject: Debugger Issue 4.065 and above. |
Yes, noticed that after...... thanks all the same. |
Topic: Comparator PIC16F636 |
Trent___
Replies: 9
Views: 9012
|
Forum: General CCS C Discussion Posted: Fri Feb 22, 2008 11:32 am Subject: Comparator PIC16F636 |
The PIC16F639, is the PIC16F636 with the AFE added, so the Header files are the same.
That is my real program, less the stuff for other peripherals ect.
I didn't mean to waste anyone's time, so ... |
Topic: Comparator PIC16F636 |
Trent___
Replies: 9
Views: 9012
|
Forum: General CCS C Discussion Posted: Fri Feb 22, 2008 8:45 am Subject: Comparator PIC16F636 |
#include <16F639.h>
#device ICD=TRUE
#device ansi
#FUSES NOWDT //No Watch Dog Timer
#FUSES INTRC_IO
#FUSES NOPROTECT //Code not protected from reading ... |
Topic: Debugger Issue 4.065 and above. |
Trent___
Replies: 2
Views: 3588
|
Forum: General CCS C Discussion Posted: Fri Feb 22, 2008 8:33 am Subject: Debugger Issue 4.065 and above. |
Hi,
I have been using 4.064 on a PIC16F636 and PIC16F639 project with no issues associated with the debugger,
As of 4.065 and above, I get a message when opening the debugger asking If I have t ... |
Topic: Comparator PIC16F636 |
Trent___
Replies: 9
Views: 9012
|
Forum: General CCS C Discussion Posted: Thu Feb 21, 2008 9:25 am Subject: Comparator PIC16F636 |
sorry, that wouldn't have compiled.
Try;
setup_oscillator(OSC_4MHZ);
set_tris_a( 0xfb ); // was fe
setup_comparator(A1_VR_C1_VR);
setup_vref(VREF_HIGH|7);
while(TRUE)
{
if(C1OU ... |
Topic: Comparator PIC16F636 |
Trent___
Replies: 9
Views: 9012
|
Forum: General CCS C Discussion Posted: Tue Feb 19, 2008 11:57 am Subject: Comparator PIC16F636 |
Thanks for noticing the #bit C1OUT.
Here is the test program;
setup_oscillator(OSC_4MHZ);
set_tris_a( 0xfb ); // was fe
setup_comparator(A1_VR_C1_VR;
setup_vref(VREF_HIGH|7);
while(1)
{ ... |
Topic: Comparator PIC16F636 |
Trent___
Replies: 9
Views: 9012
|
Forum: General CCS C Discussion Posted: Mon Feb 18, 2008 6:09 am Subject: Comparator PIC16F636 |
Hi,
I am having issues with the Comparator Module.
The internal voltage reference appears to be a no go.
My register value's are;
#byte CMCON0_reg=getenv("SFR:CMCON0")
#byte VRC ... |
Topic: Flexible LCD driver for 20x4 LCDs |
Trent___
Replies: 33
Views: 422489
|
Forum: Code Library Posted: Thu Jun 21, 2007 7:54 am Subject: Tested with Powertip 4 x 20 LCD, CCS Compiler 4.041 |
Driver works well.
Tip for others, this should go with saying but it caught me....
Don't Multiplex your ISCP with any ports used by the LCD.
t. |
|