background image

MikroElektronika

Keypad 4x4

Manual

All Mikroelektronika’s development systems feature a large number of peripheral 

modules  expanding  microcontroller’s  range  of  application  and  making  the 

process  of  program  testing  easier.  In  addition  to  these  modules,  it  is  also 

possible to use numerous additional modules linked to the development system 

through the I/O port connectors. Some of these additional modules can operate 

as stand-alone devices without being connected to the microcontroller.

Additional board

Содержание Keypad 4x4

Страница 1: ... range of application and making the process of program testing easier In addition to these modules it is also possible to use numerous additional modules linked to the development system through the I O port connectors Some of these additional modules can operate as stand alone devices without being connected to the microcontroller Additional board ...

Страница 2: ... in mikroC mikroBasic and mikroPascal programming languages In all cases the number loaded via keypad is converted into the equivalent ASCII code 0 9 A F and then it is displayed in the second line of LCD display In this case pull down resistors are placed on output pins RD0 RD3 and are used to determine logic zero 0 in idle state The keyboard is usually used as follows Four microcontroller s pins...

Страница 3: ... key to be pressed and released do kp Keypad_Key_Click Store key code in kp variable while kp Prepare value for output transform key to it s ASCII value switch kp case 10 kp 42 break Uncomment this block for keypad4x3 case 11 kp 48 break 0 case 12 kp 35 break default kp 48 case 1 kp 49 break 1 Uncomment this block for keypad4x4 case 2 kp 50 break 2 case 3 kp 51 break 3 case 4 kp 65 break A case 5 ...

Страница 4: ... Write message text on LCD Lcd_Out 2 1 Times while TRUE kp 0 Reset key code variable Wait for key to be pressed and released while kp 0 kp Keypad_Key_Click Store key code in kp variable wend Prepare value for output transform key to it s ASCII value select case kp case 10 kp 42 Uncomment this block for keypad4x3 case 11 kp 48 0 case 12 kp 35 default kp 48 case 1 kp 49 1 Uncomment this block for ke...

Страница 5: ...rsor off Lcd_Out 1 1 Key Write message text on Lcd Lcd_Out 2 1 Times while TRUE do begin kp 0 Reset key code variable Wait for key to be pressed and released while kp 0 do kp Keypad_Key_Click Store key code in kp variable Prepare value for output transform key to it s ASCII value case kp of case 10 kp 42 Uncomment this block for keypad4x3 case 11 kp 48 0 case 12 kp 35 default kp 48 1 kp 49 1 Uncom...

Страница 6: ...a large number of add on modules and ready to use examples all our users regardless of their experience have the possibility to develop their project in a fast and efficient way Development System If you want to learn more about our products please visit our website at www mikroe com If you are experiencing some problems with any of our products or just need additional information please place you...

Отзывы: