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 50 matches
CCS Forum Index
Author Message
  Topic: IO problems ?
small_chick

Replies: 5
Views: 8022

PostForum: General CCS C Discussion   Posted: Sat Dec 22, 2012 2:46 am   Subject: IO problems ?
thanks everybody!
now. it's well - done! i think i've got a big mistake about LATx and PORTx ! Very Happy
  Topic: IO problems ?
small_chick

Replies: 5
Views: 8022

PostForum: General CCS C Discussion   Posted: Fri Dec 21, 2012 10:29 pm   Subject: IO problems ?
Change it so you're writing to LATB instead of PORTB.
You mean I should use LATBx instead of RBx ?
  Topic: IO problems ?
small_chick

Replies: 5
Views: 8022

PostForum: General CCS C Discussion   Posted: Fri Dec 21, 2012 8:15 pm   Subject: IO problems ?
I program on dsPIC30F4011 and my code as follow:

#include <30F4011.h>
#fuses XT_PLL4,NOWDT
#word TRISB = 0x02C6
#word PORTB = 0x02C8
#word LATB = 0x02CA

#bit TRISB8 ...
  Topic: change type of variables ?
small_chick

Replies: 3
Views: 5550

PostForum: General CCS C Discussion   Posted: Sat Dec 15, 2012 6:45 am   Subject: change type of variables ?
Thanks Ttelmah & PCM ! I've solved my problem!
First, I code as follow:

float64 measured_speed;
unsigned int16 temp;
measured_speed = (POSCNT - 32000)*1.875; /*POSCNT is an 16 bit r ...
  Topic: change type of variables ?
small_chick

Replies: 3
Views: 5550

PostForum: General CCS C Discussion   Posted: Fri Dec 14, 2012 10:38 pm   Subject: change type of variables ?
I'd like to do some calculation. Because I'd like to get more precise result so in the calculation transition, I use float variables but in the final result I want to change into sign int16 variables ...
  Topic: functions for string process ?
small_chick

Replies: 2
Views: 4246

PostForum: General CCS C Discussion   Posted: Thu Dec 06, 2012 6:26 am   Subject: functions for string process ?
Thanks PCM Programmer ! I'll try it! Very Happy
  Topic: functions for string process ?
small_chick

Replies: 2
Views: 4246

PostForum: General CCS C Discussion   Posted: Wed Dec 05, 2012 6:27 pm   Subject: functions for string process ?
I’ve read functions for string process in CCS user manual and I’ve got some questions as follow:
●cresult = strcmp(s1,s2)
As said in CCS user manual, cresult’s value may be -1 or 0 or 1 =& ...
  Topic: UART problem in dsPIC30F4011 ?
small_chick

Replies: 6
Views: 8726

PostForum: General CCS C Discussion   Posted: Sat Nov 24, 2012 7:12 pm   Subject: UART problem in dsPIC30F4011 ?
I'd say, either the watchdog is getting enabled, and the chip is therefore restarting, or you have a glitch on the power supply, and the chip is doing a brownout restart. Either would explain what you ...
  Topic: UART problem in dsPIC30F4011 ?
small_chick

Replies: 6
Views: 8726

PostForum: General CCS C Discussion   Posted: Sat Nov 24, 2012 10:23 am   Subject: funny thing !!!
i think this problem is not easy to explain ! i've tried to use supported function by CCS and realize this interesting thing.
Compare two kind of coding following:
*1st case:

#include <3 ...
  Topic: UART problem in dsPIC30F4011 ?
small_chick

Replies: 6
Views: 8726

PostForum: General CCS C Discussion   Posted: Fri Nov 23, 2012 10:29 am   Subject: UART problem in dsPIC30F4011 ?
I'd like to send only one character into Hyperterminal at each time writing into U2TXREG. But when I used the following code, it gave me 8 similar characters. I can't explain why this happened like t ...
  Topic: creating a function to output a string into LCD ?
small_chick

Replies: 4
Views: 9906

PostForum: General CCS C Discussion   Posted: Thu Nov 15, 2012 6:23 pm   Subject: creating a function to output a string into LCD ?
I've tried lcd.h &.c with PIC16F887 and dsPIC30F4011.Then they work well with only PIC16F887 .
Here the code for PIC16F887:

#include <16F887.h>
#device PASS_STRINGS = IN_RAM
#fuses XT, ...
  Topic: creating a function to output a string into LCD ?
small_chick

Replies: 4
Views: 9906

PostForum: General CCS C Discussion   Posted: Wed Nov 14, 2012 9:58 pm   Subject: creating a function to output a string into LCD ?
it's well-done now, PCM programmer ! thank you very much ! Very Happy
  Topic: creating a function to output a string into LCD ?
small_chick

Replies: 4
Views: 9906

PostForum: General CCS C Discussion   Posted: Wed Nov 14, 2012 6:43 pm   Subject: creating a function to output a string into LCD ?
I'd like to create a function to output a string into LCD, but there's a problem here.
lcd.h code:

#define LCD_module
#ifdef LCD_module
/********************************************/
#define ...
  Topic: How to enable Phase Locked Loop module in dsPic30F4011 ?
small_chick

Replies: 0
Views: 3305

PostForum: General CCS C Discussion   Posted: Fri Nov 02, 2012 9:48 am   Subject: How to enable Phase Locked Loop module in dsPic30F4011 ?
when i don't use this instruction "#fuses XT,NOWDT" and try to config directly through registers as the following function:
void Oscillator_Config()
{
/*Oscillator Sw ...
  Topic: Multiple Project Files ???
small_chick

Replies: 2
Views: 3972

PostForum: General CCS C Discussion   Posted: Fri Oct 26, 2012 8:26 pm   Subject: Multiple Project Files ???
thank for your help a lot PCM programmer ! Very Happy
 
Page 1 of 4 Goto page 1, 2, 3, 4  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group