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 11 matches
CCS Forum Index
Author Message
  Topic: How to separate char?
matsuo

Replies: 20
Views: 20483

PostForum: General CCS C Discussion   Posted: Tue Apr 17, 2012 9:37 pm   Subject: How to separate char?
I know the discussion about malloc ended, but for reference add:

#include <string.h>
#include <stdlib.h>
#include <stdlibm.h>



it's work but i have some a problem how to r ...
  Topic: How to separate char?
matsuo

Replies: 20
Views: 20483

PostForum: General CCS C Discussion   Posted: Tue Apr 17, 2012 3:01 am   Subject: How to separate char?
I try this but it not work
#define BUFFER_SIZE 5
char array[BUFFER_SIZE];
char first[];
char second[];
int8 start=0;
int j=0;
int i=0;


#INT_RDA
void receive(&# ...
  Topic: How to separate char?
matsuo

Replies: 20
Views: 20483

PostForum: General CCS C Discussion   Posted: Mon Apr 16, 2012 11:34 pm   Subject: How to separate char?
you can use this function if the length is always the same.

char *strndup(char *str, size_t len)
{
register size_t n;
register char *dst;

n = strlen(str);
if ...
  Topic: How to separate char?
matsuo

Replies: 20
Views: 20483

PostForum: General CCS C Discussion   Posted: Mon Apr 16, 2012 8:36 am   Subject: How to separate char?
CCS sample program EX_STR shows you separate words.

Then you convert from ASCII to whatever.

Mike
This is output
10/200


STATISTICS:

You entered 1 word(s).

You entered 1 ...
  Topic: How to separate char?
matsuo

Replies: 20
Views: 20483

PostForum: General CCS C Discussion   Posted: Sun Apr 15, 2012 7:16 pm   Subject: How to separate char?
thanks you for advice...but how to used?
Very Happy
  Topic: How to separate char?
matsuo

Replies: 20
Views: 20483

PostForum: General CCS C Discussion   Posted: Sun Apr 15, 2012 9:41 am   Subject: How to separate char?
Hi
I have a problem about separate (split) word from rs232
Sample.
Getc=1/100-------> rs232
I need separate from ("/") and get
A=1
B=100
But how?
  Topic: PIC16F628A+74HC595+ULN2003A 7 segment
matsuo

Replies: 5
Views: 20881

PostForum: General CCS C Discussion   Posted: Tue Apr 10, 2012 1:47 am   Subject: PIC16F628A+74HC595+ULN2003A 7 segment
Actually. I need to make counter board as my picture
My condition

Target display (top) (setting)
Actual display (mid) (input)
Different display (bottom) (Target-Actual)

exp. target display ...
  Topic: PIC16F628A+74HC595+ULN2003A 7 segment
matsuo

Replies: 5
Views: 20881

PostForum: General CCS C Discussion   Posted: Mon Apr 09, 2012 7:31 am   Subject: PIC16F628A+74HC595+ULN2003A 7 segment
Thanks for your advice Embarassed
  Topic: PIC16F628A+74HC595+ULN2003A 7 segment
matsuo

Replies: 5
Views: 20881

PostForum: General CCS C Discussion   Posted: Mon Apr 09, 2012 3:54 am   Subject: PIC16F628A+74HC595+ULN2003A 7 segment
Hello sir.

I need to counter with 3 digit of 7 segment (12V, Anode) . I used 74HC595 + ULN2003 but i don't know how to fix ten, hundreds position
my circuit as below
http://img4.uplo ...
  Topic: How to increment numbers on 7-segment display ?
matsuo

Replies: 2
Views: 5981

PostForum: General CCS C Discussion   Posted: Tue Apr 03, 2012 12:56 am   Subject: How to increment numbers on 7-segment display ?
MAX7219 Serial 8 digit seven segment display driver.
http://www.ccsinfo.com/forum/viewtopic.php?t=38882

Thank you so much for code.
I have some question for ask you. I have three 7 segment. When ...
  Topic: Control pulse (PWM) by PIC16F877
matsuo

Replies: 1
Views: 5495

PostForum: General CCS C Discussion   Posted: Fri Feb 17, 2012 8:21 pm   Subject: Control pulse (PWM) by PIC16F877
Hello Sir.
I have been a problem about control pulse in PIC16F877 (CCS)

My problem
I need create PWM by CCP2 connect to CCP1 as your code (below code) and i need counter pulse (PWM) by CCP1.

...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group