HOW TO store data & GET DATA IN PSCO3-ES2 FROM KEYBOARD & LCD

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi

   

i m trying to write to data (like 12345) from keybaord. BUT i m unable to store this value.

   

I M USING  CY8C3866AXI-40.

   

plz help me.

0 Likes
1 Solution
Anonymous
Not applicable

 Could you provide us more information on what you are trying to do,

   
        
  • What kind of Keyboard are you using, is it a standard USB keyboard.
  •     
  • How far have you gone with your design
  •    

View solution in original post

0 Likes
5 Replies
Anonymous
Not applicable

 Could you provide us more information on what you are trying to do,

   
        
  • What kind of Keyboard are you using, is it a standard USB keyboard.
  •     
  • How far have you gone with your design
  •    
0 Likes
Anonymous
Not applicable

Hey SURENDRA,

   

 

   

You can use different communication protocols for communication of PSoC3/5 with PC. Some of them are:

   

1) UART to send data from PC to PSoC using the Hyperterminal.

   

2) I2C with the aid of Bridge Control Panel where PSoC acts as I2C Slave using EZI2C Component (PC acts as a master).

   

3) USB where PSoC acts as a USB device.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi UV,

   

i m sending you C program file main.c. In this program , i am using 2x4 matrix keybaord & 2x16 lcd. In this program i am writing from keybaord any value to display on lcd.    IN    set_offset()   function i m writing 5 digit value frm keybaord  and lcd diaplays tthis value. now i m trying to store  this numbet/data . when i give password  4321, lcd should diaplay store offset.            I want to store any number /digit in MEMORY through my keyboard setting.  I dont know how to write in memory & get data from memory to lcd.     please help

0 Likes
Anonymous
Not applicable

Hi

   

i m sending you C program file main.c. In this program , i am using 2x4 matrix keybaord & 2x16 lcd. In this program i am writing from keybaord any value to display on lcd.    IN    set_offset()   function i m writing 5 digit value frm keybaord  and lcd diaplays tthis value. now i m trying to store  this numbet/data . when i give password  4321, lcd should diaplay store offset.            I want to store any number /digit in MEMORY through my keyboard setting.  I dont know how to write in memory & get data from memory to lcd.     please help

0 Likes
Anonymous
Not applicable
        
  • The simplest way to store in memory is to store it on SRAM. For this all you need to do is, declare an array of type uint8. The array will be allocated some memory in SRAM. As each key is being pressed, the same can be stored in successive elements of the array. The same can be displayed on LCD using the LCD_Char_PrintNumber() API.
  •     
  • In your case, since you are waiting for a sequence of keys being pressed, these keys could be stored in the array and check if the particular sequence has arrived. The comparisons can be made using simple if statements.
  •    
0 Likes