Author |
Message |
Topic: 4x4 keypad error |
project2010
Replies: 7
Views: 6862
|
Forum: General CCS C Discussion Posted: Thu May 27, 2010 2:18 pm Subject: 4x4 keypad error |
if i push 1/4/7/* key pin1,5 will connected
if i push 2/5/8/0 key pin2,6 will connected
if i push 3/6/9/# key pin3,7 will connected
if i push A/B/C/D key pin4,8 will connected |
Topic: 4x4 keypad error |
project2010
Replies: 7
Views: 6862
|
Forum: General CCS C Discussion Posted: Thu May 27, 2010 12:43 pm Subject: 4x4 keypad error |
http://i.imagehost.org/0400/DSC01891.jpg
last time i use the left one....but it broke
i replace by black one....but it does not work....
i checked the black one
pin 1,5 will connect when col ... |
Topic: 4x4 keypad error |
project2010
Replies: 7
Views: 6862
|
Forum: General CCS C Discussion Posted: Thu May 27, 2010 12:22 pm Subject: 4x4 keypad error |
I noticed you're using PortD. Do you have pull-up resistors on the Row
pins ? You need them. You can use 10K resistors.
Dear sir
i added 10k to D4,D5,D6,D7
connect to 5V -----10k-------- ... |
Topic: 4x4 keypad error |
project2010
Replies: 7
Views: 6862
|
Forum: General CCS C Discussion Posted: Thu May 27, 2010 12:16 pm Subject: 4x4 keypad error |
#include<18F4620.h> //include 18F4620 ports
#device adc=10
#fuses HS,NOWDT,PUT,NOPROTECT,NOLVP,NODEBUG
#use delay(clock=20000000) //use 20MHz crystal
#use rs232 ... |
Topic: get data from LCD problem |
project2010
Replies: 9
Views: 6967
|
Forum: General CCS C Discussion Posted: Sun May 16, 2010 12:18 pm Subject: get data from LCD problem |
1. You ignored Ttelmah's post completely, in which he told you to
increase the size of the abc array.
2. You ignored my example of using single quotes, and changed it to
use double quotes.
S ... |
Topic: get data from LCD problem |
project2010
Replies: 9
Views: 6967
|
Forum: General CCS C Discussion Posted: Sun May 16, 2010 11:33 am Subject: get data from LCD problem |
#include<18F4620.h> //include 18F4620 ports
#device adc=10
#fuses HS,NOWDT,PUT,NOPROTECT,NOLVP,NODEBUG
#use delay(clock=20000000) //use 20MHz crystal
#use rs232& ... |
Topic: get data from LCD problem |
project2010
Replies: 9
Views: 6967
|
Forum: General CCS C Discussion Posted: Sat May 15, 2010 2:46 pm Subject: get data from LCD problem |
#include<18F4620.h> //include 18F4620 ports
#device adc=10
#fuses HS,NOWDT,PUT,NOPROTECT,NOLVP,NODEBUG
#use delay(clock=20000000) //use 20MHz crystal
#use rs232 ... |
Topic: get data from LCD problem |
project2010
Replies: 9
Views: 6967
|
Forum: General CCS C Discussion Posted: Thu May 13, 2010 11:58 pm Subject: get data from LCD problem |
Actually, I'm using the keypad to input some number, and store it.
Use for set the time on DS1307.....so need 2 digits stored in one number....
|
Topic: get data from LCD problem |
project2010
Replies: 9
Views: 6967
|
Forum: General CCS C Discussion Posted: Thu May 13, 2010 2:41 pm Subject: get data from LCD problem |
i can use the lcd_getc function,but
if i want a 2 digit data, how can i get it?
(using the Flexible LCD driver for 20x4 LCDs)
for example
123456789 < 1 in lcdxy (1,1)
i would like to get ... |
Topic: ds1307 problem |
project2010
Replies: 1
Views: 2921
|
Forum: General CCS C Discussion Posted: Sat May 01, 2010 12:50 pm Subject: ds1307 problem |
I'm using the following driver
09,05,20,30,00);
But it have an error
*** Error 51 "test.c" Line 282(28,29): A numeric expression must appear here
I write (10,05,9,05,20,30,00);
or ... |
Topic: LCD display keep flashing |
project2010
Replies: 5
Views: 5038
|
Forum: General CCS C Discussion Posted: Sun Apr 25, 2010 11:14 am Subject: LCD display keep flashing |
i try it that's good.
i also found if i use %3.0f it can auto provide a space before the no.
_88 <like this |
Topic: LCD display keep flashing |
project2010
Replies: 5
Views: 5038
|
Forum: General CCS C Discussion Posted: Sun Apr 25, 2010 10:45 am Subject: LCD display keep flashing |
but if the volt under 10 such as 9.56 it will display 9.56vv
See this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=34424&start=2
thank you PCM programmer:grin: , problem fixed.
This ... |
Topic: LCD display keep flashing |
project2010
Replies: 5
Views: 5038
|
Forum: General CCS C Discussion Posted: Sun Apr 25, 2010 10:44 am Subject: LCD display keep flashing |
The problem is that your input voltage is higher than the Vref.
Using:
setup_adc_ports(AN0); // The +5v is used as a Vref.
I gues that you are using a Vin/2 voltage divider.
When the input v ... |
Topic: LCD display keep flashing |
project2010
Replies: 5
Views: 5038
|
Forum: General CCS C Discussion Posted: Sun Apr 25, 2010 7:19 am Subject: LCD display keep flashing |
#include <18F4620.H>
#device adc=10
#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock=2000000)
//#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS)
#i ... |
Topic: what mean LCD code "\r" "\b"? |
project2010
Replies: 3
Views: 5593
|
Forum: General CCS C Discussion Posted: Tue Apr 13, 2010 1:21 pm Subject: what mean LCD code "\r" "\b"? |
"\f" = flash the LCD
Don't assume a function, based upon guessing the abbreviation.
The Flex drivers are based on the original CCS drivers. Read the
documentation at the start of the ... |
|