Hi All, I'm new here and have been reading thru this forum in the past week, so now its time to ask/help where i can :-) My 1st question is about PICbasic Pro (i have v2.33) , and its use of setting a VAR as either a BIT, BYTE or WORD.... It wasn't too obvious in the manual, but does WORD refer to a 16 bit value???? I had seen some posts about combining/seperating a VAR into 2 bytes and back, and the answer given was about assigning a 'WORD' as a variable. Lets assume the following: (using an '877) i have assigned these variables: lsbport var portC 'assigned the whole 8bit port C as "lsbport" msbport" var portD 'assigned the whole 8bit port D as "msbport" So, could i then use the following code to combine my 2 ports as a 16 bit variable??? 16bitport var word 'my variable which i'll use as a virtual 16 bit port. lsbport var word.byte0 'assigns port C as lower 1/2 (lsb) of the variable "16bitport" msbport var word.byte1 ''assigns port D as upper 1/2 (msb) of the variable "16bitport" Essentially what i need to do is control upto 16 pins SIMULTANEOUSLY, by writing/reading my variable called "16bitport". Also note, if i only required to control say 10 pins, would i simply assign 2 ports as above (1 port being only 2 bits though), then combine/treat them as a word, even though the leftover 6 bits of the variable "16bitport" wouldn't be accessable??? (in this case i would call the 'word' variable "10bitport" :-) Am i going about this the right way? or have i totally lost the plot with the term "word" ??? :-) Thanx in advance everyone :-) Marty Winch --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 7/24/03 -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads