Author |
Message |
Topic: question of getc() |
Oliver Lai
Replies: 7
Views: 29738
|
Forum: General CCS C Discussion Posted: Tue Apr 13, 2004 7:07 pm Subject: my source code |
Thanks ALL for very helpful advices!
I have added ERROR option in my program, but still have got stuck. The transmiter side is out of my control, I can just received data stream, eg. 10 02 9D 03 45 ... |
Topic: question of getc() |
Oliver Lai
Replies: 7
Views: 29738
|
Forum: General CCS C Discussion Posted: Mon Apr 12, 2004 6:36 pm Subject: question of getc() |
I have got a problem with getc() when I use RS3227 data output -----> RS232 data input.
It is often stuck on the third getc(), I check the manual, it wrote:
If a built-in USART is used the ha ... |
Topic: how to steal power from PIC instead of PC RS-232 port |
Oliver Lai
Replies: 3
Views: 10755
|
Forum: General CCS C Discussion Posted: Fri Apr 09, 2004 5:58 pm Subject: have tried, failed |
I have tried in the following links:
keep the data link unchanged, add power from external power supply:
D9 PIN4 and PIN7 connect to +10V,
PIN5 is ground.
Still no data was captured (':evil' ... |
Topic: how to steal power from PIC instead of PC RS-232 port |
Oliver Lai
Replies: 3
Views: 10755
|
Forum: General CCS C Discussion Posted: Thu Apr 08, 2004 1:14 pm Subject: how to steal power from PIC instead of PC RS-232 port |
I have a board, which outputs data with RS232 (MAX3227), the board get power out of PC RS232 port ( or from TD/RTS/DTR).
Now I want to work this board with PIC micro controller, need to supply powe ... |
Topic: RS232 data output ----> RS232 micro controller |
Oliver Lai
Replies: 4
Views: 12131
|
Forum: General CCS C Discussion Posted: Wed Apr 07, 2004 6:59 pm Subject: dbotkin, you are right, but..... |
dbotkin, you are right. I check the RS232 boards of the both sides, found the board of sending RS232, which get power supply from PC D-9 cable (PIN 4: DTR, PIN7: RTS, 10V), but can not get power if I ... |
Topic: RS232 data output ----> RS232 micro controller |
Oliver Lai
Replies: 4
Views: 12131
|
Forum: General CCS C Discussion Posted: Tue Apr 06, 2004 6:49 pm Subject: certainly with RS232 |
The connect is:
unknow micro controller <-----> RS232 data output ------> RS232 (max232) <------> PIC18F452. |
Topic: RS232 data output ----> RS232 micro controller |
Oliver Lai
Replies: 4
Views: 12131
|
Forum: General CCS C Discussion Posted: Tue Apr 06, 2004 6:14 pm Subject: RS232 data output ----> RS232 micro controller |
Today I did some experiments, the system was set up as follow:
RS232 data output ---> PC COM2, received data, then from COM1 ------> RS232 micro controller, all with data baud rate 57600.
It ... |
Topic: RS232 baud rate 57600, receiving by PIC XTL 20MHz, ok? |
Oliver Lai
Replies: 5
Views: 15259
|
Forum: General CCS C Discussion Posted: Tue Apr 06, 2004 3:18 pm Subject: if it is the hardware problem, why other program works? |
I have tried other programs, like ex10 and ex11 (CCS gave example program), it works well. The RS232 can getc() receiving data from key hit.
Any suggestion how can I solve this problem?
I got su ... |
Topic: RS232 baud rate 57600, receiving by PIC XTL 20MHz, ok? |
Oliver Lai
Replies: 5
Views: 15259
|
Forum: General CCS C Discussion Posted: Mon Apr 05, 2004 11:21 pm Subject: RS232 baud rate 57600, receiving by PIC XTL 20MHz, ok? |
Hi, I have got a problem:
From a RS232 output, the baud rate is 57600, I can read data from hyperterminal by PC, but had problem with PIC18F452 (XTL: 20MHz).
I code:
#use rs232 (baud=57600, p ... |
Topic: save data in flash memory just when power down |
Oliver Lai
Replies: 6
Views: 17089
|
Forum: General CCS C Discussion Posted: Sat Feb 28, 2004 4:38 pm Subject: schematic please |
Thanks all for very valuable advises!
I use 5V power supply, will save 8 bytes data, can anybody kindly send me your schematics?
Thanks a lot!
oliver |
Topic: save data in flash memory just when power down |
Oliver Lai
Replies: 6
Views: 17089
|
Forum: General CCS C Discussion Posted: Fri Feb 27, 2004 10:50 pm Subject: save data in flash memory just when power down |
Hi, I need your instruction.
How can I save my data (just one float data) in flash memory (or eeprom) when power is suddenly down?
Thanks,
oliver |
Topic: rs232 for 4k data file from PC to PIC |
Oliver Lai
Replies: 1
Views: 8349
|
Forum: General CCS C Discussion Posted: Thu Feb 12, 2004 8:32 pm Subject: rs232 for 4k data file from PC to PIC |
I have problem with rs232 for 4k data file from PC to PIC, need your helps!!!!!!!!!!
Thanks!
Oliver |
Topic: Programming MAX1463 |
Oliver Lai
Replies: 2
Views: 10029
|
Forum: General CCS C Discussion Posted: Thu Feb 12, 2004 11:45 am Subject: how to get the data file, which is saved in PC, into PIC |
Thanks, Neutone for your kindly suggestion!
My problem actually is: I don't know how to get the data file, which is saved in PC, into PIC (the data file is the code of MAX1463 hex file).
Oliver |
Topic: Programming MAX1463 |
Oliver Lai
Replies: 2
Views: 10029
|
Forum: General CCS C Discussion Posted: Wed Feb 11, 2004 6:56 pm Subject: Programming MAX1463 |
I have MAX1463 and PIC18F452, the interface between them is SPI.
How can I programming MAX1463 through PIC18F452?
Need your knowlege and any suggestions urgent!
Thanks!
Oliver |
Topic: read_spi |
Oliver Lai
Replies: 1
Views: 10252
|
Forum: General CCS C Discussion Posted: Fri Feb 06, 2004 9:07 pm Subject: read_spi |
Can anybody help me to find my code bug? I can not read any data by 3 wire SPI. Thanks!
unsigned long read_spi()
{
byte i;
unsigned long data16=0;
write_spi(0x0 ... |
|