added test mode and enhanced usart

added hex output support to usart and added test mode for doing general
testing (at the moment, impulse measurements) also added global system
time