Author |
Message |
Topic: PIC16F687: problem with kbhit and getc |
hanhao
Replies: 11
Views: 9854
|
Forum: General CCS C Discussion Posted: Tue May 29, 2007 2:14 am Subject: PIC16F687: problem with kbhit and getc |
yes that solved the problem
i shorted the pin to pin 12 instead of 11
no bug fixing was done
thanks |
Topic: PIC16F687: problem with kbhit and getc |
hanhao
Replies: 11
Views: 9854
|
Forum: General CCS C Discussion Posted: Mon May 28, 2007 2:22 am Subject: PIC16F687: problem with kbhit and getc |
hi
thanks for your solution
but unfortunately it does not work
kbhit(GPS) never returns true and its sampling rate is higher than rs232 baud rate
a work around used is
if(!input(PIN_B ... |
Topic: PIC16F687: problem with kbhit and getc |
hanhao
Replies: 11
Views: 9854
|
Forum: General CCS C Discussion Posted: Thu May 24, 2007 9:55 pm Subject: PIC16F687: problem with kbhit and getc |
Please compile the program that I posted.
CCS PCM C Compiler, Version 4.013, 28193 25-May-07 11:47
Filename: kbit.lst
ROM used: 81 word ... |
Topic: PIC16F687: problem with kbhit and getc |
hanhao
Replies: 11
Views: 9854
|
Forum: General CCS C Discussion Posted: Thu May 24, 2007 1:42 am Subject: PIC16F687: problem with kbhit and getc |
sry i am not good in assembly
hope you can find something from here
void main()
.................... {
*
0017: CLRF 04
0018: BCF 03.7
0019: MOVLW 1F
001A& ... |
Topic: PIC16F687: problem with kbhit and getc |
hanhao
Replies: 11
Views: 9854
|
Forum: General CCS C Discussion Posted: Wed May 23, 2007 7:51 pm Subject: PIC16F687: problem with kbhit and getc |
Post your compiler version. You can find it at the top of the .LST file.
Look for that file in your project directory. It's a 4-digit number like
3.249, 4.013, 4.038, etc.
4.013 |
Topic: PIC16F687: problem with kbhit and getc |
hanhao
Replies: 11
Views: 9854
|
Forum: General CCS C Discussion Posted: Wed May 23, 2007 6:34 pm Subject: PIC16F687: problem with kbhit and getc |
problem with kbhit and getc
hi,i got a problem with kbhit and getc, here is my code
#use rs232(baud=9600,parity=N,xmit=PIN_B7,rcv=PIN_B5,stream=GPS)
....
in main....
while( ... |
Topic: Noise handling algorithm in 8 wire touch screen |
hanhao
Replies: 11
Views: 10050
|
Forum: General CCS C Discussion Posted: Mon Apr 30, 2007 5:12 am Subject: Noise handling algorithm in 8 wire touch screen |
thank u all for your suggestions! i managed to solve the problem with an alternate averaging method without any hardware alterations |
Topic: Noise handling algorithm in 8 wire touch screen |
hanhao
Replies: 11
Views: 10050
|
Forum: General CCS C Discussion Posted: Thu Apr 26, 2007 6:24 pm Subject: Noise handling algorithm in 8 wire touch screen |
What if you calculate a new boundary circle based on the latest reading? If the old true point is within the new boundary circle you keep the cursor at the old point. If not then abandon the old poi ... |
Topic: Noise handling algorithm in 8 wire touch screen |
hanhao
Replies: 11
Views: 10050
|
Forum: General CCS C Discussion Posted: Thu Apr 26, 2007 1:09 am Subject: Noise handling algorithm in 8 wire touch screen |
The link you provided in the first post uses a TI chip to interface to the system, I assumed you were using it as well.
What is your algorithm like? I assume something like this:
- set outputs to ... |
Topic: Noise handling algorithm in 8 wire touch screen |
hanhao
Replies: 11
Views: 10050
|
Forum: General CCS C Discussion Posted: Wed Apr 25, 2007 10:26 pm Subject: Noise handling algorithm in 8 wire touch screen |
The TI chip that you're using....do you have power supply decoupling capacitors to ground very near each Vdd pin? Is there supposed to be capacitors to ground on the touch screen sense lines? Is thi ... |
Topic: Noise handling algorithm in 8 wire touch screen |
hanhao
Replies: 11
Views: 10050
|
Forum: General CCS C Discussion Posted: Wed Apr 25, 2007 9:13 pm Subject: Noise handling algorithm in 8 wire touch screen |
What (if any) hardware filtering/conditioning is in place? If there is a hardware lowpass filter in place, what is the cutoff frequency? My gut instinct would be that lowering the cutoff frequency o ... |
Topic: Noise handling algorithm in 8 wire touch screen |
hanhao
Replies: 11
Views: 10050
|
Forum: General CCS C Discussion Posted: Wed Apr 25, 2007 7:50 pm Subject: Re: Noise handling algorithm in 8 wire touch screen |
<double post> |
Topic: Noise handling algorithm in 8 wire touch screen |
hanhao
Replies: 11
Views: 10050
|
Forum: General CCS C Discussion Posted: Wed Apr 25, 2007 6:46 pm Subject: Noise handling algorithm in 8 wire touch screen |
Noise handling algorithm in 8 wire touch screen
here's how a touch screen work http://img263.imageshack.us/img263/8210/circlejy5.jpg
http://img266.imageshack.us/img266/5989/circlehf0.jpg
but the ... |
Topic: problem with printf using PIC16F687 - garbage on RS232 |
hanhao
Replies: 16
Views: 20972
|
Forum: General CCS C Discussion Posted: Tue Mar 27, 2007 1:17 am Subject: problem with printf using PIC16F687 - garbage on RS232 |
finally got it to work using the surface mount sipex chip
pretty bad noise on the negative voltage but still readable
http://img262.imageshack.us/img262/9804/probeoftransceivermu0.jpg
but now it se ... |
Topic: Baud rate programmed at 9600, but must be read at 38400 |
hanhao
Replies: 1
Views: 3033
|
Forum: General CCS C Discussion Posted: Tue Mar 27, 2007 1:14 am Subject: Baud rate programmed at 9600, but must be read at 38400 |
Baud rate programmed at 9600, but must be read at 38400
PIC16f687
look at this, i programmed my micro controller's baud rate at 9600, but i must read it at 38400. else it gives garbage
http://i ... |
|