Author |
Message |
Topic: EEDATA memory question |
garyzheng
Replies: 2
Views: 8281
|
Forum: General CCS C Discussion Posted: Mon Jan 10, 2005 1:48 pm Subject: i think you can try write_prgramme_eeprom |
i used this command before. it can work:)
but you should know where your program memory is empty? don't occupy the place where the program is:) |
Topic: why rs232 transmission will let the programm out of control |
garyzheng
Replies: 3
Views: 8343
|
Forum: General CCS C Discussion Posted: Thu Jan 06, 2005 4:00 pm Subject: why rs232 transmission will let the programm out of control |
I am working on Wireless sensors project. So when I used the ICD2 as the debugger and debug the program everything run good(including RS232). But When I burn the program into MCU, and power up, It wil ... |
Topic: Why Program can work under ICD2 programmer mode? |
garyzheng
Replies: 6
Views: 16219
|
Forum: General CCS C Discussion Posted: Tue Jan 04, 2005 11:08 am Subject: Why Program can work under ICD2 programmer mode? |
I am debugging the program for wireless chip(CC1000) +PIC16F876. Everything go right under the ICD2's debugger mode. BUt when I use ICD2 as the programmer and wanna burn the hex file into PIC16F876, i ... |
Topic: HOW ICD2 WORK AS PROGRAMMER? |
garyzheng
Replies: 1
Views: 27440
|
Forum: CCS ICD / Mach X / Load-n-Go Posted: Tue Jan 04, 2005 11:07 am Subject: HOW ICD2 WORK AS PROGRAMMER? |
I am debugging the program for wireless chip(CC1000) +PIC16F876. Everything go right under the ICD2's debugger mode. BUt when I use ICD2 as the programmer and wanna burn the hex file into PIC16F876, i ... |
Topic: anyone know what happen(For ICD2)? |
garyzheng
Replies: 1
Views: 5733
|
Forum: General CCS C Discussion Posted: Fri Dec 10, 2004 1:25 pm Subject: anyone know what happen(For ICD2)? |
I use Max3232(3v), which is the same with Max232(5v), as the RS232 transceiver to communicate between PIC16F876 and PC serial port. BUt when I plug the ICD module jack onto my board, Max3232 will tran ... |
Topic: the atoi() fuction? |
garyzheng
Replies: 3
Views: 12025
|
Forum: General CCS C Discussion Posted: Thu Aug 26, 2004 3:41 pm Subject: the atoi() fuction? |
I want to use the atoi() function to convert the some data of stream transmitted from RS232 into the constant data.
the test code i wrote:
int result;
char rx_buffer[2];
rx_buffer[0]=5;
rx_bu ... |
Topic: usart baudrate problems :"Baud rate out of range" |
garyzheng
Replies: 4
Views: 9710
|
Forum: General CCS C Discussion Posted: Tue Aug 17, 2004 8:58 am Subject: i think the baudrate is too high for CCS compiler |
you should kow that the CCS compiler had some limitation, if it told you the baudrate is too high, you should limit your baudrate, that is all |
Topic: External memory |
garyzheng
Replies: 10
Views: 17383
|
Forum: General CCS C Discussion Posted: Mon Aug 16, 2004 9:31 am Subject: post your code, maybe we can give you some advice:) |
|
Topic: #device statement and internal eeprom write timings |
garyzheng
Replies: 1
Views: 6993
|
Forum: General CCS C Discussion Posted: Fri Aug 13, 2004 8:42 am Subject: the typical writing procession for one byte to eeprom |
The typical writing procession for one byte to eeprom is about 4ms, so you can write the peogram like that.
disable_interrupts(global);
write_program_eeprom(address, value);
delay_m ... |
Topic: PIC18F1320 write_rogram_eeprom problem |
garyzheng
Replies: 3
Views: 9940
|
Forum: General CCS C Discussion Posted: Thu Aug 12, 2004 10:00 am Subject: two consideration:) |
1. check the OERR of RCSTA register, if you use baudrate=9600, maybe the speed of RS232 transmission will more faster than the data writing procession for EEprom, although you will think that you had ... |
Topic: Write_Program_Memory command:) |
garyzheng
Replies: 16
Views: 26894
|
Forum: General CCS C Discussion Posted: Tue Aug 10, 2004 2:00 pm Subject: my packet size is small and is only 10-15 chars. |
I had tought about this question, I write the data from 0x0d00 to 0x0e00,
According the datasheet, i can write 16 chars from 0x0d00 to 0x0d10.
So I don't think the data I stored will exceed the pa ... |
Topic: Write_Program_Memory command:) |
garyzheng
Replies: 16
Views: 26894
|
Forum: General CCS C Discussion Posted: Tue Aug 10, 2004 8:28 am Subject: some one met this problem before?:)please give me a hint:) |
thank you! |
Topic: Write_Program_Memory command:) |
garyzheng
Replies: 16
Views: 26894
|
Forum: General CCS C Discussion Posted: Mon Aug 09, 2004 1:10 pm Subject: new problem:) |
Now my program can work by receiving and store the data into program memory package by package. But now I found a weird problem.
**************part of my program*************
if( (rx_preamble[0] ... |
Topic: Write_Program_Memory command:) |
garyzheng
Replies: 16
Views: 26894
|
Forum: General CCS C Discussion Posted: Fri Aug 06, 2004 11:59 am Subject: thanks, mark and neutone:) |
i will try to delay the package transmission from PC |
Topic: Write_Program_Memory command:) |
garyzheng
Replies: 16
Views: 26894
|
Forum: General CCS C Discussion Posted: Fri Aug 06, 2004 8:25 am Subject: thanks, mark, but i think i meet another problem! |
when I write the data sentence by sentence into ROM, it can work. But when i write the data like a stream, it can only wirte the first sentence, after that , it can not work?
because the data is tr ... |
|