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 33 matches
CCS Forum Index
Author Message
  Topic: ICD-U40 connection errors
newpic

Replies: 0
Views: 23387

PostForum: CCS ICD / Mach X / Load-n-Go   Posted: Fri Jul 15, 2011 6:56 am   Subject: ICD-U40 connection errors
Connecting to MPLAB ICD 2
ICD0019: Communications: Failed to open port (USB): (Windows::GetLastError() = 0x2, 'The system cannot find the file specified.
')
ICD0021: Unable to connect with MPLAB I ...
  Topic: Keypad help.
newpic

Replies: 11
Views: 13543

PostForum: General CCS C Discussion   Posted: Fri Jun 10, 2011 7:57 am   Subject: Keypad help.
I have CCS PCM C Compiler, Version 3.249, 34474
using PIC16F877 and Pic demo 2 plus (old version as you have)I cut and paste your test code above. I build it and program it into board.

I got the f ...
  Topic: Keypad help.
newpic

Replies: 11
Views: 13543

PostForum: General CCS C Discussion   Posted: Thu Jun 09, 2011 2:42 pm   Subject: Keypad help.
I have CCS PCH C Compiler, Version 3.207, 24657
MPLAB 8.60
  Topic: Keypad help.
newpic

Replies: 11
Views: 13543

PostForum: General CCS C Discussion   Posted: Thu Jun 09, 2011 1:34 pm   Subject: Keypad help.
I guess they are different
I couldn't make the kbd.c driver to work,

I try to use

k = kbd_getc();
k=k-'0'; %Subtract value of '0' to convert to number.
display_numbe ...
  Topic: Keypad help.
newpic

Replies: 11
Views: 13543

PostForum: General CCS C Discussion   Posted: Wed Jun 08, 2011 2:42 pm   Subject: KEYPAD
I still get nothing from k=kbd_getc().

I decide to change to flex_bcd.c as follow//Keypad connection:

#define col0 PIN_B4
#define col1 PIN_B5
#define col2 PIN_B6
#define row0 PIN_B0
#de ...
  Topic: Keypad help.
newpic

Replies: 11
Views: 13543

PostForum: General CCS C Discussion   Posted: Tue Jun 07, 2011 10:19 pm   Subject: keypad help
I try that and it still does nothing. I try to debug and watch the char k in the watch window and it always display '0' no matter what number I pressed.

I noticed that kbd.c file, the kbd_init() do ...
  Topic: Keypad help.
newpic

Replies: 11
Views: 13543

PostForum: General CCS C Discussion   Posted: Tue Jun 07, 2011 2:53 pm   Subject: Keypad help.
I try to use the keypad 4x3 (digikey P/N: GH5001-ND). I have the PIC Demo Z board and connect to the keypad to the PORTB, I also have a 7-segment on PORTD. Anytime the keypad pressed, I want to disp ...
  Topic: printf floating
newpic

Replies: 6
Views: 8288

PostForum: General CCS C Discussion   Posted: Fri May 13, 2011 9:14 pm   Subject: printf floating
volt = (result / 1023.0);

work!!
Thanks.
  Topic: printf floating
newpic

Replies: 6
Views: 8288

PostForum: General CCS C Discussion   Posted: Fri May 13, 2011 8:51 pm   Subject: printf floating
per pic16f917.h

see below

// Constants used in SETUP_ADC_PORTS() are:
#define sAN0 1 //| A0

Either sAN0 or 1 is same right?


volt = (result / 1023);
volt = ( ...
  Topic: printf floating
newpic

Replies: 6
Views: 8288

PostForum: General CCS C Discussion   Posted: Fri May 13, 2011 2:57 pm   Subject: printf floating
My printf long shown either 0.00 or 5.00,
if pot set to max --> read 5.00, anything less then max --> 0.00
Can anybody tell me what is wrong?

#include <mechatronic.h>

long result; ...
  Topic: how to get PWM 40khz out
newpic

Replies: 2
Views: 6619

PostForum: General CCS C Discussion   Posted: Fri Apr 29, 2011 2:15 pm   Subject: 40khz pwm to drive ultrasonic
I got it. here is the new code
#include <16f877.h>
#fuses XT, NOWDT, NOPROTECT, NOBROWNOUT, NOPUT, NOLVP
#use delay(clock=4000000)

void main()
{

output_low(P ...
  Topic: how to get PWM 40khz out
newpic

Replies: 2
Views: 6619

PostForum: General CCS C Discussion   Posted: Fri Apr 29, 2011 1:34 pm   Subject: how to get PWM 40khz out
I use timer2, try to get 40khz out to drive an ultrasonic sensor.
Can anybody help?

#include <16f877.h>
#fuses XT, NOWDT, NOPROTECT, NOBROWNOUT, NOPUT, NOLVP
#use delay(clock=4000000& ...
  Topic: ccp1 using timer1
newpic

Replies: 3
Views: 9421

PostForum: General CCS C Discussion   Posted: Mon Apr 04, 2011 2:12 pm   Subject: timer1
Ok,
I post the wrong code,
here it is

#if defined(__PCM__)
#include <16F877.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)
#use rs232(baud=9600, xmit= ...
  Topic: ccp1 using timer1
newpic

Replies: 3
Views: 9421

PostForum: General CCS C Discussion   Posted: Mon Apr 04, 2011 1:37 pm   Subject: ccp1 using timer1
I need capture help.

How can I capture a button that connect to CCP1 (RC2)?
if button pressed < 500msec === output high pin RB0
if button pressed > 500 msec === output high pin RB1


# ...
  Topic: Flexible LCD driver
newpic

Replies: 102
Views: 1070717

PostForum: Code Library   Posted: Fri Feb 04, 2011 3:16 pm   Subject: flex_lcd.c driver
Hello PCM?

I've try your driver and test program on the old PIC Demo 2 Plus board, my issue is the text display on the LCD was flickering like timing or freqency issue. I can see first 5 letters on ...
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group