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 52 matches
CCS Forum Index
Author Message
  Topic: driving a DC motor
asjad

Replies: 3
Views: 10075

PostForum: General CCS C Discussion   Posted: Fri Aug 20, 2004 6:21 am   Subject: driving a DC motor
Hi friends,

I need a bit of help regarding driving a motor.


If I connect a PIC to the base of a NPN transistor via a resistor, and the
motor connected between +vcc and the collector
(transi ...
  Topic: how to get a variable from RS232
asjad

Replies: 1
Views: 7033

PostForum: General CCS C Discussion   Posted: Sun Jun 06, 2004 5:20 pm   Subject: how to get a variable from RS232
I know if I want to send a variable over the RS232 I use

int temp=23;

printf ("%d", temp);


How would I RECIEVE a variable over the RS232 line

Any ideas?

Best Regards
  Topic: CCS lcd drivers
asjad

Replies: 2
Views: 9031

PostForum: General CCS C Discussion   Posted: Sun Jun 06, 2004 12:47 pm   Subject: CCS lcd drivers
PCM 3.185
PIC16F874

Dear All,

Does anyone know if there is a conflict if I do the following:

USE timer 0 via interrupts AND
USE standard CCS lcd drivers.

I have tried to use them togethe ...
  Topic: Capture module
asjad

Replies: 1
Views: 7672

PostForum: General CCS C Discussion   Posted: Mon May 24, 2004 1:49 am   Subject: Capture module
Dear folks,

I wnat to use the capture module of the PIC16F874 to measure a frequency.

IF I set it to trigger every rising edge, can I assume that the the value in timer 1 will be the time betwee ...
  Topic: Test my code
asjad

Replies: 5
Views: 12222

PostForum: General CCS C Discussion   Posted: Mon May 24, 2004 1:45 am   Subject: Test my code
After I have programmed the PIC and pressed reset it takes about
8 seconds for the program to start, when it does start the seconds go
twice as slow

I have calculated that an interrupt should o ...
  Topic: Test my code
asjad

Replies: 5
Views: 12222

PostForum: General CCS C Discussion   Posted: Mon May 24, 2004 12:32 am   Subject: Function
The above progrsam is a simple implementation of a "Real time clock"

I have tried to programming it myself,
but unfortunalty I get unexpected results
  Topic: Test my code
asjad

Replies: 5
Views: 12222

PostForum: General CCS C Discussion   Posted: Sun May 23, 2004 11:24 pm   Subject: code


#if defined(__PCM__)
#include <16F874.h>
#device ICD=TRUE
#fuses XT,NOWDT,NOPROTECT,NOLVP,NOPUT,NOBROWNOUT
#use delay(clock=4000000)
#endif

#include <lcd.c>

...
  Topic: Test my code
asjad

Replies: 5
Views: 12222

PostForum: General CCS C Discussion   Posted: Sun May 23, 2004 11:02 pm   Subject: Test my code
Dear All,

I have a nasty suspicion that my programmer is not working, could someone please test my code i.e program a chip:

PCM V3.168
PIC16f874 - USING 4MHz crystal, LCD connected to port D - ...
  Topic: 3pin resonator
asjad

Replies: 8
Views: 17868

PostForum: General CCS C Discussion   Posted: Sun May 23, 2004 2:08 pm   Subject: resonator manufacturer
There is a very wiered symbol on the resonator , I am unable to find the manufacturer, the link below is the type I have

http://www.rapidelectronics.co.uk/rkmain.asp?PAGEID=80010&CTL_CAT_CODE=3 ...
  Topic: 3pin resonator
asjad

Replies: 8
Views: 17868

PostForum: General CCS C Discussion   Posted: Sun May 23, 2004 12:55 pm   Subject: 3pin resonator
Dear all,

I have recently bought a 3pin ceramic resonator (built in capacitors)

Can I assume that the outer 2 pins are for the PIC and the centre for ground.

Any sugestions
----------------- ...
  Topic: NEED HELP, PLEASE!! - FUNCTION NOT BEEN CALLED
asjad

Replies: 5
Views: 11417

PostForum: General CCS C Discussion   Posted: Sun May 23, 2004 11:11 am   Subject: function will not be called even from the
If I try to call the fucntion from function main, it will still not branch

Is the compiler version bug free?
  Topic: NEED HELP, PLEASE!! - FUNCTION NOT BEEN CALLED
asjad

Replies: 5
Views: 11417

PostForum: General CCS C Discussion   Posted: Sun May 23, 2004 11:03 am   Subject: Clarifying the question question
The function of the code is a "real time clock"

Within the ISR I call a function called "display()", this function updates the time on the LCD using the standard CCS drivers.

When I step through ...
  Topic: NEED HELP, PLEASE!! - FUNCTION NOT BEEN CALLED
asjad

Replies: 5
Views: 11417

PostForum: General CCS C Discussion   Posted: Sun May 23, 2004 9:36 am   Subject: NEED HELP, PLEASE!! - FUNCTION NOT BEEN CALLED
MPLAB 6.5
PCM V 3.186
MPLAB ICD2

Dear All,

I am in a rut can someone help me please!!!

I HAVE CODED A SIMPLE CLOCK PROGRAM, ThE ACTUAL INCREMENTATION of mins/hours/milli WORKS PERFECT

...
  Topic: Driverproblems
asjad

Replies: 1
Views: 8603

PostForum: General CCS C Discussion   Posted: Sat Apr 17, 2004 9:47 am   Subject: USB
Hi,

Normally with a USB device you have to install the drivers FIRST

then when the installation is complete plug in the device and

then Jironamoo!

TO check if your computer has detected th ...
  Topic: CCP dual operation
asjad

Replies: 1
Views: 7688

PostForum: General CCS C Discussion   Posted: Sat Apr 17, 2004 9:39 am   Subject: CCP dual operation
Dear All,

I was wondering if I could pick some of your brain cells:

PIC16f874

I know this pic has 2 CCP pins.

Unfortunatly both are used in capture mode.

If I want to multiplex a minatu ...
 
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