I've built a wireless mouse that sends data through UART over RF to base station which is just an ATmega8 with VUSB Ckt and RF reciever connected.
things that i've tried :
1. Running UART on interrupt mode. This didnt work because VUSB already uses an interrupt and there was clashes between VUSb n UART .. so the device would disconnect from the computer or simply be not recognized.
2. Then i've used while loops to capture data from Rf but the micro controller gets stuck on the while loop because the transmitter is not on and information is not received and hence the flag never gets set.
What is a better solution for this .. my device acts as a HID compliant mouse ..
things that i've tried :
1. Running UART on interrupt mode. This didnt work because VUSB already uses an interrupt and there was clashes between VUSb n UART .. so the device would disconnect from the computer or simply be not recognized.
2. Then i've used while loops to capture data from Rf but the micro controller gets stuck on the while loop because the transmitter is not on and information is not received and hence the flag never gets set.
What is a better solution for this .. my device acts as a HID compliant mouse ..