Author |
Message |
Topic: PIC10F222 Programming issue with ICD - U40 |
robomaniac
Replies: 2
Views: 29710
|
Forum: CCS ICD / Mach X / Load-n-Go Posted: Sun Jul 11, 2010 12:09 pm Subject: PIC10F222 Programming issue with ICD - U40 |
It is a hardware problem, your code compiles and runs on my 10F222 breadboard setup.
My MCLR is 1K resistor
I have the SOT23 6 pin version so pin 1,3 and 6 are connected to the ICD. |
Topic: Software Serial Similar to Arduino |
robomaniac
Replies: 4
Views: 7150
|
Forum: General CCS C Discussion Posted: Wed Mar 24, 2010 7:04 pm Subject: Software Serial Similar to Arduino |
#use rs232(baud=9600,rcv=PIN_C7,xmit=PIN_C6)
In that case PIN_C7 and C6 are the real serial hardware pins. Choose the one you want. |
Topic: Capacitive sensing module built-in function not working |
robomaniac
Replies: 5
Views: 22609
|
Forum: General CCS C Discussion Posted: Wed Mar 24, 2010 10:13 am Subject: Capacitive sensing module built-in function not working |
Hello Ttelmah,
I never use CCS IDE, so I tried and change that bit so my module is turn ON. It compiled OK.
I was not able to program the circuit with my ICD3 using CCS IDE. I get DDL version mis- ... |
Topic: WDT not working |
robomaniac
Replies: 18
Views: 20649
|
Forum: General CCS C Discussion Posted: Wed Mar 24, 2010 12:14 am Subject: WDT not working |
Ok then try something very small for the WTD timer:
like setup_wdt(WDT_18MS);
If that does not work, then there is probably something in the datasheet saying something smart. |
Topic: help in output file (.h) |
robomaniac
Replies: 3
Views: 4853
|
Forum: General CCS C Discussion Posted: Wed Mar 24, 2010 12:10 am Subject: help in output file (.h) |
In MPLAB IDE, when you can compile your code, the .hex file is generated directly in your project root directory. In the same place where your .c file is.
You can also use F3 in windows explorer an ... |
Topic: WDT not working |
robomaniac
Replies: 18
Views: 20649
|
Forum: General CCS C Discussion Posted: Wed Mar 24, 2010 12:01 am Subject: WDT not working |
Yes have that line. refer my code, #fuses wdt is there in first line.
I was just saying remove #fuses to prove to myself that the WDT was working. I was not refering at your code and telling you w ... |
Topic: Capacitive sensing module built-in function not working |
robomaniac
Replies: 5
Views: 22609
|
Forum: General CCS C Discussion Posted: Tue Mar 23, 2010 11:33 pm Subject: Capacitive sensing module built-in function not working |
V4.105 did not help either!
I am also testing only this
#use touchpad(scantime=32ms,threshold=6,PIN_A5='C')
and tried different pins and getting the same error. |
Topic: WDT not working |
robomaniac
Replies: 18
Views: 20649
|
Forum: General CCS C Discussion Posted: Tue Mar 23, 2010 11:22 pm Subject: WDT not working |
Got the Watch dog working!!
#include <16lf722.h>
#fuses INTRC_IO
#FUSES WDT //Watch Dog Timer
#use delay(INTERNAL=8Mhz)
#define GREEN_LED PIN_C2
void ... |
Topic: WDT not working |
robomaniac
Replies: 18
Views: 20649
|
Forum: General CCS C Discussion Posted: Tue Mar 23, 2010 11:07 pm Subject: WDT not working |
When you use
set_tris_b(0x00 );
you need
#use fast_io(B)
http://www.ccsinfo.com/downloads/PCDReferenceManual.pdf
page 155 of PDF
This directive affects how the compiler will ... |
Topic: WDT not working |
robomaniac
Replies: 18
Views: 20649
|
Forum: General CCS C Discussion Posted: Tue Mar 23, 2010 8:07 pm Subject: WDT not working |
void main()
{
setup_wdt(WDT_2304MS);
output_a = 0xFF;
delay_ms(1000);
output_a=0x00;
while();
}
That will make the LED blink once since the ... |
Topic: Problem with Motor Pwm Module commands on PCWHD V.4.104 |
robomaniac
Replies: 3
Views: 8075
|
Forum: General CCS C Discussion Posted: Tue Mar 23, 2010 7:52 pm Subject: Problem with Motor Pwm Module commands on PCWHD V.4.104 |
People on this forum will ask, send the complete code.
Unknown identifier means it does not understand something. That thing can be 1 or more then one parameter.
open 33FJ128MC202.H file
MPWM ... |
Topic: Capacitive sensing module built-in function not working |
robomaniac
Replies: 5
Views: 22609
|
Forum: General CCS C Discussion Posted: Tue Mar 23, 2010 7:38 pm Subject: Capacitive sensing module built-in function not working |
This thread talks about mTouch capacitive sensing module (CSM) built in function by CCS not working with a specific PIC.
functions used are:
touchpad_state( )
touchpad_getc( )
... |
Topic: PIC18F1320 Coding to measure power factor |
robomaniac
Replies: 1
Views: 3163
|
Forum: General CCS C Discussion Posted: Fri Jul 17, 2009 12:42 pm Subject: PIC18F1320 Coding to measure power factor |
Your in the UK, so it is 220V and 50Hz
Check this website
http://jarv.org/pwrmon.shtml
Here is a good pdf
http://www.xantrex.com/web/id/341/DocServe.aspx
and here is a example
http://ope ... |
Topic: Dual H-Bridge motor control |
robomaniac
Replies: 3
Views: 4223
|
Forum: General CCS C Discussion Posted: Fri Jul 17, 2009 7:55 am Subject: Dual H-Bridge motor control |
yes that is why you have PWMA and PWMB on your chip.
Depending of your PIC, you can have 2 PWM on the PIC
CCP1 and CCP2
I use 18F4580 for my robot sumo and I have 2 PWM.
Check the datashee ... |
Topic: Problem ex_fat.c unable to create file/directory on MMC card |
robomaniac
Replies: 11
Views: 19766
|
Forum: General CCS C Discussion Posted: Fri Jul 17, 2009 6:39 am Subject: Problem ex_fat.c unable to create file/directory on MMC card |
hello,
After reading the fat.c file I realise that 8Mb was not there!
And I did not define FAT32 in my code. I will try that.
I will play with my 2Go instead.
Thanks! |
|