Hello every one
i m new to this forum and i feel sad to start posting questions instead of answers!! but you guyz are so smart and i learned alot from you.
i want to ask about 3 lines in an HID code by steve http://www.picbasic.co.uk/forum/showthread.php?t=5418
i downloaded the code and created a vb2008 interface and everything is working great.
still i want to understand the code properly. the first one
what doest those words mean? are they instructions ? i searched for hour to understand what does mov?cw mean. found nothing !!Code:Reload_TMR0 macro ; Use to stop, reload, clear overflow flag and restart TMR0 BCF _TMR0ON ; stop timer MOVE?CW d'65000',TMR0L ; reload for timebase ~100uSec BCF _TMR0IF ; clear overflow flag BSF _TMR0ON ; start timer ENDM SendUSB macro array ; Use to Copy an specific array to USBBufferOut AND send it ; to USB bus variable i=0 while i<8 MOVE?BB (array+i),(_USBBufferOut+i) i+=1 endw L?CALL _DoUSBOut endm
mov?cw
mov?bb
l?call
???????????????????????????
i also had to comment out those lines
because when i have them in the code, the PC doesnt see my pic. it doesnt even give a "not recongnized" msg. but when i comment them out , everything is ok again.Code:' USB module ' ---------- UCFG var byte EXT ' include UCFG register... Yeah Melabs didn't :o( ucfg = %00010100 ' enable internal USB pull-up, Full speed USB
i looked to 18f2550 datasheet and found that ucfg controls the speed of usb bus.
i dont know if the problem caused by my usb ( is it low speed ? ) ?
finally, excuse me for not being able to write english properly. but it is not my original language.
thx all in advance


thx for the links


Bookmarks