hmmmm checking thru 16f88 library, noticed this stuff var volatile byte STATUS at { 0x3,0x83,0x103,0x183 } var volatile bit STATUS_IRP at STATUS : 7 var volatile bit*2 STATUS_RP at STATUS : 5 var volatile bit STATUS_NTO at STATUS : 4 var volatile bit STATUS_NPD at STATUS : 3 var volatile bit STATUS_Z at STATUS : 2 var volatile bit STATUS_DC at STATUS : 1 var volatile bit STATUS_C at STATUS : 0 so probably this could work : portb : BitNum =3D 1 (where BitNum is loop variable) Will try this tonight at home. On Mon, Oct 31, 2011 at 11:06, Joep Suijs wrote: > Hi KPL, > > In JAL philosophy this should be bit arrays, but AFAIK they are not suppo= rted. > There is a pintool library, similar concept as the wiring lib of > arduino, which could be useful in this case. I doubt it will be more > efficient than the method you describe though. > > Joep > > 2011/10/31 KPL : >> Yes, I use jallib, checked that document, and checked many samples. >> But did not notice this technique used anywhere. >> I am sure there must be a way to set one pin of a port via some code >> portb[0] =3D high >> or >> portb.0 =3D high >> or some other syntax. >> Is there? >> >> I see I can access a single pin using >> pin_A0 =3D 1 >> but this way I can not change that index using some variable as a parame= ter. >> >> On Mon, Oct 31, 2011 at 10:15, Joep Suijs wrote: >>> Hi, >>> >>> I guess you use the jallib libraries? >>> There is a starters guide that targets the ones with embedded >>> programming experience that start with JAL. It covers most of JAL >>> language specifics, as well as common library use. >>> See http://jallib.googlecode.com/files/jallib%20starters%20guide%20a4%2= 0v1.00.pdf >>> >>> Joep >>> >>> >>> 2011/10/31 KPL : >>>> Hi, >>>> >>>> >From prievious topics about languaga choices i see there should be >>>> somebody who knows how to use jal. >>>> I just tried few programs with 16f648a and 16f88, and that was a huge >>>> success. So bad I did not try JAL earlier, that would be much better, >>>> keeping in mind my lack of patience for working in asm. >>>> >>>> I skimmed over respective parts of available docs, checked many sample >>>> programs from jallib, but did not find an answer for my question. >>>> >>>> If I am using part of a port for some external device, and defined a >>>> whole port as an output: >>>> >>>> portb_direction =3D output >>>> >>>> how can I access it bit-by-bit in a loop? I mean, if I have a variable >>>> BitNum for a bit number, how should I access pin number BitNum in a >>>> port B? >>>> Currently I did it by masking a port with a shifted "1" and it worked >>>> portb =3D Data & ( 1 << BitNum) >>>> >>>> But there must be some way that would look more jal-style. >>>> >>>> Sorry if it's hidden somewhere in docs, I could not find it. >>>> >>>> BTW, does anybody else noticed change in behaviour of a google search? >>>> If I enter few search terms in there, even first hits do not contain >>>> all of them. Just when those words are enclosed in double quotes, >>>> word-by-word, just then all of them are really searched. I cleared >>>> browser cache, even used different browser, which did not help. >>>> >>>> -- >>>> KPL >>>> -- >>>> http://www.piclist.com PIC/SX FAQ & list archive >>>> View/change your membership options at >>>> http://mailman.mit.edu/mailman/listinfo/piclist >>>> >>> -- >>> http://www.piclist.com PIC/SX FAQ & list archive >>> View/change your membership options at >>> http://mailman.mit.edu/mailman/listinfo/piclist >>> >> >> >> >> -- >> KPL >> -- >> http://www.piclist.com PIC/SX FAQ & list archive >> View/change your membership options at >> http://mailman.mit.edu/mailman/listinfo/piclist >> > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 KPL --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .