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 12 matches
CCS Forum Index
Author Message
  Topic: How to write continuous detection?
aliciamee

Replies: 5
Views: 8028

PostForum: General CCS C Discussion   Posted: Wed Mar 25, 2009 2:45 am   Subject: How to write continuous detection?
Each box will have two connection to the PIC, first method is separated eight bits to 4 boxes, while the second method is presented in matrix form for indicating the four boxes. The first method is mo ...
  Topic: How to write continuous detection?
aliciamee

Replies: 5
Views: 8028

PostForum: General CCS C Discussion   Posted: Wed Mar 25, 2009 12:59 am   Subject: How to write continuous detection?
I see no reason to use a while loop. Generally, no code that potentially repeats forever should be used.

which while loop that u mean? The main one, while (1) or the one i put in first post, while ...
  Topic: How to write continuous detection?
aliciamee

Replies: 5
Views: 8028

PostForum: General CCS C Discussion   Posted: Tue Mar 24, 2009 10:25 pm   Subject: How to write continuous detection?
It is an idea different from the above, but basically there are alike, i come out with two ideas.
Input XXXX XXXX - take the last 4 bits

XX XX
col2 col1 row2 ...
  Topic: How to write continuous detection?
aliciamee

Replies: 5
Views: 8028

PostForum: General CCS C Discussion   Posted: Tue Mar 24, 2009 9:45 pm   Subject: How to write continuous detection?
Use all the eight bit, XXXX XXXX

XX | XX | XX | XX
box4 | box3 | box2 | box1

while (1);
{
while (input(pin_B0) && input (pin_B1))
&# ...
  Topic: Help in coding
aliciamee

Replies: 12
Views: 11401

PostForum: General CCS C Discussion   Posted: Fri Mar 20, 2009 11:37 pm   Subject: Help in coding
Ok. From the help file,
usb_cdc_getc() : reads and return a character from the receive buffer
usb_cdc_putc() : put a character into the transmit buffer

The receive buffer and transmit buffer ment ...
  Topic: Help in coding
aliciamee

Replies: 12
Views: 11401

PostForum: General CCS C Discussion   Posted: Wed Mar 18, 2009 7:17 pm   Subject: Help in coding
putc() will not work with USB, use serial communication instead, its easier to test and debug. When you have tested the code, you can then upgrade to USB.

what do u mean by serial communication, i ...
  Topic: Help in coding
aliciamee

Replies: 12
Views: 11401

PostForum: General CCS C Discussion   Posted: Tue Mar 17, 2009 8:52 pm   Subject: Help in coding
I saw this command in help file:
int16 i=PIN_B1;
Why there is int16 in front? Is it mean reading value from pin_b1 and i equal to that value?
  Topic: Help in coding
aliciamee

Replies: 12
Views: 11401

PostForum: General CCS C Discussion   Posted: Tue Mar 17, 2009 4:56 am   Subject: Help in coding

SC0SR EQU $00CC
SC0DR EQU $00CF
ORG $8000

MAIN LDAA #00
LDAA $0258
CMPA #00
BEQ MAIN

SEND STAA SC0DR
BRCL ...
  Topic: Help in coding
aliciamee

Replies: 12
Views: 11401

PostForum: General CCS C Discussion   Posted: Sun Mar 15, 2009 7:28 pm   Subject: Help in coding
Oh, is like that how I know the binary form of the pin? Is it the same with the HC12? I need to know it so that I only need to send the data to the PC via USB port, and specify the data from the API l ...
  Topic: Help in coding
aliciamee

Replies: 12
Views: 11401

PostForum: General CCS C Discussion   Posted: Sat Mar 14, 2009 7:25 pm   Subject: Help in coding
Mean that i can write the coding like this?:

int a;
a==input_b();

switch (a)
{
case 1:
output_low(pin_C0);
break;
case 2:
...
  Topic: Help in coding
aliciamee

Replies: 12
Views: 11401

PostForum: General CCS C Discussion   Posted: Fri Mar 13, 2009 6:52 pm   Subject: Help in coding
Read the 4 bits. Combine them into the lower 4 bits of one byte.

Sorry, i don't understand what do u mean... Can u explain more?

Thanks for your reply!!!
  Topic: Help in coding
aliciamee

Replies: 12
Views: 11401

PostForum: General CCS C Discussion   Posted: Tue Mar 10, 2009 7:58 pm   Subject: Help in coding
My coding idea is that there are four inputs(indicate by row1, row2 and column1, column2). The input is in matrix form:
eg: column1 column2
row1 1 2
row ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group