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 16 matches
CCS Forum Index
Author Message
  Topic: BLDC driver code for PIC
Arclite

Replies: 7
Views: 21400

PostForum: General CCS C Discussion   Posted: Thu Dec 16, 2004 5:33 pm   Subject: BLDC driver code for PIC
Just to finish off my last post above (i was logged out),

The PID loop should be place in a Timer interrupt, so that you have a regular system heartbeat, that check the position, checks command, c ...
  Topic: RS232 reception problem
Arclite

Replies: 14
Views: 22116

PostForum: General CCS C Discussion   Posted: Mon Dec 13, 2004 9:22 am   Subject: I think i've cracked this one!
Hi Mark,

I have solved most of this stupid problem, and you were correct about the OERR overrun bit. When i had tested the OERR bit earlier, the bit definition was wrong by one byte, so OERR went u ...
  Topic: BLDC driver code for PIC
Arclite

Replies: 7
Views: 21400

PostForum: General CCS C Discussion   Posted: Sun Dec 12, 2004 8:07 pm   Subject: Check these tutorials out.
Hiya,

Check these tutorials for motor control:

http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1959

Then start piecing it together with the app note mentioned.
...
  Topic: RS232 reception problem
Arclite

Replies: 14
Views: 22116

PostForum: General CCS C Discussion   Posted: Sun Dec 12, 2004 4:03 pm   Subject: One other thing...
I send "AT\r\n" to the modem, and i get an "\r\nOKr\n" AND an "..AT.." sent back, whats going on here?
  Topic: RS232 reception problem
Arclite

Replies: 14
Views: 22116

PostForum: General CCS C Discussion   Posted: Sun Dec 12, 2004 3:31 pm   Subject: Used interrupt RDA, and problem persists.
Hiya,

I have designed my code to use the interrupt RDA for my modem activities as you recommended.



char InMSG[60];
BYTE next_in=0;
BYTE next_out=0;

#int_RDA
RDA_isr()
...
  Topic: RS232 reception problem
Arclite

Replies: 14
Views: 22116

PostForum: General CCS C Discussion   Posted: Wed Dec 08, 2004 4:55 pm   Subject: RS232 reception problem
Hi Mark,

Checked and done what you had said. It doesn't make a difference.
I think it has something to do with the 'fgets()' function. It uses getc() until it reads a 'return' <13> value an ...
  Topic: RS232 reception problem
Arclite

Replies: 14
Views: 22116

PostForum: General CCS C Discussion   Posted: Wed Dec 08, 2004 10:57 am   Subject: RS232 reception problem
Hiya,
Mark : yes the program stops at the fgets(.... I put an LED on before and after the second fgets(.. and the progam halts, illuminating the 1st LED but not the second.

Asmallri: i really need ...
  Topic: RS232 reception problem
Arclite

Replies: 14
Views: 22116

PostForum: General CCS C Discussion   Posted: Wed Dec 08, 2004 9:12 am   Subject: All of the wiring is correct
Hi asmallri,
The wires are in the right places, and the comm ports are all the same setting.

The main feature of the problem is that when i type in the "OK" to the PIC-PC link via hyper terminal, ...
  Topic: RS232 reception problem
Arclite

Replies: 14
Views: 22116

PostForum: General CCS C Discussion   Posted: Tue Dec 07, 2004 8:14 pm   Subject: RS232 reception problem
Hi guys,

I have an RS232 port defined as:


#USE rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7, bit=8, stream=rsMOD)


and i want to send an AT msg to it like:


#define AT " ...
  Topic: Pic18F452, delay_ms() stops code executing.
Arclite

Replies: 9
Views: 14457

PostForum: General CCS C Discussion   Posted: Sat Dec 04, 2004 1:22 pm   Subject: Problem solved!!!!
I think i have cracked it.

I think it is something to do with the port settings in the CCSC project wizard, i may have overlooked them, and it lets some pins work and not others prior to the use o ...
  Topic: Pic18F452, delay_ms() stops code executing.
Arclite

Replies: 9
Views: 14457

PostForum: General CCS C Discussion   Posted: Sat Dec 04, 2004 12:03 pm   Subject: This is code with comments removed
Hi
The code has had all of the comments removed as they are all app related, and removed for clarity.

The remaining code does exactly the same thing, and as for the name Proj1.H etc, that is a t ...
  Topic: Pic18F452, delay_ms() stops code executing.
Arclite

Replies: 9
Views: 14457

PostForum: General CCS C Discussion   Posted: Sat Dec 04, 2004 10:57 am   Subject: Pic18F452, delay_ms() stops code executing.
Just to mention the last two Guest posts are mine.
I appears that the server had logged me out twice.
  Topic: Pic18F452, delay_ms() stops code executing.
Arclite

Replies: 9
Views: 14457

PostForum: General CCS C Discussion   Posted: Fri Dec 03, 2004 7:13 pm   Subject: Pic18F452, delay_ms() stops code executing.
Hi guys,

I have a simple problem, the code i have fails to run past the delay function and i would like to know why and how to get around it.

CCS compiler 3.200
MPLAB 6.30
I am using a 4Mhz Re ...
  Topic: Math problem
Arclite

Replies: 5
Views: 12962

PostForum: General CCS C Discussion   Posted: Thu Sep 09, 2004 4:49 pm   Subject: Math problem
Hi guys,
Maybe this is in the wrong forum, so any advice is welcomed.

I need to know know to interpolate between a couple of points.

For linear interpolation i want to interpolate between two p ...
  Topic: Basic problem with Structures
Arclite

Replies: 3
Views: 8761

PostForum: General CCS C Discussion   Posted: Tue Jul 20, 2004 4:15 am   Subject: Tried and trusted
Thanks for the responses,

Ttelmah:
I've tried your approach, and it works. No surprise given that i had not read the manual on '->'. I've made much headway on a single chip 3 axis controller fo ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group