Author |
Message |
Topic: For .. Loop Delay |
cxiong
Replies: 4
Views: 5983
|
Forum: General CCS C Discussion Posted: Mon Jun 11, 2007 1:58 pm Subject: For .. Loop Delay |
I want to use in 40uSec
And it should be able reuse the delay through out the program.
If I use the timer, can I recall the routine and reuse it?
Can you explain how you get 1 mSec = 625 timer1 ... |
Topic: For .. Loop Delay |
cxiong
Replies: 4
Views: 5983
|
Forum: General CCS C Discussion Posted: Mon Jun 11, 2007 12:10 pm Subject: For .. Loop Delay |
I need help to created custom delay subroutine
I use a 20Mhz Crystal, PIC16F877A
void main( void )
{
long i,j;
mcu_init(); /* Init of system clock and processor mod ... |
Topic: MAX7219 LED Driver Help needed... |
cxiong
Replies: 20
Views: 28050
|
Forum: General CCS C Discussion Posted: Tue Aug 30, 2005 2:26 pm Subject: MAX7219 LED Driver Help needed... |
How do I display the ds1307 (hh:mm) into the 7-segment using max7219?
What is the best way to do it? Theory? |
Topic: infrared communication |
cxiong
Replies: 16
Views: 24476
|
Forum: General CCS C Discussion Posted: Fri Jan 14, 2005 11:03 am Subject: infrared communication |
Thanks..
I finally got it work. Some how the Radioshack IRLED will not work with the Panasonic Detector. I replace it with different IR LED and it just work perfect.
Anyway, thanks for all inpu ... |
Topic: infrared communication |
cxiong
Replies: 16
Views: 24476
|
Forum: General CCS C Discussion Posted: Thu Jan 13, 2005 2:59 pm Subject: infrared communication |
I have the receiver send the received data to hyperterminal.
Here is what I got from the Hyperteminal:
http://www.ceebtsheej.org/pic/ir_screen.jpg
Here is my latest transmit code:
#include & ... |
Topic: infrared communication |
cxiong
Replies: 16
Views: 24476
|
Forum: General CCS C Discussion Posted: Thu Jan 13, 2005 12:22 pm Subject: Infrared data conversion |
Infrared data conversion, does it need to have a MAX 232 between the receiver and the PC port? |
Topic: infrared communication |
cxiong
Replies: 16
Views: 24476
|
Forum: General CCS C Discussion Posted: Wed Jan 12, 2005 3:57 pm Subject: infrared communication |
When I re-adjust the PR2 to 130, I measure it with the O'scope, I have 38.4Khz.
The data display in the hyperterminal still the same as above. It does not solve the problem.
I change from print ... |
Topic: infrared communication |
cxiong
Replies: 16
Views: 24476
|
Forum: General CCS C Discussion Posted: Wed Jan 12, 2005 1:26 pm Subject: Infrared transmitter / receiver |
I am working on a project using IR communication, I have the transmitter
and the receiver talking, but the data are junk per hypertminal.
Per the code below, it should display (0123456789), but ... |
Topic: PWM with 38Khz with 50% duty cycle pulse |
cxiong
Replies: 2
Views: 12994
|
Forum: General CCS C Discussion Posted: Tue Jan 11, 2005 1:14 pm Subject: PWM with 38Khz with 50% duty cycle pulse |
Can someone look at it?
Here is my code
#include <18F452.h>
#fuses XT,NOWDT,NOPROTECT,NOLVP
#use delay(clock=4000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)
... |
Topic: PWM with 38Khz with 50% duty cycle pulse |
cxiong
Replies: 2
Views: 12994
|
Forum: General CCS C Discussion Posted: Tue Jan 11, 2005 12:41 pm Subject: PWM with 38Khz with 50% duty cycle pulse |
I use a PIC18F452 with a 4Mhz crystal. I want to generate a 38Khz-40Khz PWM with 50% duty cycle.
Anyone has a sample code that I can use?
Thanks.. |
Topic: MAX7219 LED Driver Help needed... |
cxiong
Replies: 20
Views: 28050
|
Forum: General CCS C Discussion Posted: Tue Dec 28, 2004 11:56 am Subject: MAX7219 Does not work |
I have found this post in the forum and I try it, it does not work.
I just does not turn on the LED at all. I use the LDQ-N512RI with
the Max7219. I just need to drive the first 2 digit according to ... |
Topic: ICD-S20 and ICD-U40 Error |
cxiong
Replies: 5
Views: 41289
|
Forum: CCS ICD / Mach X / Load-n-Go Posted: Thu Dec 23, 2004 11:07 am Subject: ICD-U40 Fuse |
I have problem with the ICD-U40 stand alone software. The Fuses setting under ICD Advanced window, under Configuration tab(see below) are not
right. They suppose to be: XT, WDT, PUT, NOLVP,NOBROWNOUT ... |
Topic: ICD-S20 and ICD-U40 Error |
cxiong
Replies: 5
Views: 41289
|
Forum: CCS ICD / Mach X / Load-n-Go Posted: Wed Dec 08, 2004 8:03 am Subject: ICD-S20 and ICD-U40 Error |
I posted this in the wrong forum, So I import it to here.
I still got no answer to these questions.
Please help me out.
I just bought 3 new ICD_U40 to use as programmer in production. I need ... |
Topic: Problem ICD-S with PIC18F458 |
cxiong
Replies: 4
Views: 41722
|
Forum: CCS ICD / Mach X / Load-n-Go Posted: Tue Dec 07, 2004 3:17 pm Subject: ICD-S error |
I always have this warning after I browse the hex file. Is this the root cause for that? I use firmware ver 1.33
How can I solve this problem?
See below:
http://www.ceebtsheej.org/pic/error.g ... |
Topic: Problem ICD-S with PIC18F458 |
cxiong
Replies: 4
Views: 41722
|
Forum: CCS ICD / Mach X / Load-n-Go Posted: Tue Dec 07, 2004 2:55 pm Subject: ICD-S20 and ICD-U40 |
I have tried with 2 different PIC18 and it does not work.
(PIC18F6620 and PIC18F458). I just got a new ICD-U40 and it does the samething.
Here is the error, this error is from pic18f6620 processo ... |
|