here is some interface showed including microC code and proteus schematic.
1.ATMEGA16 interface with LCD (microC code & proteus file)
2.ATMEGA16 interface with KEYPAD 4X3 (microC code & proteus file)
3.ATMEGA16 interface with RS232 serial port (microC code & proteus file)
4.ATMEGA16 interface with MATLAB (microC code & proteus file, matlab code)
how to test the design.
first run proteus. then run matlab and execute matlab code. matlab will send data to avr first. avr will display the data in lcd. then write down any 4digits by keypad in proteus. to send this 4digits to matlab press * or press # to reinsert the digits.
notes:- matlab delay is 2second.so if you sleep while pressing the keypad then serial port timeout will happen within 6 to 7seconds and matlab will close the port.
secondly if you want to send more data to avr then you have to change in microC code. you have to increase the value of i variable after which avr will stop taking data. and if you want to send more data to matlab then change variable in microC code....
special note:- in microC pro avr keypad_key_press and keypad_key_click neither of this function work for the keypad.so i have build myself a function called keypad...
download codes and schematic:-http://ifile.it/z8oltjdhttps://rapidshare.com/files/1749134078/matlab___proteus_interface.rarhttp://www.megaupload.com/?d=DL8X1VIR