external interrupt hi alll.....
i have a problem here..and i hope u can give me a sollution
u connect two of M8 by using SPI to exchange the data...
i want the communication available in two direction..master -> slave and slave->master....
but there is an error in sending data from slave to master...(loss data)
i though it because the clock between those mC aren't synchronized (i mean no the data transfer clock but the CPU clock) its because in the middle of sending data process.. each mC willl check the UART buffer , is there any data to be sent...
so i want to make a kind of synchronization.....
master can send another byte from UART or dummy byte to get byte from slave ony if master receive an interupt from slave (INT0)....
so the will be no data loss...
problem:
how i can implement it
- the hardware scheme
- what should i do in programming on each mC
OR... there is another way to solve this problem...
thankyou...
Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.