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 22 matches
CCS Forum Index
Author Message
  Topic: need help with em4102.c manchester decoding
kolio

Replies: 2
Views: 4572

PostForum: General CCS C Discussion   Posted: Thu Mar 06, 2008 9:10 am   Subject: need help with em4102.c manchester decoding
According EMMarin 4102 datasheet page 4 table and your sequence:
00000111100000000110000000010110001101111110101111
it will look like:
0000 0
1111 0
0000 0
0011 0
0000 0
0010 1
1000 1
...
  Topic: problem with RS232 in 12F675
kolio

Replies: 1
Views: 2763

PostForum: General CCS C Discussion   Posted: Thu Mar 06, 2008 8:45 am   Subject: problem with RS232 in 12F675
Two hints:
1. Although calibrated, the internal oscillator is not reliable enough for UART communication.
2. Try: while(1){ putc(0x55); delay_ms(10);} . You terminal screen should be filled with 'UU ...
  Topic: how to config port A for A/D input (16F628A)
kolio

Replies: 3
Views: 4405

PostForum: General CCS C Discussion   Posted: Thu Mar 06, 2008 8:14 am   Subject: how to config port A for A/D input (16F628A)
Read the datasheet and you'll find out that unfortunately the nice little 628A(my favorite PIC mcu) doesn't have A/D converter hardware.
Don't give up - there are two options:
1.If you need just fe ...
  Topic: warning: to prevent re-entrancy
kolio

Replies: 5
Views: 15429

PostForum: General CCS C Discussion   Posted: Fri Feb 29, 2008 1:50 am   Subject: Re: warning: to prevent re-entrancy
hi everybody.. just a short question. why is it that when i use this code:

#INT_RDA
void SerialInt(void)
{
RXd_Data[Write_cntr] = fgetc(GSM);
Write_cntr=( ...
  Topic: pic 18f2580 wake up from weak analog signal
kolio

Replies: 2
Views: 3399

PostForum: General CCS C Discussion   Posted: Tue Feb 26, 2008 4:43 am   Subject: pic 18f2580 wake up from weak analog signal
It is possible, but you should tell more about DC and AC characteristics of the signal. There are different solutions for detection with comparator (assuming built-in one) depending on the signal's na ...
  Topic: Comparator PIC16F636
kolio

Replies: 9
Views: 9012

PostForum: General CCS C Discussion   Posted: Tue Feb 26, 2008 2:15 am   Subject: Comparator PIC16F636
Buddy,
are you sure C0 is the proper way to track the comparator.
Check out what is the status of C0 in case of A1_VR_C1_VR = 0x10FF02 according 16F639.H !
The last byte '02' seems to turn C0 as an ...
  Topic: PIC18f2550 USB port
kolio

Replies: 1
Views: 3097

PostForum: General CCS C Discussion   Posted: Tue Feb 26, 2008 1:21 am   Subject: PIC18f2550 USB port
Only if the mobile phone has "usb host" implementation.
Also it might require some drivers for pic.
You can find out some more info at pg.185 in the datasheet or here:
http://www.usb.org/ ...
  Topic: Bit bash I2C slave?
kolio

Replies: 10
Views: 12202

PostForum: General CCS C Discussion   Posted: Fri Feb 15, 2008 1:43 am   Subject: Bit bash I2C slave?
Assuming the application is only to sniff and then send the information via UART. So, it would be a nice exercise if you have the necessary time. And probably you'll never get a dedicated chip flexibl ...
  Topic: Please help with ADC calculations
kolio

Replies: 2
Views: 3832

PostForum: General CCS C Discussion   Posted: Wed Feb 13, 2008 2:55 pm   Subject: Please help with ADC calculations
1.Check for an overflow with * and /.
2.With long variables better use "long" constants, for example instead of 1000 or 15, use 1000L or 15L. Sometimes you'll be surprised what compilers wo ...
  Topic: free running adc?
kolio

Replies: 5
Views: 5381

PostForum: General CCS C Discussion   Posted: Wed Feb 13, 2008 2:43 pm   Subject: free running adc?
You can try with built-in comparator and internal programmable Vref, which can have 16 steps something. This is fair enough for RSSI.
Good luck!
  Topic: width between two pulses
kolio

Replies: 1
Views: 2914

PostForum: General CCS C Discussion   Posted: Wed Feb 13, 2008 2:24 pm   Subject: width between two pulses
Hi Ahmad,

Don't use lcd_gotoxy() and printf() in ISR. Read about "re-entrant code".
Try this one:

#include<18f458.h>
#fuses noprotect,nowdt,xt
#use delay(clock=4000000&# ...
  Topic: ESD protection of the MCLR on 16F88
kolio

Replies: 11
Views: 13042

PostForum: General CCS C Discussion   Posted: Wed Feb 13, 2008 2:09 pm   Subject: ESD protection of the MCLR on 16F88
As far as I understand the capacitor in ESD-protection recommended circuit is a problem during the development phase. It can be removed from the development board, but it is not a problem for in-circu ...
  Topic: Hi-res software implemented ADC in 16Fxxx ?? Who knows how?
kolio

Replies: 6
Views: 6991

PostForum: General CCS C Discussion   Posted: Wed Feb 13, 2008 1:39 pm   Subject: Hi-res software implemented ADC in 16Fxxx ?? Who knows how?
You can try with so called "dual slope adc" circuit. Slope ADCs are always slower, but more precise (depends on timer resolution). Check this link for some theory:
http://www.mines.edu/Acad ...
  Topic: Unused variables
kolio

Replies: 5
Views: 6768

PostForum: General CCS C Discussion   Posted: Mon Feb 11, 2008 9:05 am   Subject: Unused variables
Yeah, the good old versions 2.xx...
ckielstra, you're damn right, buddy Laughing and you sniffed the problem.
There will be too much #ifdefs, because the product has 7 (yet) firmware profiles and 4 ...
  Topic: Weird result appear on hyperterminal
kolio

Replies: 2
Views: 3788

PostForum: General CCS C Discussion   Posted: Mon Feb 11, 2008 8:39 am   Subject: Weird result appear on hyperterminal
Check this out:
#fuses XT,NOWDT,NOPROTECT,NOLVP
#use delay(clock=4000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS)
instead of
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock= ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group