Author |
Message |
Topic: Interrupt on port b not working |
AD76XYZ
Replies: 3
Views: 6106
|
Forum: General CCS C Discussion Posted: Tue Jul 17, 2012 2:37 am Subject: Interrupt on port b not working |
Hi,
I was testing port b interrupt.
Am using.
PIC16F886 @4MHz Internal Osc.
CCS C Version 4.105
I have connected LED on A0 and giving low signal on RB7-RB4 but no LED glow.
The pins RB7-RB4 i ... |
Topic: How to store in EEPROM of PIC16F886 |
AD76XYZ
Replies: 1
Views: 4175
|
Forum: General CCS C Discussion Posted: Sat Jul 07, 2012 11:32 pm Subject: How to store in EEPROM of PIC16F886 |
Till date I have implemented the things. Reading keypad, storing into array and then comparing the two array. Now I want to store this array data, that is password in EEPROM of PIC16F886, since this c ... |
Topic: kbd_getc()-Getting After Releasing A Key |
AD76XYZ
Replies: 2
Views: 5418
|
Forum: General CCS C Discussion Posted: Sat Jul 07, 2012 11:18 pm Subject: Thanks |
Thanks very much PCM Programmer.
It works fine.
Again thanks. |
Topic: kbd_getc()-Getting After Releasing A Key |
AD76XYZ
Replies: 2
Views: 5418
|
Forum: General CCS C Discussion Posted: Sat Jul 07, 2012 10:41 pm Subject: kbd_getc()-Getting After Releasing A Key |
Hi,
Following things I used in circuit.
PIC16F886
4X3 Matrix Keypad.
16X2 LCD Module.
CCS C Version 4.105
I have connected matrix keypad to port B and LCD on port C. And used sample code of ... |
Topic: Only zeros on LCD! |
AD76XYZ
Replies: 7
Views: 11562
|
Forum: General CCS C Discussion Posted: Tue Jul 03, 2012 5:17 am Subject: Thanks temtronic |
Thanks temtronic for nice explanation of the two types of number representation. And that link also very helpful and good. |
Topic: Only zeros on LCD! |
AD76XYZ
Replies: 7
Views: 11562
|
Forum: General CCS C Discussion Posted: Tue Jul 03, 2012 4:19 am Subject: Thanks Ttelmah |
Thanks Ttelmah for reply and helping for zero. I did not understand what you mean by not a number 0 but a text character zero '0', what is the difference.
Can you please tell me so how it should be h ... |
Topic: Only zeros on LCD! |
AD76XYZ
Replies: 7
Views: 11562
|
Forum: General CCS C Discussion Posted: Tue Jul 03, 2012 1:24 am Subject: Same |
The file LCD16X2.C is same LCD.C, I changed the name according my project work. And this KBD4X3.C is the one which I got from this forum. |
Topic: Only zeros on LCD! |
AD76XYZ
Replies: 7
Views: 11562
|
Forum: General CCS C Discussion Posted: Tue Jul 03, 2012 12:53 am Subject: Only zeros on LCD! |
CCS C Ver. 4.105
PIC16F886
4X3 Matrix Keypad
LCD 16X2
I have written a code for code lock project. In this I am taking key value using k=kbd_getc() and giving the key value to function input_dig ... |
Topic: 20x4 LCD Flex driver error |
AD76XYZ
Replies: 12
Views: 24577
|
Forum: General CCS C Discussion Posted: Mon Jul 02, 2012 11:44 am Subject: To PCM Programmer |
No no, I am not mixing two or more LCD driver. At a time only one I included in main file. The standard LCD.C driver works perfectly but the driver for 4x20 which I got from this forum is giving error ... |
Topic: 20x4 LCD Flex driver error |
AD76XYZ
Replies: 12
Views: 24577
|
Forum: General CCS C Discussion Posted: Mon Jul 02, 2012 11:41 am Subject: How to send k's value to function? |
See this code.
unsigned char *k;
count=0;
do
{
k = kbd_getc();
save_digit(&k);
}
while(count<=3);
After k=kbd_getc(), k will contain the ... |
Topic: 20x4 LCD Flex driver error |
AD76XYZ
Replies: 12
Views: 24577
|
Forum: General CCS C Discussion Posted: Mon Jul 02, 2012 11:08 am Subject: temtronic, confused!!! |
Hi,
I mean, I used 16x2 LCD module in same ckt and it work with LCD.C driver, but when I connect 20x4 LCD module and included LCD420.C driver which I got from this CCS forum, when I compiled I got ... |
Topic: 20x4 LCD Flex driver error |
AD76XYZ
Replies: 12
Views: 24577
|
Forum: General CCS C Discussion Posted: Mon Jul 02, 2012 1:13 am Subject: Same problem |
Thanks for reply.
My 20x4 LCD is on portc thats the reason I define port C pins.
Just sake of experiment I included that Flex_LCD420.C driver in mine code and compiled but still I got those errors ... |
Topic: 20x4 LCD Flex driver error |
AD76XYZ
Replies: 12
Views: 24577
|
Forum: General CCS C Discussion Posted: Mon Jul 02, 2012 12:17 am Subject: Sorry |
Hi,
Sorry for not giving the detailed info.
Here is the info.
PIC16F886 running on internal OSC at 4MHz.
4x3 keypad at portB (B7-B1)
16x2 LCD on portc
All work properly when I use CCS's LCD. ... |
Topic: 20x4 LCD Flex driver error |
AD76XYZ
Replies: 12
Views: 24577
|
Forum: General CCS C Discussion Posted: Sun Jul 01, 2012 10:48 pm Subject: 20x4 LCD Flex driver error |
I got this driver for 20x4 lcd module. But it gives lot of error.
Please help me.
// Flex_LCD420.c
// These pins are for my Microchip PicDem2-Plus board,
// which I used to test this dri ... |
Topic: 4X3 Keypad not working |
AD76XYZ
Replies: 6
Views: 12565
|
Forum: General CCS C Discussion Posted: Sun Jul 01, 2012 1:21 am Subject: Logic of storing in array |
Thanks for helping. Actually PIC's port B was damaged. I changed the PIC and now keypad is working fine with a same code.
I am making code lock project. I want to know how to take number from keypa ... |
|