Author |
Message |
Topic: gets() does not work proper in interrupt!!! |
ferkar
Replies: 3
Views: 5033
|
Forum: General CCS C Discussion Posted: Wed Jul 14, 2010 1:44 am Subject: gets() does not work proper in interrupt!!! |
strtok() command seperate the data
and chr(13) is terminating character.
therefore it should work i think... |
Topic: gets() does not work proper in interrupt!!! |
ferkar
Replies: 3
Views: 5033
|
Forum: General CCS C Discussion Posted: Wed Jul 14, 2010 1:07 am Subject: gets() does not work proper in interrupt!!! |
hi everbody,
i am trying to make communicate a 18f452 and PC(visual basic).
at PC side,(by using command button)
mscomm1.output = set+","set2+","+set3+","+";" ... |
Topic: sending string and decoding |
ferkar
Replies: 5
Views: 5482
|
Forum: General CCS C Discussion Posted: Mon Jan 04, 2010 4:11 pm Subject: sending string and decoding |
Thanks for help. However it is not the answer I want I think. I need to find a command or something like that is used for splitting the string and get the characters that I want. |
Topic: sending string and decoding |
ferkar
Replies: 5
Views: 5482
|
Forum: General CCS C Discussion Posted: Mon Jan 04, 2010 3:57 pm Subject: sending string and decoding |
hi everyone,
I am sending serial data to PIC via rs232 port using Visual Basic.
The data is like this "f123k456h789".
I get these data to 18f452 by using gets().
How can I separate ... |
Topic: lcd does not show the first char of the converted string |
ferkar
Replies: 1
Views: 2832
|
Forum: General CCS C Discussion Posted: Sun Jan 03, 2010 10:13 am Subject: lcd does not show the first char of the converted string |
Here is my codes. I get the string from serial channel and show it on 1st line of the LCD. It is ok. But when I try to convert it by using atol() then the first char is not shown. Could you help me?
... |
Topic: sending data from visual basic to 18f452 |
ferkar
Replies: 2
Views: 3740
|
Forum: General CCS C Discussion Posted: Mon Dec 28, 2009 3:13 pm Subject: sending data from visual basic to 18f452 |
hi everone
I am currently working on a communication project. I tested the written code by proteus and hyper terminal. It works properly.
However when I try to send more than one character to 18 ... |
Topic: is it possible to use a XTAL for driving two or more PICs |
ferkar
Replies: 12
Views: 11949
|
Forum: General CCS C Discussion Posted: Tue Feb 24, 2009 9:59 am Subject: xtall |
I have two 16f877 in my project.
One is responsible for driving a special motor SRM while the other one shows the set and feedback values by using LCD. The latter one has also an adding functions t ... |
Topic: from string to variables... |
ferkar
Replies: 2
Views: 3267
|
Forum: General CCS C Discussion Posted: Tue Feb 24, 2009 3:47 am Subject: string! |
"set" never changes
"f"never changes
the string contain numeric values "123" changes from"0000" to"9999"
the data format is always in the form ... |
Topic: is it possible to use a XTAL for driving two or more PICs |
ferkar
Replies: 12
Views: 11949
|
Forum: General CCS C Discussion Posted: Tue Feb 24, 2009 3:00 am Subject: is it possible to use a XTAL for driving two or more PICs |
i was wondering if it is possible to use a xtal for driving two more Pic
any idea? |
Topic: from string to variables... |
ferkar
Replies: 2
Views: 3267
|
Forum: General CCS C Discussion Posted: Tue Feb 24, 2009 2:58 am Subject: from string to variables... |
hi,
I have a basic string question.
How could I extract a data from a string?
For example:
"set123f214..." this string should be separated as "set","123" and & ... |
Topic: weird working: timer1!!! |
ferkar
Replies: 1
Views: 3494
|
Forum: General CCS C Discussion Posted: Thu Feb 19, 2009 1:18 am Subject: weird working: timer1!!! |
hi everyone.
I had a difficult situation that i could not comment on it.
I have some program codes that uses only LCD subfunction and transmitting some values through the serial port.
I am ... |
Topic: lcd causes lagging of synchronization! |
ferkar
Replies: 5
Views: 4101
|
Forum: General CCS C Discussion Posted: Fri Jan 23, 2009 1:13 am Subject: lcd causes lagging of synchronization! |
hi everyone,
I have been working on a special motor project namely, switched reluctance motors. I have s6 tator and 4 rotor poles. What I am doing is to read rotor position regularly by using RB i ... |
Topic: low frequency pwm output? |
ferkar
Replies: 1
Views: 3818
|
Forum: General CCS C Discussion Posted: Tue Nov 25, 2008 11:03 am Subject: low frequency pwm output? |
hi everyone,
I need to find away of performing low frequency output such as 10Hz or 100Hz (5 bits resolution is sufficient). My osc is 4Mhz.
thank you... |
Topic: write_eeprom(); |
ferkar
Replies: 3
Views: 5461
|
Forum: General CCS C Discussion Posted: Tue May 20, 2008 6:48 am Subject: write_eeprom(); |
i am using 16f877 at 20mhz.
i tried again and again but i saw nothing in the eeprom address' contents.
any idea?
where should i observe the eeprom register?
(i use winpic3.55 programmer)
best ... |
Topic: write_eeprom(); |
ferkar
Replies: 3
Views: 5461
|
Forum: General CCS C Discussion Posted: Mon May 19, 2008 10:59 am Subject: write_eeprom(); |
hi everyone,
ı think i get some information about eeprom and its functions in microcontroller.
i need to write datas to eeprom and then read it from where it was written.
my problem is i coul ... |
|