I sniffed DB4..7 of an 2*16 LCD using the below circuit :
As you see above I connected En pin of LCD to INT0 of Atmega32 (That is configured for Falling Edge firing).
In the interrupt routine I wrote this below codes:
interrupt [EXT_INT0] void ext_int0_isr(void) { printf("%c",'#'); printf("%02x", PINA); }
In the other hand, in my computer I wrote this code :
import serial ser=serial.Serial('COM3') while(1): if (ser.read(1)=='#'): print '#' print ser.read(2) else: print 'Oops'
And when I powered on my circuit, This below output appears in python :
# 00 # 30 # 30 # 80 # c0 # 10 # 10 # 00 # 11 # 41 # 61 # 00 # 91 # a1 # b1 # b1 # b1 # b1 # b1 # b1 # b1 # b1 # 10 # 10 # 00 # d1 # a1 # 00 # 91 # 91 # 91 # 91 # 91 # 91 # 91 # 91 # 00 # 30 # 30 # 80 # c0 # 10 # 10 # 00 # 11 # 41 # 61 # 01 # e1 # a1 # b1 # b1 # b1 # b1 # b1 # b1 # b1 # b1 # 10 # 10 # 00 # d1 # a1 # 00 # 91 # 91 # 91 # 91 # 91 # 91 # 81 # 81 # 00 # 30 # 30 # 80 # c0 # 10 # 10 # 00 # 11 # 41 # 61 # 01 # e1 # a1 # b1 # b1 # b1 # b1 # b1 # b1 # b1 # b1 # 10 # 10 # 00 # d1 # a1 # 00 # 91 # 91 # 91 # 91 # 91 # 91 # 71 # 71
Now I want to analyze this output! But I don't have any idea what is the meaning of it. I appreciate if translate some part of it.