1UL = unsigned long but how to write 1 unsigned char?

1 would work just fine unless you mean the ASCII representation which would then be '1'.

Binary will work as well B00000001.