Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

need KEYPAD headers

Status
Not open for further replies.

hareesh.makesu

New Member
HI, every body

I AM WORKING with PIC 18F4620 along with CCS can any body
help me to how to write keypad program. PRESENT i am using KBD.C file
of CCS. can anybody send header file and program.
*************************************
This is my coading***********************
**********************************
#include "C:\Program Files\PICC\Projects\KEYPAD\keyprt.h"
#include <KBD.C>

unsigned char k;

void main()
{

port_b_pullups(TRUE);
setup_adc_ports(NO_ANALOGS|VSS_VDD);
setup_adc(ADC_OFF|ADC_TAD_MUL_0);
setup_psp(PSP_DISABLED);
setup_spi(SPI_SS_DISABLED);
setup_wdt(WDT_OFF);
setup_timer_0(RTCC_INTERNAL);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_comparator(NC_NC_NC_NC);
setup_vref(FALSE);
kbd_init();
//Setup_Oscillator parameter not selected from Intr Oscillator Config tab

// TODO: USER CODE!!
output_c(0xff);

while (1)
{
k=kbd_getc();

k=k+48;
output_a(k);
delay_ms(100);
//lcd_putc("\f");
}

}
 
Status
Not open for further replies.

Latest threads

EE World Online Articles

Loading
Top