//define function convert 
unsigned char convert(unsigned char channel)