i have a micronctroller sending bytes to the serial port for pd. if i need to read a 3 and a 0 from it for example, it will send '30' as one byte. pd converts this to ascii and gives me 48.
i am not familiar with bit twiddling but tried looking up an ascii to hex conversion table and using the ascii equivalents as the objects supposedly convert to and from hex. so for example i 'anded' 48 with 15 (the eqivalent of 'OF') in the hope it would mask the higher 4 bits and just give me the ascii equivalent of 3 but all i got was 0.
any advice on how to deal with this would be greatly appreciated
Hex \> ascii \> hex \> ascii
if send the value and 15 (0F) to [&] i get the second value i.e. 52 (34) = 4
if i send the value and 240 (F0) to [&] and then to [>> 4] i get the first value i.e. 52 = 3