Hi shubhlaxm…, please bear in mind, that if you use the "to U8" function that you can get only one byte and the maximum is U32. You don´t tell us why you need it. Which information is in your globals? Mike
My globle variable contain data only 0 or 1.i am passing that globle varible to port throught array logic.i am doing serial communication with Hex protocol.for that hex protocol i want 8 globle variable as 1 byte.i have 600 variable to pass to serial communication i have hardware which contain 8 leds.when all 8 varible contain 1 number then all 8 leds will glow.