CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 38 matches
CCS Forum Index
Author Message
  Topic: 12F675 Osc Calibration Reg with ICD-U40
MarcosAmbrose

Replies: 0
Views: 18316

PostForum: CCS ICD / Mach X / Load-n-Go   Posted: Wed Apr 15, 2009 10:27 pm   Subject: 12F675 Osc Calibration Reg with ICD-U40
Hi Guys,
I'm using my ICD-U40 to program 12F675's. My question is, Do I have to take any step in the IDC software to ensure I don't erase the oscillator calibration register or will the ICD software ...
  Topic: Passing PINs to functions
MarcosAmbrose

Replies: 9
Views: 13784

PostForum: General CCS C Discussion   Posted: Wed Dec 03, 2008 3:57 pm   Subject: Passing PINs to functions
That's true for version 3. Version 4 allows variable parameters for the i/o functions.
Bugga - Now I have a excuse to upgrade my compiler Smile
  Topic: Passing PINs to functions
MarcosAmbrose

Replies: 9
Views: 13784

PostForum: General CCS C Discussion   Posted: Wed Dec 03, 2008 3:44 pm   Subject: Passing PINs to functions
Use a switch/case statement in your function.

void MyFunction(int16 PinToUse)
{
switch(PinToUse)
{
case PIN_B0:
output_high(PIN_B0); ...
  Topic: Help me for correcting a code
MarcosAmbrose

Replies: 2
Views: 3320

PostForum: General CCS C Discussion   Posted: Mon Dec 01, 2008 3:28 pm   Subject: Help me for correcting a code
As a C programmer, you should be lined up in front of a firing squad and shot for using "Goto" statements Very Happy

Never try to jump unconditionally out of loops. This is called "Spa ...
  Topic: RS232 and an LED
MarcosAmbrose

Replies: 1
Views: 3326

PostForum: General CCS C Discussion   Posted: Thu Nov 20, 2008 8:26 pm   Subject: RS232 and an LED
Try this


void main()
{
while(TRUE)
{
if(kbhit())
{
if(getc()=='a')
{
...
  Topic: redirecting input on output with PIC16F877A
MarcosAmbrose

Replies: 1
Views: 2823

PostForum: General CCS C Discussion   Posted: Fri Nov 14, 2008 11:15 pm   Subject: redirecting input on output with PIC16F877A
Hi magestik,
Your ISR routine is taking 400mS to complete, so any changes in the Data and clock pins that you're trying to re-direct will get overlooked until the ISR routine has finished.

It has ...
  Topic: I need String replace for print Turkish characters
MarcosAmbrose

Replies: 1
Views: 4090

PostForum: General CCS C Discussion   Posted: Sun Nov 09, 2008 7:51 pm   Subject: Re: I need String replace for print Turkish characters
How could I check string and replace some characters for Turkish language on CCS.
Use printf as you normally would, but pump the characters through a function that checks each character one at a time ...
  Topic: opinions about my PIC to PIC Code
MarcosAmbrose

Replies: 24
Views: 20883

PostForum: General CCS C Discussion   Posted: Thu Nov 06, 2008 6:44 pm   Subject: Re: opinions about my PIC to PIC Code
Hi Marcos,
Cool, Glad you got it working. Don't forget to include some sort of checksum byte in your packet to guard against data transmission errors. A checksum byte can be as simple as just ADDing ...
  Topic: opinions about my PIC to PIC Code
MarcosAmbrose

Replies: 24
Views: 20883

PostForum: General CCS C Discussion   Posted: Thu Nov 06, 2008 3:02 pm   Subject: Re: opinions about my PIC to PIC Code
I was largely inspired by MarcosAmbrose code (in page 2 (vittorio topic))
Hi Friday, I'm happy to see I have "Inspired" someone. Did you try to implement the routines that I posted in the v ...
  Topic: RFID Detector
MarcosAmbrose

Replies: 3
Views: 5124

PostForum: General CCS C Discussion   Posted: Wed Nov 05, 2008 9:49 pm   Subject: RFID Detector
Hi pabloko SP,
It would be easier to find a tag reader that is compatible with your cards then interface your microcontroller to the tag reader.
  Topic: Ansi escape code to hide the cursor
MarcosAmbrose

Replies: 0
Views: 9517

PostForum: General CCS C Discussion   Posted: Tue Oct 28, 2008 11:05 pm   Subject: Ansi escape code to hide the cursor
I'm trying to send an ANSI escape sequence to hide the cursor on my terminal so you don't see it dancing around the screen, but I just can't seem to get it to work. My other ANSI related functions se ...
  Topic: question about the RS232 frame between two pics
MarcosAmbrose

Replies: 16
Views: 16492

PostForum: General CCS C Discussion   Posted: Fri Oct 24, 2008 6:08 pm   Subject: question about the RS232 frame between two pics
Yeah sorry about that. Like I said I hadn't checked it for errors. Both lines where I save to the RXBuffer should read
RXBuffer[BufferIndex++] = RXbyte;
  Topic: question about the RS232 frame between two pics
MarcosAmbrose

Replies: 16
Views: 16492

PostForum: General CCS C Discussion   Posted: Thu Oct 23, 2008 6:45 pm   Subject: question about the RS232 frame between two pics


Ok Vittorio, here's the "Nuts N Bolts". I have edited my routines a bit to make them more presentable. I haven't checked it for any errors, but you should still get the general idea. - ...
  Topic: question about the RS232 frame between two pics
MarcosAmbrose

Replies: 16
Views: 16492

PostForum: General CCS C Discussion   Posted: Thu Oct 23, 2008 3:28 pm   Subject: question about the RS232 frame between two pics
-My variables are not written in the hex base, if I have to send them by the putc() or bputc() functions, will you have to do conversions ?Yes, If you're going to express your variables in decimal you ...
  Topic: question about the RS232 frame between two pics
MarcosAmbrose

Replies: 16
Views: 16492

PostForum: General CCS C Discussion   Posted: Wed Oct 22, 2008 8:45 pm   Subject: question about the RS232 frame between two pics

Any suggestion is welcome.

Hi Vittorio,
I've been following this thread and I thought you might be interested in the scheme I use whenever I'm sending data in framed packets. The scheme works li ...
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group