Hi,
I would like to know if it is possible to display the contents of OCR1A to a terminal using serial communication once I have the functions usart_putstring(OCR1A) as shown below:
void usart_putstring(char *s) { while(*s) { usart_putch(*s); s++; } } void usart_putch(char data) { // Wait for empty transmit buffer while ( !(UCSRA & (_BV(UDRE))) ); // Start transmission UDR = data; }
I want to do this so that I can see what are the min. and max. values of OCR1A while driving a servo.
Thanks,
Sumair