That might explain why garbage appears on the lcd at switch on, however as its confihured as virtual serial and not pure USB as in hid I would,nt have thought that [0] would be reserved, but it...
Type: Posts; User: nicjo; Keyword(s):
That might explain why garbage appears on the lcd at switch on, however as its confihured as virtual serial and not pure USB as in hid I would,nt have thought that [0] would be reserved, but it...
If I set the high order byte to 0, word.byte1=0, and send 255 I get 255 in the display, cant send beyond that as 2nd byte is 0. When both bytes set as buff [0], [1] and send 255 or less I get a...
Hi all,
I trying to send a two byte word down the pipe but I cannot get the received data to equal what's been sent. ASCII char are fine as each is one byte long. I can send a one byte number like...
Heres some of the code, this all works fine using simple delay or other timer
Main:
; Check for incomming USB data while waiting
@ ON_USBRX_GOSUB _HandleRX
lcdout $FE, 1,...
Hi all,
I'm trying to use TMR0 however USB does not seem to communicate. I saw in past threads that TMR0 was used for USB polling, I've been examining all files related DT-INTS, DT-HID and...
Hi everyone,
I've got a project that worked fine with a standard serial port using VB code slightly modified to that of Rentron.com. Basically grab 4 bytes with the first 2 being an instruction to...
Thanks Steve. Eventually got back to my project. (To much time spent on this thing, so the missus says). Anyway, it works a treat. Iv'e added a couple more things to it as now the comms side of it...
Thanks Steve,
I've just opened up the files the files you sent and begin to incorporate into my project. I'll let you know how I went, hopefully all good.
Cheers
John
Thanks, I,m using a Xtal, found that out the hard way, could'nt work out why there were so many errors, after puting xtal in cct, errors disappeared. And yes, I'm using a 628.
I kind of figured...
Steve, I've attached the VB program and the PBP prog. Its pretty uglgy but for the best part it works. Its works well with the vb prog when variables are sent as byte1, byte2. Strange this occur when...
Hi all,
I've been able to get error free comms by sending the variables as high and low bytes (debug "aa", stepcnt.byte1, stepcnt.byte0). The same is not true when I send the variable as
...
Thanks Henrik,
Yes I have tried what you've suggested, but only on the transmission of one variable containing 2 bytes. It worked fine. I will change the code and see if that does the trick....
Hi all,
I guess this is a question more about the MSCOMM object within VB6 than PICs however, it may turn out the other way.
I'm sending serial data to the PC and displaying the data in several...
Thanks. I'm pretty sure that I've tried that. Code may have been slightly differnent but resulted in a new line for pause.
scatching me head...
I've searched the forum on the 16f88, however, it revealed no real answers to my delema.
As far as I can tell the thing should work. I've set the fuses to:
__config _CONFIG1, _HS_OSC & _WDT_ON...
Hi all,
I've got a problem trying to display a simple message on an LCD using a PIC16F88. The problem, after much testing, seems to be the PAUSE command. It appears that the delay produced, even...
Hi all,
I guess there's a problem with the code I've written but I cannot see where. I'm trying to rx a character, test it then if OK then drive a port. I've tried all soughts of variations but to...
I want to be able to test a variable assigned to Hserin, say 'char' as in Hserin 1000, [char] and test 'char' if it is = "a" (for arguments sake). I would imagine it would be as simple as:
if char...
Thanks mate.
I think PICbasic sounds like a good choice.
I'm currently using Celestial Horizon's CH Basic. Its very basic in so much that I find writing almost as much assembly code as the basic. I'm thinking of PICBasic??
I would also like to know if...