Author |
Message |
Topic: pic16f877a interfacing 4x7 matrix using switchs in KBD.C |
swapnil14327
Replies: 11
Views: 18965
|
Forum: General CCS C Discussion Posted: Thu Dec 11, 2014 5:35 pm Subject: pic16f877a interfacing 4x7 matrix using switchs in KBD.C |
#include "kbd.c"
void main()
{
char k,s;
int i=0; //counter
kbd_init();
while (TRUE)
{
k = kbd_getc();
if(k != 0) ... |
Topic: pic16f877a interfacing 4x7 matrix using switchs in KBD.C |
swapnil14327
Replies: 11
Views: 18965
|
Forum: General CCS C Discussion Posted: Thu Dec 11, 2014 5:17 pm Subject: pic16f877a interfacing 4x7 matrix using switchs in KBD.C |
Thanks again mate...
works fine now changed completely according to your code..
just some glitches....
working with them now..
#byte kbd_rows = 0x189 // Port g
#byte kbd_cols = 0x188 ... |
Topic: pic16f877a interfacing 4x7 matrix using switchs in KBD.C |
swapnil14327
Replies: 11
Views: 18965
|
Forum: General CCS C Discussion Posted: Thu Dec 11, 2014 2:56 pm Subject: pic16f877a interfacing 4x7 matrix using switchs in KBD.C |
how do i upload an image in here..?
i have the design but not able to upload the photo.. |
Topic: pic16f877a interfacing 4x7 matrix using switchs in KBD.C |
swapnil14327
Replies: 11
Views: 18965
|
Forum: General CCS C Discussion Posted: Thu Dec 11, 2014 2:53 pm Subject: pic16f877a interfacing 4x7 matrix using switchs in KBD.C |
i want to use 4x7 keypad
so i have to use two ports.. one for rows and other for coulum..
the example you gave is for 4x3 keypad..(12 switches)
i tried the modification but its not working..
... |
Topic: pic16f877a interfacing 4x7 matrix using switchs in KBD.C |
swapnil14327
Replies: 11
Views: 18965
|
Forum: General CCS C Discussion Posted: Thu Dec 11, 2014 2:21 pm Subject: 4x7 keypad with pic16f946 |
hello can any one help me with the below code..
its not working..
as pic16f877a was not sufficient with IO.
i am using pic16f946.
kbd.c
#byte kbd_rows = 0x189 // Port g
#byte kbd_cols = ... |
Topic: pic16f877a interfacing 4x7 matrix using switchs in KBD.C |
swapnil14327
Replies: 11
Views: 18965
|
Forum: General CCS C Discussion Posted: Thu Dec 11, 2014 12:14 am Subject: pic16f877a interfacing 4x7 matrix using switchs in KBD.C |
but i want 7x4 matrix.
i.e 4 Rows and 7 columns.
which will require 2 Ports. (consider Port A and B)
Here is a modified version of kbd.c, where I put the rows and columns
on separate ports. I ... |
Topic: pic16f877a interfacing 4x7 matrix using switchs in KBD.C |
swapnil14327
Replies: 11
Views: 18965
|
Forum: General CCS C Discussion Posted: Wed Dec 10, 2014 2:03 pm Subject: pic16f877a interfacing 4x7 matrix using switchs in KBD.C |
Hello,
I am using generic code KBD.c
the above code uses single Port with 3 column and 4 rows
#byte kbd = getenv("SFR:PORTD")
#define set_tris_kbd(x) set_tr ... |
Topic: help with multiple timer interrupts on PIC16F877A |
swapnil14327
Replies: 8
Views: 12714
|
Forum: General CCS C Discussion Posted: Sat Jul 26, 2014 4:29 am Subject: help with multiple timer interrupts on PIC16F877A |
Thanks for the reply..I will go though it.. |
Topic: help with multiple timer interrupts on PIC16F877A |
swapnil14327
Replies: 8
Views: 12714
|
Forum: General CCS C Discussion Posted: Fri Jul 25, 2014 4:37 am Subject: help with multiple timer interrupts on PIC16F877A |
Thanks Ttelmah
I am using nec protocol only (i.e 38khz)
and sorry for "sine wave" my mistake, pic pwm produces square wave which i am getting proper 38khz.
Start pulse - 4* interval ... |
Topic: help with multiple timer interrupts on PIC16F877A |
swapnil14327
Replies: 8
Views: 12714
|
Forum: General CCS C Discussion Posted: Fri Jul 25, 2014 3:39 am Subject: help with multiple timer interrupts on PIC16F877A |
thanks a lot mike for the reply.
i did not get it..
timer 2 i have already used to produce 38khz wave.
can u please write in syntax format, i am a bit confused for
Set up timer2 to initiate ... |
Topic: help with multiple timer interrupts on PIC16F877A |
swapnil14327
Replies: 8
Views: 12714
|
Forum: General CCS C Discussion Posted: Fri Jul 25, 2014 12:44 am Subject: help with multiple timer interrupts on PIC16F877A |
Hello,
i am new to this forum.
i wanted help regarding timer interrupts on PIC16F877A
i have a logic where i use
input:: as any binary string (1010110..)
output:: i want 38khz sine wave wi ... |
|