brucelee2
Member level 2
Hi all,
Im working on a personal project for my room. I have a HMI(Human Machine Interface), its a 800*480 Screen. It works of various commands that you send to it( I communication protocal and a dataframe) using standard serial connection.
Now:
The screen sends a data frame to the microcontroller at a specified Baud rate. This data frame looks something like:
0xAA(start) 0x73(touch screen coord.) (16 bit X coord.) (16bit Y coord) 0x33 0x3C 0xC3
So there are a fare amount of bits moving when i push the touch screen.
THE PIC ONLY HAS A 8 BIT REGISTER IN THE UART MODULE I GUESS. SO HOW CAN I GET THIS MANY BITS INTO A VARIABLE?(MAINTAINING BAUD RATES ECT...)
Maybe interrupts? Im using MIKROELECTRONIKA MikroC compiler. There is a simple UART Library bit seems to be 8 bits at a time......
Look forward to hearing from you guys!
Cheers,
Bruce
Im working on a personal project for my room. I have a HMI(Human Machine Interface), its a 800*480 Screen. It works of various commands that you send to it( I communication protocal and a dataframe) using standard serial connection.
Now:
The screen sends a data frame to the microcontroller at a specified Baud rate. This data frame looks something like:
0xAA(start) 0x73(touch screen coord.) (16 bit X coord.) (16bit Y coord) 0x33 0x3C 0xC3
So there are a fare amount of bits moving when i push the touch screen.
THE PIC ONLY HAS A 8 BIT REGISTER IN THE UART MODULE I GUESS. SO HOW CAN I GET THIS MANY BITS INTO A VARIABLE?(MAINTAINING BAUD RATES ECT...)
Maybe interrupts? Im using MIKROELECTRONIKA MikroC compiler. There is a simple UART Library bit seems to be 8 bits at a time......
Look forward to hearing from you guys!
Cheers,
Bruce