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 47 matches
CCS Forum Index
Author Message
  Topic: getc
homfray

Replies: 2
Views: 4762

PostForum: General CCS C Discussion   Posted: Thu Jun 22, 2006 5:14 am   Subject: getc
Ok I am having on of those days and this could be the fastest ever answer


while(1)
{
answer=0;
if(kbhit()) //if keyboard is hit
{
c = getc( ...
  Topic: set variable to average of ten ADC readings
homfray

Replies: 3
Views: 5707

PostForum: General CCS C Discussion   Posted: Wed May 24, 2006 4:34 am   Subject: set variable to average of ten ADC readings
Hi guys, wondered if we coudl discuss the most elegant method of taking a signal average

I have a PIC18F452 and I am using a port into a DAC to put out an anolog voltage. I have a fairly noisy AI a ...
  Topic: Wake from SLEEP if PORTF keyboard used
homfray

Replies: 1
Views: 4512

PostForum: General CCS C Discussion   Posted: Fri Dec 02, 2005 10:32 am   Subject: Wake from SLEEP if PORTF keyboard used
Ok I have been bloody silly I have built and programmed some harware using a 18F8621 (and PCH) and because I hadn't thought about what happens to the circuit when nothing is happening, I put the matri ...
  Topic: sorry another kbd.c question
homfray

Replies: 4
Views: 8332

PostForum: General CCS C Discussion   Posted: Tue Aug 23, 2005 4:11 am   Subject: sorry another kbd.c question
Thanks for the reply PCM programmer. Sorry should of kept this a bit more simple instead of baffling everyone Embarassed

The Tx and Rx is not reversed just a typo on my part from now on will move the ...
  Topic: sorry another kbd.c question
homfray

Replies: 4
Views: 8332

PostForum: General CCS C Discussion   Posted: Mon Aug 22, 2005 9:23 am   Subject: sorry another kbd.c question
I have built some electronics using an 18F8621 and a 4x3 keyboard

when I use the following test script it works a treat

kbdTest.c

#include <18F8621.h>
#device *=16 ADC=8

#define ...
  Topic: Communcation between PIC's using wireless RS232
homfray

Replies: 1
Views: 44482

PostForum: Code Library   Posted: Wed Aug 10, 2005 3:46 am   Subject: Communcation between PIC's using wireless RS232
Transmitter Code: // INCLUDE FILES
#include <18F8621.h>
#device *=16 ADC=8
#include <STRING.H>
#include <STDIO.H>
#include <STDLIB.H>
#define Fosc 40000000 ...
  Topic: Communcation between PIC's using wireless RS232
homfray

Replies: 25
Views: 61571

PostForum: General CCS C Discussion   Posted: Fri Aug 05, 2005 6:14 am   Subject: Communcation between PIC's using wireless RS232
Thought I would change the title to make it more appropriate

Guys, thanks, I really appreciate everything you have done, the code works perfectly and I can transmit on one device and recieve on the ...
  Topic: Communcation between PIC's using wireless RS232
homfray

Replies: 25
Views: 61571

PostForum: General CCS C Discussion   Posted: Thu Aug 04, 2005 10:35 am   Subject: Communcation between PIC's using wireless RS232
your a bloody good 'un. Let me try that tomorrow and will come back

Thanks newguy!!!!!!!!!!!
  Topic: Communcation between PIC's using wireless RS232
homfray

Replies: 25
Views: 61571

PostForum: General CCS C Discussion   Posted: Thu Aug 04, 2005 5:04 am   Subject: Communcation between PIC's using wireless RS232
So I have worked on my code and I have limited sucess using the code below I now get some of the data (Tx sends 'Dave Rocks') and some garbage. Included is a capture of some of the output


> CO ...
  Topic: Communcation between PIC's using wireless RS232
homfray

Replies: 25
Views: 61571

PostForum: General CCS C Discussion   Posted: Wed Aug 03, 2005 9:27 am   Subject: Communcation between PIC's using wireless RS232
Hi there, I have searched the forum and although there have been lots of similar questions no one has actually ever posted the answer so I will atempt to make sure this thread is seen to its conclusio ...
  Topic: speed of coms between PIC and flash memory (ie mmc)
homfray

Replies: 1
Views: 7419

PostForum: General CCS C Discussion   Posted: Fri Aug 27, 2004 3:57 am   Subject: speed of coms between PIC and flash memory (ie mmc)
Roughly how fast could I write a byte of data form a PIC to say an MMC via SPI.

Is SPI the fastest method

I am purely at a initial stage of designing a project and it requires storing data FAS ...
  Topic: movf - Expecting an opcode mnemonic (WOAH!!!!)
homfray

Replies: 18
Views: 36256

PostForum: General CCS C Discussion   Posted: Thu Aug 19, 2004 7:58 am   Subject: You guys ARE THE DON
boys, due to all your help I have got some code that is absolutely flying along Want to say a massive thanks to all of you!!!!! I have only had a quick check on the code but it appears to be working ...
  Topic: movf - Expecting an opcode mnemonic (WOAH!!!!)
homfray

Replies: 18
Views: 36256

PostForum: General CCS C Discussion   Posted: Thu Aug 19, 2004 7:11 am   Subject: movf - Expecting an opcode mnemonic (WOAH!!!!)
Thanks ckielstra

just to confirm in the code you wrote previously

#BIT TMR2IF=0x0F9E.1
int8 delay_in_us = 10; // Execute loop every 10us
void main()
{
setupMain(); ...
  Topic: movf - Expecting an opcode mnemonic (WOAH!!!!)
homfray

Replies: 18
Views: 36256

PostForum: General CCS C Discussion   Posted: Thu Aug 19, 2004 3:56 am   Subject: movf - Expecting an opcode mnemonic (WOAH!!!!)
clear_interrupt(INT_TIMER2);

How do I implement this as it is not a function asI only have PCH v3.180.

I should probably sort it out and buy the upgrade!!
  Topic: movf - Expecting an opcode mnemonic (WOAH!!!!)
homfray

Replies: 18
Views: 36256

PostForum: General CCS C Discussion   Posted: Thu Aug 19, 2004 2:40 am   Subject: movf - Expecting an opcode mnemonic (WOAH!!!!)
if(valueOfE != oldValueOfE || valueOfF != oldValueOfF && i < 700)
if(valueOfE != oldValueOfE && i < 700)

Sorry ckielstra normally comment one of th ...
 
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