Author |
Message |
Topic: Some PS2 keyboard interfacing problems |
water_river
Replies: 4
Views: 14509
|
Forum: General CCS C Discussion Posted: Thu Mar 04, 2004 1:16 am Subject: Some PS2 keyboard interfacing problems |
hi,all,
Thank you ver much. I found that some clock cycles were missed as too many things were done inside the interrupt function. Now I can get the data correctly. But when I try using anoth ... |
Topic: Some PS2 keyboard interfacing problems |
water_river
Replies: 4
Views: 14509
|
Forum: General CCS C Discussion Posted: Wed Mar 03, 2004 4:19 am Subject: Some PS2 keyboard interfacing problems |
hi,all
I am doing a PS2 keyboard interfacing project with the microcontroller but meet some strange problems:
1. It usually sends out two or three bytes when a key is pressed, but none of them ... |
Topic: 16F877-Not Enough RAM for variables?? |
water_river
Replies: 6
Views: 16191
|
Forum: General CCS C Discussion Posted: Sat Feb 28, 2004 1:04 am Subject: 16F877-Not Enough RAM for variables?? |
Thank you very much for the solutions.
BTW, the PCM compiler I used is quite old. Right now I am not able to check out its version. |
Topic: 16F877-Not Enough RAM for variables?? |
water_river
Replies: 6
Views: 16191
|
Forum: General CCS C Discussion Posted: Fri Feb 27, 2004 7:51 am Subject: 16F877-Not Enough RAM for variables?? |
hi,all
I wrote a program to interface a keyboard and LCD. I created an array of charactes whose length is 128. After clicking "build all", it said that there is not enough RAM for variables. D ... |
Topic: Same C program but PCM and PCW output differently |
water_river
Replies: 4
Views: 13185
|
Forum: General CCS C Discussion Posted: Wed Feb 25, 2004 7:08 pm Subject: Same C program but PCM and PCW output differently |
hi, Douglas,
Thanks a lot for your reply. Could you please explain in more details, as I don't understand it very well?? Do you mean PCW v3.094 cannot be used to do any I/O function for 16xxx or 1 ... |
Topic: Same C program but PCM and PCW output differently |
water_river
Replies: 4
Views: 13185
|
Forum: General CCS C Discussion Posted: Wed Feb 25, 2004 3:59 am Subject: Same C program but PCM and PCW output differently |
I did copy and paste, but I also noticed that in the end of the memory, it is written that "ADDLW 0xff ". Not only that, but also in the PCW's program memory, the processor never touches the PORTB reg ... |
Topic: Same C program but PCM and PCW output differently |
water_river
Replies: 4
Views: 13185
|
Forum: General CCS C Discussion Posted: Tue Feb 24, 2004 9:54 pm Subject: Same C program but PCM and PCW output differently |
hi, all,
I am using PCM and PCW to compile the same program but have different outputs.
With the C program:
//
#include <16f877.h>
#use delay (clock=20000000)
#fuses HS, NOWDT, ... |
Topic: Please Help Me With The Strange Problem---UPDATED |
water_river
Replies: 10
Views: 22384
|
Forum: General CCS C Discussion Posted: Tue Feb 24, 2004 9:48 pm Subject: Same C program but two different program memories written |
hi, all,
With the same C program:
//
#include <16f877.h>
#use delay (clock=20000000)
#fuses HS, NOWDT, PUT, NOBROWNOUT, NOLVP, PROTECT
void main(){
//set_tris_b(0x00); ... |
Topic: Please Help Me With The Strange Problem---UPDATED |
water_river
Replies: 10
Views: 22384
|
Forum: General CCS C Discussion Posted: Tue Feb 24, 2004 12:20 am Subject: Please Help Me With The Strange Problem---UPDATED |
When I changed Port B to C, it still doesn't work.
Now I am using PCM, there is no problem.
But the problem is that I need to program PIC18F8720 in the project, although the C program would be almos ... |
Topic: Please Help Me With The Strange Problem---UPDATED |
water_river
Replies: 10
Views: 22384
|
Forum: General CCS C Discussion Posted: Mon Feb 23, 2004 3:46 am Subject: Please Help Me With The Strange Problem---UPDATED |
I am using the Demo board from Microchip, so there should not be any problem with hardware, i think.
In fact, when I use another compiler, PCM, it works. |
Topic: Please Help Me With The Strange Problem---UPDATED |
water_river
Replies: 10
Views: 22384
|
Forum: General CCS C Discussion Posted: Mon Feb 23, 2004 3:06 am Subject: Please Help Me With The Strange Problem---UPDATED |
thank you in advance.
I'll wait for your reply |
Topic: Please Help Me With The Strange Problem---UPDATED |
water_river
Replies: 10
Views: 22384
|
Forum: General CCS C Discussion Posted: Mon Feb 23, 2004 12:18 am Subject: Program Memory Selection?? |
It still doesn't work
I have checked the program memory selection. Under the self-selection mode, it programs from 0x0 to 0xB only. How come?
Then I use the manual selection and change it to full ra ... |
Topic: Please Help Me With The Strange Problem---UPDATED |
water_river
Replies: 10
Views: 22384
|
Forum: General CCS C Discussion Posted: Sun Feb 22, 2004 8:52 pm Subject: Please Help Me With The Strange Problem---UPDATED |
hi, all,
I use PCW 3.094 and MPLAB 6.40 to program PIC16F877. The program is very simple:
//
#include <16f877.h>
#use delay (clock=20000000)
#fuses HS, NOWDT, PUT, NOBROWNOUT, NO ... |
Topic: .cof file problem again |
water_river
Replies: 3
Views: 14680
|
Forum: General CCS C Discussion Posted: Tue Feb 17, 2004 10:53 pm Subject: failed to load .cod file instead?? |
When I removed the "printf" statements, it still failed to load the .cof file.
But as I right clicked the c file and changed the Debug Option to "none", it became "failed to load the .cod file" inste ... |
Topic: One too many printf() statements cause compiler error: .cof |
water_river
Replies: 2
Views: 11551
|
Forum: General CCS C Discussion Posted: Tue Feb 17, 2004 10:49 pm Subject: failed to load .cod file instead |
When I did what you have done, ie, right clicking the c file and changing the debug option, it said "failed to load .cod file" instead.
Strange. Anyone knows why?? |
|